diff options
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl.inc | 3 | ||||
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl/ptest-deps.patch | 30 | ||||
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl_1.0.1h.bb | 1 |
3 files changed, 33 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc index 6c86588c83..b839c00dde 100644 --- a/meta/recipes-connectivity/openssl/openssl.inc +++ b/meta/recipes-connectivity/openssl/openssl.inc | |||
@@ -47,7 +47,7 @@ FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}" | |||
47 | FILES_openssl-conf = "${libdir}/ssl/openssl.cnf" | 47 | FILES_openssl-conf = "${libdir}/ssl/openssl.cnf" |
48 | CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf" | 48 | CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf" |
49 | RRECOMMENDS_libcrypto += "openssl-conf" | 49 | RRECOMMENDS_libcrypto += "openssl-conf" |
50 | RDEPENDS_${PN}-ptest += "${PN}-misc make" | 50 | RDEPENDS_${PN}-ptest += "${PN}-misc make perl perl-module-filehandle bc" |
51 | 51 | ||
52 | do_configure_prepend_darwin () { | 52 | do_configure_prepend_darwin () { |
53 | sed -i -e '/version-script=openssl\.ld/d' Configure | 53 | sed -i -e '/version-script=openssl\.ld/d' Configure |
@@ -176,6 +176,7 @@ do_install () { | |||
176 | 176 | ||
177 | do_install_ptest () { | 177 | do_install_ptest () { |
178 | cp -r Makefile test ${D}${PTEST_PATH} | 178 | cp -r Makefile test ${D}${PTEST_PATH} |
179 | cp -r certs ${D}${PTEST_PATH} | ||
179 | mkdir -p ${D}${PTEST_PATH}/apps | 180 | mkdir -p ${D}${PTEST_PATH}/apps |
180 | ln -sf /usr/lib/ssl/misc/CA.sh ${D}${PTEST_PATH}/apps | 181 | ln -sf /usr/lib/ssl/misc/CA.sh ${D}${PTEST_PATH}/apps |
181 | ln -sf /usr/lib/ssl/openssl.cnf ${D}${PTEST_PATH}/apps | 182 | ln -sf /usr/lib/ssl/openssl.cnf ${D}${PTEST_PATH}/apps |
diff --git a/meta/recipes-connectivity/openssl/openssl/ptest-deps.patch b/meta/recipes-connectivity/openssl/openssl/ptest-deps.patch new file mode 100644 index 0000000000..527e10c53b --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/ptest-deps.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Remove Makefile dependencies for test targets | ||
2 | |||
3 | These are probably here because the executables aren't always built for | ||
4 | other platforms (e.g. Windows); however we can safely assume they'll | ||
5 | always be there. None of the other test targets have such dependencies | ||
6 | and if we don't remove them, make tries to rebuild the executables and | ||
7 | fails during run-ptest. | ||
8 | |||
9 | Upstream-Status: Inappropriate [config] | ||
10 | |||
11 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
12 | |||
13 | diff --git a/test/Makefile b/test/Makefile | ||
14 | index e6fcfb4..5ae043b 100644 | ||
15 | --- a/test/Makefile | ||
16 | +++ b/test/Makefile | ||
17 | @@ -322,11 +322,11 @@ test_cms: | ||
18 | @echo "CMS consistency test" | ||
19 | $(PERL) cms-test.pl | ||
20 | |||
21 | -test_srp: $(SRPTEST)$(EXE_EXT) | ||
22 | +test_srp: | ||
23 | @echo "Test SRP" | ||
24 | ../util/shlib_wrap.sh ./srptest | ||
25 | |||
26 | -test_heartbeat: $(HEARTBEATTEST)$(EXE_EXT) | ||
27 | +test_heartbeat: | ||
28 | ../util/shlib_wrap.sh ./$(HEARTBEATTEST) | ||
29 | |||
30 | lint: | ||
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.1h.bb b/meta/recipes-connectivity/openssl/openssl_1.0.1h.bb index ebb1029ef4..ddaaba8836 100644 --- a/meta/recipes-connectivity/openssl/openssl_1.0.1h.bb +++ b/meta/recipes-connectivity/openssl/openssl_1.0.1h.bb | |||
@@ -35,6 +35,7 @@ SRC_URI += "file://configure-targets.patch \ | |||
35 | file://openssl-fix-des.pod-error.patch \ | 35 | file://openssl-fix-des.pod-error.patch \ |
36 | file://Makefiles-ptest.patch \ | 36 | file://Makefiles-ptest.patch \ |
37 | file://heartbeat-test-private-api.patch \ | 37 | file://heartbeat-test-private-api.patch \ |
38 | file://ptest-deps.patch \ | ||
38 | file://run-ptest \ | 39 | file://run-ptest \ |
39 | " | 40 | " |
40 | 41 | ||