diff options
Diffstat (limited to 'meta/recipes-support/curl/curl_7.84.0.bb')
-rw-r--r-- | meta/recipes-support/curl/curl_7.84.0.bb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-support/curl/curl_7.84.0.bb b/meta/recipes-support/curl/curl_7.84.0.bb index 74a19d20c9..0d829cdf23 100644 --- a/meta/recipes-support/curl/curl_7.84.0.bb +++ b/meta/recipes-support/curl/curl_7.84.0.bb | |||
@@ -12,13 +12,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=190c514872597083303371684954f238" | |||
12 | SRC_URI = " \ | 12 | SRC_URI = " \ |
13 | https://curl.se/download/${BP}.tar.xz \ | 13 | https://curl.se/download/${BP}.tar.xz \ |
14 | file://0001-easy_lock.h-include-sched.h-if-available-to-fix-buil.patch \ | 14 | file://0001-easy_lock.h-include-sched.h-if-available-to-fix-buil.patch \ |
15 | file://run-ptest \ | ||
16 | file://disable-tests \ | ||
15 | " | 17 | " |
16 | SRC_URI[sha256sum] = "2d118b43f547bfe5bae806d8d47b4e596ea5b25a6c1f080aef49fbcd817c5db8" | 18 | SRC_URI[sha256sum] = "2d118b43f547bfe5bae806d8d47b4e596ea5b25a6c1f080aef49fbcd817c5db8" |
17 | 19 | ||
18 | # Curl has used many names over the years... | 20 | # Curl has used many names over the years... |
19 | CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl" | 21 | CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl" |
20 | 22 | ||
21 | inherit autotools pkgconfig binconfig multilib_header | 23 | inherit autotools pkgconfig binconfig multilib_header ptest |
22 | 24 | ||
23 | # Entropy source for random PACKAGECONFIG option | 25 | # Entropy source for random PACKAGECONFIG option |
24 | RANDOM ?= "/dev/urandom" | 26 | RANDOM ?= "/dev/urandom" |
@@ -83,6 +85,23 @@ do_install:append:class-target() { | |||
83 | ${D}${bindir}/curl-config | 85 | ${D}${bindir}/curl-config |
84 | } | 86 | } |
85 | 87 | ||
88 | do_compile_ptest() { | ||
89 | oe_runmake test | ||
90 | oe_runmake -C ${B}/tests/server | ||
91 | } | ||
92 | |||
93 | do_install_ptest() { | ||
94 | cat ${WORKDIR}/disable-tests >> ${S}/tests/data/DISABLED | ||
95 | rm ${B}/tests/configurehelp.pm | ||
96 | cp -rf ${B}/tests ${D}${PTEST_PATH} | ||
97 | cp -rf ${S}/tests ${D}${PTEST_PATH} | ||
98 | install -d ${D}${PTEST_PATH}/src | ||
99 | ln -sf ${bindir}/curl ${D}${PTEST_PATH}/src/curl | ||
100 | cp -rf ${D}${bindir}/curl-config ${D}${PTEST_PATH} | ||
101 | } | ||
102 | |||
103 | RDEPENDS:${PN}-ptest += "bash perl-modules" | ||
104 | |||
86 | PACKAGES =+ "lib${BPN}" | 105 | PACKAGES =+ "lib${BPN}" |
87 | 106 | ||
88 | FILES:lib${BPN} = "${libdir}/lib*.so.*" | 107 | FILES:lib${BPN} = "${libdir}/lib*.so.*" |