summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2015-06-21 23:24:47 +0100
committerBaserock Gerrit <gerrit@baserock.org>2015-08-03 21:39:40 +0000
commitb5e091d8f35032b0f9e37b4019bc87c09e953265 (patch)
tree5d390bb5cc9e9310f04f8fcceff81f8ded2a0ed7
parent1db76a84dc4b16cdb9a51e3918883400cb8677c1 (diff)
downloaddefinitions-b5e091d8f35032b0f9e37b4019bc87c09e953265.tar.gz
cpython: Use system libffi and libexpat libraries
Change-Id: I1e96327e30051079968e39db0032b98e0c81d352
-rw-r--r--strata/core.morph18
-rw-r--r--strata/core/cpython.morph6
2 files changed, 15 insertions, 9 deletions
diff --git a/strata/core.morph b/strata/core.morph
index a435c051..1fb541fb 100644
--- a/strata/core.morph
+++ b/strata/core.morph
@@ -133,6 +133,14 @@ chunks:
unpetrify-ref: baserock/genivi/baseline
build-depends:
- automake
+- name: libffi
+ morph: strata/core/libffi.morph
+ repo: upstream:libffi
+ ref: 77d4586cc47e8f4c02278afbc220145bba0d442b
+ unpetrify-ref: baserock/morph
+ build-depends:
+ - autoconf
+ - automake
- name: cpython
morph: strata/core/cpython.morph
repo: upstream:cpython
@@ -141,6 +149,8 @@ chunks:
build-depends:
- openssl-new
- bzip2
+ - libexpat
+ - libffi
- sqlite3
- ncurses
- readline
@@ -381,14 +391,6 @@ chunks:
build-depends:
- autoconf
- automake
-- name: libffi
- morph: strata/core/libffi.morph
- repo: upstream:libffi
- ref: 77d4586cc47e8f4c02278afbc220145bba0d442b
- unpetrify-ref: baserock/morph
- build-depends:
- - autoconf
- - automake
- name: glib
repo: upstream:glib
ref: 966ffb16f6bd54cb3d928a55d00d0eda73592094
diff --git a/strata/core/cpython.morph b/strata/core/cpython.morph
index 6c9e4b3d..d0c80220 100644
--- a/strata/core/cpython.morph
+++ b/strata/core/cpython.morph
@@ -2,6 +2,10 @@ name: cpython
kind: chunk
build-system: autotools
configure-commands:
-- ./configure --prefix="$PREFIX" --enable-shared
+- |
+ ./configure --prefix="$PREFIX" \
+ --enable-shared \
+ --with-system-expat \
+ --with-system-ffi
post-install-commands:
- test -x "$DESTDIR"/"$PREFIX"/bin/python2 || ln -s python2.7 "$DESTDIR"/"$PREFIX"/bin/python2