All of lore.kernel.org
 help / color / mirror / Atom feed
* [Changes][PATCH v2 1/1] openssl: Move libcrypto to base_libdir
@ 2012-02-21 23:03 Andrei Gherzan
  2012-02-21 23:03 ` [PATCH " Andrei Gherzan
  2012-02-24  4:14 ` [Changes][PATCH " Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Andrei Gherzan @ 2012-02-21 23:03 UTC (permalink / raw)
  To: openembedded-core


Remove .patch file. It was actually the whole git patch included.



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

* [PATCH v2 1/1] openssl: Move libcrypto to base_libdir
  2012-02-21 23:03 [Changes][PATCH v2 1/1] openssl: Move libcrypto to base_libdir Andrei Gherzan
@ 2012-02-21 23:03 ` Andrei Gherzan
  2012-02-24  4:14 ` [Changes][PATCH " Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Andrei Gherzan @ 2012-02-21 23:03 UTC (permalink / raw)
  To: openembedded-core

This fix is for dhclient. It needs libcrypto at runtime and if
libcrypto is in libdir, it's path can be inaccessible on systems
where /usr is on nfs for example or dhclient is needed before
/usr is mounted.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/recipes-connectivity/openssl/openssl.inc      |   10 +++++++++-
 .../recipes-connectivity/openssl/openssl_1.0.0g.bb |    2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index 771f146..eb6c5ea 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -36,10 +36,11 @@ export AS = "${CC} -c"
 inherit pkgconfig siteinfo
 
 PACKAGES =+ "libcrypto libssl ${PN}-misc"
-FILES_libcrypto = "${libdir}/libcrypto.so.*"
+FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl.so.*"
 FILES_${PN} =+ " ${libdir}/ssl/*"
 FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
+FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
 
 do_configure_prepend_darwin () {
 	sed -i -e '/version-script=openssl\.ld/d' Configure
@@ -132,6 +133,13 @@ do_install () {
 	oe_libinstall -so libcrypto ${D}${libdir}
 	oe_libinstall -so libssl ${D}${libdir}
 
+	# Moving libcrypto to /usr
+	if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
+		mkdir -p ${D}/${base_libdir}/
+		mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/
+		sed -i s#libdir=\$\{exec_prefix\}\/lib#libdir=${base_libdir}# ${D}/${libdir}/pkgconfig/libcrypto.pc
+	fi
+
 	install -d ${D}${includedir}
 	cp --dereference -R include/openssl ${D}${includedir}
 	sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
index 80dfcb3..8ffe931 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.0g.bb
@@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
 
 CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
 
-- 
1.7.5.4




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

* Re: [Changes][PATCH v2 1/1] openssl: Move libcrypto to base_libdir
  2012-02-21 23:03 [Changes][PATCH v2 1/1] openssl: Move libcrypto to base_libdir Andrei Gherzan
  2012-02-21 23:03 ` [PATCH " Andrei Gherzan
@ 2012-02-24  4:14 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-02-24  4:14 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 02/21/2012 03:03 PM, Andrei Gherzan wrote:
>
> Remove .patch file. It was actually the whole git patch included.
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

Merged into OE-core

Thanks
	Sau!



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

end of thread, other threads:[~2012-02-24  4:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21 23:03 [Changes][PATCH v2 1/1] openssl: Move libcrypto to base_libdir Andrei Gherzan
2012-02-21 23:03 ` [PATCH " Andrei Gherzan
2012-02-24  4:14 ` [Changes][PATCH " Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.