summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr/apr_1.7.0.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-02-08 08:20:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-09 09:57:24 +0000
commitbc40185f163cff602ec0c7379af45b1b81ac4d21 (patch)
tree9d71d10cf2ea1f2be06227fc4069540d64a9dfbd /meta/recipes-support/apr/apr_1.7.0.bb
parenta6b1a24bc7bd9b95f16cebf31d7f2b1a8a89a1a0 (diff)
downloadpoky-bc40185f163cff602ec0c7379af45b1b81ac4d21.tar.gz
apr: update 1.7.0 -> 1.7.2
Dropped patches have all been merged, addressed separately or are backports. (From OE-Core rev: 3ffae93f24bb1e3954b232099153fd059cfd7daf) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/apr/apr_1.7.0.bb')
-rw-r--r--meta/recipes-support/apr/apr_1.7.0.bb143
1 files changed, 0 insertions, 143 deletions
diff --git a/meta/recipes-support/apr/apr_1.7.0.bb b/meta/recipes-support/apr/apr_1.7.0.bb
deleted file mode 100644
index cb4bb936d7..0000000000
--- a/meta/recipes-support/apr/apr_1.7.0.bb
+++ /dev/null
@@ -1,143 +0,0 @@
1SUMMARY = "Apache Portable Runtime (APR) library"
2
3DESCRIPTION = "Create and maintain software libraries that provide a predictable \
4and consistent interface to underlying platform-specific implementations."
5
6HOMEPAGE = "http://apr.apache.org/"
7SECTION = "libs"
8DEPENDS = "util-linux"
9
10LICENSE = "Apache-2.0"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=4dfd4cd216828c8cae5de5a12f3844c8 \
12 file://include/apr_lib.h;endline=15;md5=823b3d1a7225df8f7b68a69c3c2b4c71"
13
14BBCLASSEXTEND = "native nativesdk"
15
16SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
17 file://run-ptest \
18 file://0002-apr-Remove-workdir-path-references-from-installed-ap.patch \
19 file://0003-Makefile.in-configure.in-support-cross-compiling.patch \
20 file://0004-Fix-packet-discards-HTTP-redirect.patch \
21 file://0005-configure.in-fix-LTFLAGS-to-make-it-work-with-ccache.patch \
22 file://0006-apr-fix-off_t-size-doesn-t-match-in-glibc-when-cross.patch \
23 file://0007-explicitly-link-libapr-against-phtread-to-make-gold-.patch \
24 file://libtoolize_check.patch \
25 file://0001-Add-option-to-disable-timed-dependant-tests.patch \
26 file://autoconf270.patch \
27 file://0001-add-AC_CACHE_CHECK-for-strerror_r-return-type.patch \
28 file://0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch \
29 file://CVE-2021-35940.patch \
30 "
31
32SRC_URI[md5sum] = "7a14a83d664e87599ea25ff4432e48a7"
33SRC_URI[sha256sum] = "e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea"
34
35inherit autotools-brokensep lib_package binconfig multilib_header ptest multilib_script
36
37OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
38
39# Added to fix some issues with cmake. Refer to https://github.com/bmwcarit/meta-ros/issues/68#issuecomment-19896928
40CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes"
41# Enable largefile
42CACHED_CONFIGUREVARS += "apr_cv_use_lfs64=yes"
43# Additional AC_TRY_RUN tests which will need to be cached for cross compile
44CACHED_CONFIGUREVARS += "apr_cv_epoll=yes epoll_create1=yes apr_cv_sock_cloexec=yes \
45 ac_cv_struct_rlimit=yes \
46 ac_cv_func_sem_open=yes \
47 apr_cv_process_shared_works=yes \
48 apr_cv_mutex_robust_shared=yes \
49 "
50# Also suppress trying to use sctp.
51#
52CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sctp_uio_h=no"
53
54# ac_cv_sizeof_struct_iovec is deduced using runtime check which will fail during cross-compile
55CACHED_CONFIGUREVARS += "${@['ac_cv_sizeof_struct_iovec=16','ac_cv_sizeof_struct_iovec=8'][d.getVar('SITEINFO_BITS') != '32']}"
56
57CACHED_CONFIGUREVARS += "ac_cv_file__dev_zero=yes"
58
59CACHED_CONFIGUREVARS:append:libc-musl = " ac_cv_strerror_r_rc_int=yes"
60PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
61PACKAGECONFIG:append:libc-musl = " xsi-strerror"
62PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
63PACKAGECONFIG[timed-tests] = "--enable-timed-tests,--disable-timed-tests,"
64PACKAGECONFIG[xsi-strerror] = "ac_cv_strerror_r_rc_int=yes,ac_cv_strerror_r_rc_int=no,"
65
66do_configure:prepend() {
67 # Avoid absolute paths for grep since it causes failures
68 # when using sstate between different hosts with different
69 # install paths for grep.
70 export GREP="grep"
71
72 cd ${S}
73 # The "2" means libtool version 2.
74 ./buildconf 2
75}
76
77MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apr-1-config \
78 ${PN}-dev:${datadir}/build-1/apr_rules.mk"
79
80FILES:${PN}-dev += "${libdir}/apr.exp ${datadir}/build-1/*"
81RDEPENDS:${PN}-dev += "bash libtool"
82
83RDEPENDS:${PN}-ptest += "libgcc"
84
85#for some reason, build/libtool.m4 handled by buildconf still be overwritten
86#when autoconf, so handle it again.
87do_configure:append() {
88 sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' ${S}/build/libtool.m4
89 sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' ${S}/build/apr_rules.mk
90}
91
92do_install:append() {
93 oe_multilib_header apr.h
94 install -d ${D}${datadir}/apr
95}
96
97do_install:append:class-target() {
98 rm -f ${D}${datadir}/build-1/libtool
99 sed -i s,LIBTOOL=.*,LIBTOOL=libtool,g ${D}${datadir}/build-1/apr_rules.mk
100 sed -i -e 's,${DEBUG_PREFIX_MAP},,g' \
101 -e 's,${STAGING_DIR_HOST},,g' ${D}${datadir}/build-1/apr_rules.mk
102 sed -i -e 's,${STAGING_DIR_HOST},,g' \
103 -e 's,APR_SOURCE_DIR=.*,APR_SOURCE_DIR=,g' \
104 -e 's,APR_BUILD_DIR=.*,APR_BUILD_DIR=,g' ${D}${bindir}/apr-1-config
105}
106
107SSTATE_SCAN_FILES += "apr_rules.mk libtool"
108
109SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess"
110
111apr_sysroot_preprocess () {
112 d=${SYSROOT_DESTDIR}${datadir}/apr
113 install -d $d/
114 cp ${S}/build/apr_rules.mk $d/
115 sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk
116 sed -i s,apr_builders=.*,apr_builders=,g $d/apr_rules.mk
117 sed -i s,LIBTOOL=.*,LIBTOOL=libtool,g $d/apr_rules.mk
118 sed -i s,\$\(apr_builders\),${STAGING_DATADIR}/apr/,g $d/apr_rules.mk
119 cp ${S}/build/mkdir.sh $d/
120 cp ${S}/build/make_exports.awk $d/
121 cp ${S}/build/make_var_export.awk $d/
122 cp ${S}/libtool ${SYSROOT_DESTDIR}${datadir}/build-1/libtool
123}
124
125do_compile_ptest() {
126 cd ${S}/test
127 oe_runmake
128}
129
130do_install_ptest() {
131 t=${D}${PTEST_PATH}/test
132 mkdir -p $t/.libs
133 cp -r ${S}/test/data $t/
134 cp -r ${S}/test/.libs/*.so $t/.libs/
135 cp ${S}/test/proc_child $t/
136 cp ${S}/test/readchild $t/
137 cp ${S}/test/sockchild $t/
138 cp ${S}/test/sockperf $t/
139 cp ${S}/test/testall $t/
140 cp ${S}/test/tryread $t/
141}
142
143export CONFIG_SHELL="/bin/bash"