Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] openssl v2 with other unrecognised option patches
@ 2013-12-20 18:47 Saul Wold
  2013-12-20 18:47 ` [PATCH 1/3 v2] openssl: use PACKAGECONFIG to disable perl bits Saul Wold
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Saul Wold @ 2013-12-20 18:47 UTC (permalink / raw)
  To: openembedded-core

Round 2 of the openssl patch

Saul Wold (3):
  openssl: use PACKAGECONFIG to disable perl bits
  sqlite: remove unrecognised options: --enable-tempstore
  python: fix unrecognised options: --without-cxx --with-cyclic-gc

 meta/recipes-connectivity/openssl/openssl.inc | 17 +++++++++++------
 meta/recipes-devtools/python/python.inc       |  3 +--
 meta/recipes-support/sqlite/sqlite3.inc       |  2 +-
 3 files changed, 13 insertions(+), 9 deletions(-)

-- 
1.8.3.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3 v2] openssl: use PACKAGECONFIG to disable perl bits
  2013-12-20 18:47 [PATCH 0/3] openssl v2 with other unrecognised option patches Saul Wold
@ 2013-12-20 18:47 ` Saul Wold
  2013-12-20 18:47 ` [PATCH 2/3] sqlite: remove unrecognised options: --enable-tempstore Saul Wold
  2013-12-20 18:47 ` [PATCH 3/3] python: fix unrecognised options: --without-cxx --with-cyclic-gc Saul Wold
  2 siblings, 0 replies; 5+ messages in thread
From: Saul Wold @ 2013-12-20 18:47 UTC (permalink / raw)
  To: openembedded-core

Adding perl to the RDEPENDS caused a performance hit to the overall build time since this was
the only package that depended on perl.  The openssl-misc package is not installed by default
so use a PACKAGECONFIG which can be overridden to allow the perl scripts along with  perl to
 be installed.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-connectivity/openssl/openssl.inc | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index cdb1809..da19831 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -13,9 +13,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
 
 DEPENDS = "perl-native-runtime"
 
-# Adding RDEPENDS for perl scripts
-RDEPENDS_${PN}-misc +="perl"
-
 SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
           "
 S = "${WORKDIR}/openssl-${PV}"
@@ -41,6 +38,7 @@ FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl.so.*"
 FILES_${PN} =+ " ${libdir}/ssl/*"
 FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash"
+RDEPENDS_${PN}-misc = "${@base_contains('PACKAGECONFIG', 'perl', 'perl', '', d)}"
 FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
 
 # Add the openssl.cnf file to the openssl-conf package.  Make the libcrypto
@@ -157,11 +155,18 @@ do_install () {
 
 	install -d ${D}${includedir}
 	cp --dereference -R include/openssl ${D}${includedir}
-	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
 
 	oe_multilib_header openssl/opensslconf.h
-	# The c_rehash utility isn't installed by the normal installation process.
-	install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
+	if [ "${@base_contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" = "perl" ]; then
+		install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
+		sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${bindir}/c_rehash
+		sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
+		sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/tsget
+		# The c_rehash utility isn't installed by the normal installation process.
+	else
+		rm -f ${D}${bindir}/c_rehash
+		rm -f ${D}${libdir}/ssl/misc/CA.pl ${D}${libdir}/ssl/misc/tsget
+	fi
 }
 
 BBCLASSEXTEND = "native nativesdk"
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] sqlite: remove unrecognised options: --enable-tempstore
  2013-12-20 18:47 [PATCH 0/3] openssl v2 with other unrecognised option patches Saul Wold
  2013-12-20 18:47 ` [PATCH 1/3 v2] openssl: use PACKAGECONFIG to disable perl bits Saul Wold
@ 2013-12-20 18:47 ` Saul Wold
  2013-12-21  1:01   ` Paul Eggleton
  2013-12-20 18:47 ` [PATCH 3/3] python: fix unrecognised options: --without-cxx --with-cyclic-gc Saul Wold
  2 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2013-12-20 18:47 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-support/sqlite/sqlite3.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
index 064d78c..0cd2deb 100644
--- a/meta/recipes-support/sqlite/sqlite3.inc
+++ b/meta/recipes-support/sqlite/sqlite3.inc
@@ -8,7 +8,7 @@ LICENSE = "PD"
 inherit autotools pkgconfig
 
 EXTRA_OECONF = "--enable-shared --enable-threadsafe"
-EXTRA_OECONF_class-native = "--enable-shared --enable-threadsafe --disable-readline --enable-tempstore"
+EXTRA_OECONF_class-native = "--enable-shared --enable-threadsafe --disable-readline"
 export config_BUILD_CC = "${BUILD_CC}"
 export config_BUILD_CFLAGS = "${BUILD_CFLAGS}"
 export config_BUILD_LIBS = "${BUILD_LDFLAGS}"
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] python: fix unrecognised options: --without-cxx --with-cyclic-gc
  2013-12-20 18:47 [PATCH 0/3] openssl v2 with other unrecognised option patches Saul Wold
  2013-12-20 18:47 ` [PATCH 1/3 v2] openssl: use PACKAGECONFIG to disable perl bits Saul Wold
  2013-12-20 18:47 ` [PATCH 2/3] sqlite: remove unrecognised options: --enable-tempstore Saul Wold
@ 2013-12-20 18:47 ` Saul Wold
  2 siblings, 0 replies; 5+ messages in thread
From: Saul Wold @ 2013-12-20 18:47 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-devtools/python/python.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/python/python.inc b/meta/recipes-devtools/python/python.inc
index fcfeda5..cecfb3a 100644
--- a/meta/recipes-devtools/python/python.inc
+++ b/meta/recipes-devtools/python/python.inc
@@ -22,8 +22,7 @@ PYTHONLSBOPTS_linuxstdbase = "ac_cv_sizeof_off_t=8"
 EXTRA_OECONF = "\
   --with-threads \
   --with-pymalloc \
-  --with-cyclic-gc \
-  --without-cxx \
+  --without-cxx-main \
   --with-signal-module \
   --enable-shared \
   --enable-ipv6=${@base_contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/3] sqlite: remove unrecognised options: --enable-tempstore
  2013-12-20 18:47 ` [PATCH 2/3] sqlite: remove unrecognised options: --enable-tempstore Saul Wold
@ 2013-12-21  1:01   ` Paul Eggleton
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2013-12-21  1:01 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core

Hi Saul,

On Friday 20 December 2013 10:47:27 Saul Wold wrote:
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---

IMO we need more details for these option removal commits; we need to know 
when the option disappeared if it did in fact disappear (as opposed to having 
been wrong in the first place or renamed to something else).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-21  1:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 18:47 [PATCH 0/3] openssl v2 with other unrecognised option patches Saul Wold
2013-12-20 18:47 ` [PATCH 1/3 v2] openssl: use PACKAGECONFIG to disable perl bits Saul Wold
2013-12-20 18:47 ` [PATCH 2/3] sqlite: remove unrecognised options: --enable-tempstore Saul Wold
2013-12-21  1:01   ` Paul Eggleton
2013-12-20 18:47 ` [PATCH 3/3] python: fix unrecognised options: --without-cxx --with-cyclic-gc Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox