Skip to contentSkip to conversation

swig: avoid host contamination, make build deterministic

PATCH Applied Andreas Oberritter 2 participants 2 messages Mar 6, 2013 – Mar 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 swig: avoid host contamination, make build deterministic

* Explicitly disable all other languages than python, which was the only language listed in DEPENDS.

* Inherit pythonnative to make it find OE's python executable.

* Depend on libpcre in order to reliably enable Swig's regex feature.

---
Sorry, forgot to add [meta-oe] to the Subject line.

 meta-oe/recipes-devtools/swig/swig.inc |   34 +++++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 5 deletions(-)
meta-oe/recipes-devtools/swig/swig.inc +29 -5
index 97fc5c7..df6f780 100644
@@ -6,15 +6,39 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \
                     file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08"
 
 SECTION = "devel"
-INC_PR = "r2"
+INC_PR = "r3"
 
-DEPENDS = "python"
+DEPENDS = "libpcre python"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
 
-inherit autotools
-
-EXTRA_OECONF = " --without-guile "
+inherit autotools pythonnative
+
+EXTRA_OECONF = " \
+	--with-python=${PYTHON} \
+	--without-allegrocl \
+	--without-android \
+	--without-boost \
+	--without-chicken \
+	--without-clisp \
+	--without-csharp \
+	--without-d \
+	--without-gcj \
+	--without-go \
+	--without-guile \
+	--without-java \
+	--without-lua \
+	--without-mzscheme \
+	--without-ocaml \
+	--without-octave \
+	--without-perl5 \
+	--without-pike \
+	--without-php \
+	--without-python3 \
+	--without-r \
+	--without-ruby \
+	--without-tcl \
+"
 
 BBCLASSEXTEND = "native"
 
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 6 lines · Andreas Oberritter

* Explicitly disable all other languages than python, which was the only language listed in DEPENDS.

* Inherit pythonnative to make it find OE's python executable.

* Depend on libpcre in order to reliably enable Swig's regex feature.

Applied, thanks!

Quoted 65 lines

---
Sorry, forgot to add [meta-oe] to the Subject line.

 meta-oe/recipes-devtools/swig/swig.inc |   34 +++++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 5 deletions(-)
meta-oe/recipes-devtools/swig/swig.inc +29 -5
index 97fc5c7..df6f780 100644
@@ -6,15 +6,39 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \
                     file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08"
 
 SECTION = "devel"
-INC_PR = "r2"
+INC_PR = "r3"
 
-DEPENDS = "python"
+DEPENDS = "libpcre python"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
 
-inherit autotools
-
-EXTRA_OECONF = " --without-guile "
+inherit autotools pythonnative
+
+EXTRA_OECONF = " \
+	--with-python=${PYTHON} \
+	--without-allegrocl \
+	--without-android \
+	--without-boost \
+	--without-chicken \
+	--without-clisp \
+	--without-csharp \
+	--without-d \
+	--without-gcj \
+	--without-go \
+	--without-guile \
+	--without-java \
+	--without-lua \
+	--without-mzscheme \
+	--without-ocaml \
+	--without-octave \
+	--without-perl5 \
+	--without-pike \
+	--without-php \
+	--without-python3 \
+	--without-r \
+	--without-ruby \
+	--without-tcl \
+"
 
 BBCLASSEXTEND = "native"
 
Signature · 7 lines
1.7.10.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]