Skip to contentSkip to conversation

libnet-ssleay-perl: avoid host contamination

PATCH New Kai Kang 1 participant 1 message Dec 1, 2014

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

PATCH 1/1 libnet-ssleay-perl: avoid host contamination

Check the configure log, libnet-ssleay-perl uses host's openssl:

*** Found OpenSSL-1.0.1 installed in /usr

Export OPENSSL_PREFIX to find the native openssl to use.

Replace library pathes '/lib', '/usr/lib' and header path with correct staging pathes at same time.

---
 meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb +6 -2
index 63594b9..f6c4b8b 100644
@@ -28,12 +28,16 @@ S = "${WORKDIR}/Net-SSLeay-${PV}"
 
 inherit cpan ptest
 
-EXTRA_CPANFLAGS = "LIBS='-L=${libdir} -L=${base_libdir}' \
-                   INC=-I=${includedir} \
+EXTRA_CPANFLAGS = "LIBS='-L=${STAGING_LIBDIR} -L=${STAGING_BASELIBDIR}' \
+                   INC=-I=${STAGING_INCDIR} \
                    'EXTRALIBS=-lssl -lcrypto -lz' \
                    'LDLOADLIBS=-lssl -lcrypto -lz' \
                   "
 
+do_configure_prepend() {
+    export OPENSSL_PREFIX=${STAGING_DIR_NATIVE}${prefix_native}
+}
+
 do_install_ptest() {
     cp -r ${B}/t ${D}${PTEST_PATH}
 }
Signature · 1 line
1.9.1