summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/curl/curl_8.8.0.bb
diff options
context:
space:
mode:
authorRobert Joslyn <robert.joslyn@redrectangle.org>2024-05-26 09:26:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-30 09:04:14 +0100
commit73d029e1d27b1b1ecd656a8a636555cbc6953ada (patch)
tree26d80c3a8ad13b7247961fb3913ce4b51f382d30 /meta/recipes-support/curl/curl_8.8.0.bb
parentf12859b0e812ea7680298e992138fdf55bf31570 (diff)
downloadpoky-73d029e1d27b1b1ecd656a8a636555cbc6953ada.tar.gz
curl: Update to 8.8.0
Remove backported patch that is upsteam in this version. Disable test 1481 since it requires --libcurl option that is disabled by default. Remove --disable-ntlm-wb option since support for ntlm_wb was removed in this version (From OE-Core rev: f193e89cd957f0f0f7d8e9450b59061bf2e800c7) Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/curl/curl_8.8.0.bb')
-rw-r--r--meta/recipes-support/curl/curl_8.8.0.bb148
1 files changed, 148 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl_8.8.0.bb b/meta/recipes-support/curl/curl_8.8.0.bb
new file mode 100644
index 0000000000..b932594159
--- /dev/null
+++ b/meta/recipes-support/curl/curl_8.8.0.bb
@@ -0,0 +1,148 @@
1SUMMARY = "Command line tool and library for client-side URL transfers"
2DESCRIPTION = "It uses URL syntax to transfer data to and from servers. \
3curl is a widely used because of its ability to be flexible and complete \
4complex tasks. For example, you can use curl for things like user authentication, \
5HTTP post, SSL connections, proxy support, FTP uploads, and more!"
6HOMEPAGE = "https://curl.se/"
7BUGTRACKER = "https://github.com/curl/curl/issues"
8SECTION = "console/network"
9LICENSE = "curl"
10LIC_FILES_CHKSUM = "file://COPYING;md5=eed2e5088e1ac619c9a1c747da291d75"
11
12SRC_URI = " \
13 https://curl.se/download/${BP}.tar.xz \
14 file://run-ptest \
15 file://disable-tests \
16 file://no-test-timeout.patch \
17"
18SRC_URI[sha256sum] = "0f58bb95fc330c8a46eeb3df5701b0d90c9d9bfcc42bd1cd08791d12551d4400"
19
20# Curl has used many names over the years...
21CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl"
22
23inherit autotools pkgconfig binconfig multilib_header ptest
24
25# Entropy source for random PACKAGECONFIG option
26RANDOM ?= "/dev/urandom"
27
28PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} aws basic-auth bearer-auth digest-auth negotiate-auth libidn openssl proxy random threaded-resolver verbose zlib"
29PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
30PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
31
32# 'ares' and 'threaded-resolver' are mutually exclusive
33PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
34PACKAGECONFIG[aws] = "--enable-aws,--disable-aws"
35PACKAGECONFIG[basic-auth] = "--enable-basic-auth,--disable-basic-auth"
36PACKAGECONFIG[bearer-auth] = "--enable-bearer-auth,--disable-bearer-auth"
37PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli"
38PACKAGECONFIG[builtinmanual] = "--enable-manual,--disable-manual"
39# Don't use this in production
40PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
41PACKAGECONFIG[dict] = "--enable-dict,--disable-dict,"
42PACKAGECONFIG[digest-auth] = "--enable-digest-auth,--disable-digest-auth"
43PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
44PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher,"
45PACKAGECONFIG[imap] = "--enable-imap,--disable-imap,"
46PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
47PACKAGECONFIG[kerberos-auth] = "--enable-kerberos-auth,--disable-kerberos-auth"
48PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5"
49PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,openldap"
50PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps,openldap"
51PACKAGECONFIG[libgsasl] = "--with-libgsasl,--without-libgsasl,libgsasl"
52PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2"
53PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2"
54PACKAGECONFIG[mbedtls] = "--with-mbedtls=${STAGING_DIR_TARGET},--without-mbedtls,mbedtls"
55PACKAGECONFIG[mqtt] = "--enable-mqtt,--disable-mqtt,"
56PACKAGECONFIG[negotiate-auth] = "--enable-negotiate-auth,--disable-negotiate-auth"
57PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2,nghttp2"
58PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl"
59PACKAGECONFIG[pop3] = "--enable-pop3,--disable-pop3,"
60PACKAGECONFIG[proxy] = "--enable-proxy,--disable-proxy,"
61PACKAGECONFIG[random] = "--with-random=${RANDOM},--without-random"
62PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump"
63PACKAGECONFIG[rtsp] = "--enable-rtsp,--disable-rtsp,"
64PACKAGECONFIG[smb] = "--enable-smb,--disable-smb,"
65PACKAGECONFIG[smtp] = "--enable-smtp,--disable-smtp,"
66PACKAGECONFIG[telnet] = "--enable-telnet,--disable-telnet,"
67PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp,"
68PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver,,,,ares"
69PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose"
70PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib"
71PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
72
73EXTRA_OECONF = " \
74 --disable-libcurl-option \
75 --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
76 --without-libpsl \
77 --enable-optimize \
78 ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls openssl', d) == '') else ''} \
79"
80
81fix_absolute_paths () {
82 # cleanup buildpaths from curl-config
83 sed -i \
84 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
85 -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
86 -e 's|${DEBUG_PREFIX_MAP}||g' \
87 -e 's|${@" ".join(d.getVar("DEBUG_PREFIX_MAP").split())}||g' \
88 ${D}${bindir}/curl-config
89}
90
91do_install:append:class-target() {
92 fix_absolute_paths
93}
94
95do_install:append:class-nativesdk() {
96 fix_absolute_paths
97}
98
99do_compile_ptest() {
100 oe_runmake -C ${B}/tests
101}
102
103do_install_ptest() {
104 cat ${UNPACKDIR}/disable-tests >> ${S}/tests/data/DISABLED
105 rm -f ${B}/tests/configurehelp.pm
106 cp -rf ${B}/tests ${D}${PTEST_PATH}
107 rm -f ${D}${PTEST_PATH}/tests/libtest/.libs/libhostname.la
108 rm -f ${D}${PTEST_PATH}/tests/libtest/libhostname.la
109 mv ${D}${PTEST_PATH}/tests/libtest/.libs/* ${D}${PTEST_PATH}/tests/libtest/
110 mv ${D}${PTEST_PATH}/tests/libtest/libhostname.so ${D}${PTEST_PATH}/tests/libtest/.libs/
111 mv ${D}${PTEST_PATH}/tests/http/clients/.libs/* ${D}${PTEST_PATH}/tests/http/clients/
112 cp -rf ${S}/tests ${D}${PTEST_PATH}
113 find ${D}${PTEST_PATH}/ -type f -name Makefile.am -o -name Makefile.in -o -name Makefile -delete
114 install -d ${D}${PTEST_PATH}/src
115 ln -sf ${bindir}/curl ${D}${PTEST_PATH}/src/curl
116 cp -rf ${D}${bindir}/curl-config ${D}${PTEST_PATH}
117}
118
119RDEPENDS:${PN}-ptest += " \
120 bash \
121 locale-base-en-us \
122 perl-module-b \
123 perl-module-base \
124 perl-module-cwd \
125 perl-module-digest \
126 perl-module-digest-md5 \
127 perl-module-file-basename \
128 perl-module-file-spec \
129 perl-module-file-temp \
130 perl-module-io-socket \
131 perl-module-ipc-open2 \
132 perl-module-list-util \
133 perl-module-memoize \
134 perl-module-storable \
135 perl-module-time-hires \
136"
137
138PACKAGES =+ "lib${BPN}"
139
140FILES:lib${BPN} = "${libdir}/lib*.so.*"
141RRECOMMENDS:lib${BPN} += "ca-certificates"
142
143FILES:${PN} += "${datadir}/zsh"
144
145inherit multilib_script
146MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/curl-config"
147
148BBCLASSEXTEND = "native nativesdk"