diff options
Diffstat (limited to 'meta-networking/recipes-daemons/squid')
-rw-r--r-- | meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch | 55 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch | 2 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/squid/squid_6.12.bb (renamed from meta-networking/recipes-daemons/squid/squid_6.9.bb) | 21 |
3 files changed, 70 insertions, 8 deletions
diff --git a/meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch b/meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch new file mode 100644 index 0000000000..9babcfb24d --- /dev/null +++ b/meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | From a6638a007a42917fea4b03e5c30d9b7208c634c4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Marko <peter.marko@siemens.com> | ||
3 | Date: Thu, 7 Nov 2024 22:04:40 +0100 | ||
4 | Subject: [PATCH] libltdl: remove reference to nonexisting directory | ||
5 | |||
6 | Commit [1] removed directory libltdl/m4 from release tarball by merging | ||
7 | all those files into libltdl/aclocal.m4, however makefiles still | ||
8 | reference it causing following error in do_configure: | ||
9 | |||
10 | | autoreconf: Entering directory 'libltdl' | ||
11 | | autoreconf: configure.ac: not using Gettext | ||
12 | | autoreconf: running: aclocal --system-acdir=WORKDIR/recipe-sysroot/usr/share/aclocal/ -I WORKDIR/squid-6.12/acinclude/ -I WORKDIR/recipe-sysroot-native/usr/share/aclocal/ --force -I m4 | ||
13 | | aclocal: error: couldn't open directory 'm4': No such file or directory | ||
14 | | autoreconf: error: aclocal failed with exit status: 1 | ||
15 | |||
16 | Remove these invalid references. | ||
17 | |||
18 | [1] https://github.com/squid-cache/squid/commit/b4addc2262e5bee37543f8d1ab9dd98337bafba3 | ||
19 | |||
20 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
21 | Upstream-Status: Inappropriate [upstream ticket https://lists.squid-cache.org/pipermail/squid-users/2024-November/027244.html] | ||
22 | --- | ||
23 | libltdl/Makefile.am | 2 +- | ||
24 | libltdl/Makefile.in | 2 +- | ||
25 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
26 | |||
27 | diff --git a/libltdl/Makefile.am b/libltdl/Makefile.am | ||
28 | index aad98e2..8a9539b 100644 | ||
29 | --- a/libltdl/Makefile.am | ||
30 | +++ b/libltdl/Makefile.am | ||
31 | @@ -29,7 +29,7 @@ | ||
32 | ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
33 | ##### | ||
34 | |||
35 | -ACLOCAL_AMFLAGS = -I m4 | ||
36 | +ACLOCAL_AMFLAGS = | ||
37 | AUTOMAKE_OPTIONS = foreign | ||
38 | AM_CPPFLAGS = | ||
39 | AM_LDFLAGS = | ||
40 | diff --git a/libltdl/Makefile.in b/libltdl/Makefile.in | ||
41 | index 9929557..c77df2e 100644 | ||
42 | --- a/libltdl/Makefile.in | ||
43 | +++ b/libltdl/Makefile.in | ||
44 | @@ -448,7 +448,7 @@ target_alias = @target_alias@ | ||
45 | top_build_prefix = @top_build_prefix@ | ||
46 | top_builddir = @top_builddir@ | ||
47 | top_srcdir = @top_srcdir@ | ||
48 | -ACLOCAL_AMFLAGS = -I m4 | ||
49 | +ACLOCAL_AMFLAGS = | ||
50 | AUTOMAKE_OPTIONS = foreign | ||
51 | |||
52 | # -I$(srcdir) is needed for user that built libltdl with a sub-Automake | ||
53 | -- | ||
54 | 2.30.2 | ||
55 | |||
diff --git a/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch b/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch index e0d002c68c..489850e3bd 100644 --- a/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch +++ b/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch | |||
@@ -37,7 +37,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
37 | ]) | 37 | ]) |
38 | --- a/acinclude/lib-checks.m4 | 38 | --- a/acinclude/lib-checks.m4 |
39 | +++ b/acinclude/lib-checks.m4 | 39 | +++ b/acinclude/lib-checks.m4 |
40 | @@ -205,7 +205,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_ | 40 | @@ -205,7 +205,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_METHOD],[ |
41 | [ | 41 | [ |
42 | AC_MSG_RESULT([no]) | 42 | AC_MSG_RESULT([no]) |
43 | ], | 43 | ], |
diff --git a/meta-networking/recipes-daemons/squid/squid_6.9.bb b/meta-networking/recipes-daemons/squid/squid_6.12.bb index f0663a5e04..87144fb049 100644 --- a/meta-networking/recipes-daemons/squid/squid_6.9.bb +++ b/meta-networking/recipes-daemons/squid/squid_6.12.bb | |||
@@ -19,13 +19,14 @@ SRC_URI = "http://www.squid-cache.org/Versions/v${MAJ_VER}/${BPN}-${PV}.tar.xz \ | |||
19 | file://run-ptest \ | 19 | file://run-ptest \ |
20 | file://volatiles.03_squid \ | 20 | file://volatiles.03_squid \ |
21 | file://0002-squid-make-squid-conf-tests-run-on-target-device.patch \ | 21 | file://0002-squid-make-squid-conf-tests-run-on-target-device.patch \ |
22 | file://0001-libltdl-remove-reference-to-nonexisting-directory.patch \ | ||
22 | file://squid.nm \ | 23 | file://squid.nm \ |
23 | " | 24 | " |
24 | 25 | ||
25 | SRC_URI[sha256sum] = "1ad72d46e1cb556e9561214f0fb181adb87c7c47927ef69bc8acd68a03f61882" | 26 | SRC_URI[sha256sum] = "f3df3abb2603a513266f24a5d4699a9f0d76b9f554d1848b67f9c51cd3b3cb50" |
26 | 27 | ||
27 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 28 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
28 | file://errors/COPYRIGHT;md5=d324bc1f9447d1d1588d75b22a678dc4 \ | 29 | file://errors/COPYRIGHT;md5=6fbb6a2adc362e206da7b4f42846cdec \ |
29 | " | 30 | " |
30 | DEPENDS = "libtool" | 31 | DEPENDS = "libtool" |
31 | 32 | ||
@@ -47,7 +48,6 @@ PACKAGECONFIG ??= "auth url-rewrite-helpers \ | |||
47 | PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" | 48 | PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" |
48 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | 49 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
49 | PACKAGECONFIG[werror] = "--enable-strict-error-checking,--disable-strict-error-checking," | 50 | PACKAGECONFIG[werror] = "--enable-strict-error-checking,--disable-strict-error-checking," |
50 | PACKAGECONFIG[esi] = "--enable-esi,--disable-esi,expat libxml2" | ||
51 | PACKAGECONFIG[ssl] = "--with-openssl=yes,--with-openssl=no,openssl" | 51 | PACKAGECONFIG[ssl] = "--with-openssl=yes,--with-openssl=no,openssl" |
52 | PACKAGECONFIG[auth] = "--enable-auth-basic='${BASIC_AUTH}',--disable-auth --disable-auth-basic,krb5 openldap db cyrus-sasl" | 52 | PACKAGECONFIG[auth] = "--enable-auth-basic='${BASIC_AUTH}',--disable-auth --disable-auth-basic,krb5 openldap db cyrus-sasl" |
53 | PACKAGECONFIG[url-rewrite-helpers] = "--enable-url-rewrite-helpers,--disable-url-rewrite-helpers," | 53 | PACKAGECONFIG[url-rewrite-helpers] = "--enable-url-rewrite-helpers,--disable-url-rewrite-helpers," |
@@ -66,9 +66,16 @@ BASIC_AUTH += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'PAM', '', d)}" | |||
66 | EXTRA_OECONF += "--with-default-user=squid \ | 66 | EXTRA_OECONF += "--with-default-user=squid \ |
67 | --sysconfdir=${sysconfdir}/${BPN} \ | 67 | --sysconfdir=${sysconfdir}/${BPN} \ |
68 | --with-logdir=${localstatedir}/log/${BPN} \ | 68 | --with-logdir=${localstatedir}/log/${BPN} \ |
69 | 'PERL=${USRBINPATH}/env perl'" | 69 | 'PERL=${USRBINPATH}/env perl' \ |
70 | --disable-esi \ | ||
71 | " | ||
72 | |||
73 | # Workaround a build failure when using a native compiler that need -std=c++17 | ||
74 | # with a cross-compiler that doesn't. | ||
75 | # Upstream issue closed as invalid : https://bugs.squid-cache.org/show_bug.cgi?id=5376 | ||
76 | BUILD_CXXFLAGS += "-std=c++17" | ||
70 | 77 | ||
71 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" | 78 | export BUILDCXXFLAGS = "${BUILD_CXXFLAGS}" |
72 | 79 | ||
73 | TESTDIR = "test-suite" | 80 | TESTDIR = "test-suite" |
74 | 81 | ||
@@ -117,7 +124,7 @@ do_install:append() { | |||
117 | fi | 124 | fi |
118 | 125 | ||
119 | install -d ${D}${sysconfdir}/default/volatiles | 126 | install -d ${D}${sysconfdir}/default/volatiles |
120 | install -m 0644 ${WORKDIR}/volatiles.03_squid ${D}${sysconfdir}/default/volatiles/03_squid | 127 | install -m 0644 ${UNPACKDIR}/volatiles.03_squid ${D}${sysconfdir}/default/volatiles/03_squid |
121 | 128 | ||
122 | rmdir "${D}${localstatedir}/run/${BPN}" | 129 | rmdir "${D}${localstatedir}/run/${BPN}" |
123 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/run" | 130 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/run" |
@@ -127,7 +134,7 @@ do_install:append() { | |||
127 | 134 | ||
128 | # Install NetworkManager dispatcher reload hooks | 135 | # Install NetworkManager dispatcher reload hooks |
129 | install -d ${D}${libdir}/NetworkManager/dispatcher.d | 136 | install -d ${D}${libdir}/NetworkManager/dispatcher.d |
130 | install -m 0755 ${WORKDIR}/squid.nm ${D}${libdir}/NetworkManager/dispatcher.d/20-squid | 137 | install -m 0755 ${UNPACKDIR}/squid.nm ${D}${libdir}/NetworkManager/dispatcher.d/20-squid |
131 | } | 138 | } |
132 | 139 | ||
133 | SYSTEMD_AUTO_ENABLE = "disable" | 140 | SYSTEMD_AUTO_ENABLE = "disable" |