diff options
author | Patrick Wicki <patrick.wicki@siemens.com> | 2023-11-30 03:55:24 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-11-29 22:25:04 -0800 |
commit | f4972749457329dfe4f01f26116720401b6df0da (patch) | |
tree | b9cfba687e6015ab6a554fc7eb6efa93191622a1 /meta-networking/recipes-daemons/squid/files | |
parent | cdac7e90f0da74b2119cf1283601aaf739deac22 (diff) | |
download | meta-openembedded-f4972749457329dfe4f01f26116720401b6df0da.tar.gz |
squid: update from v5.7 to v6.5
Refresh patches and clean up ones that are no longer needed:
* dlopen test was removed in b65d2165c5c250242764ed7cdac4540fba813dec
* libxml2 variables were removed in
866a092dad01e58986a6e9ecb84ac89037a63e9a
* squid-conf-tests no longer run at build time since
cd3dc147bf8abc0225237ced865c6660fffcb63a
Fix squid-conf-tests to allow running on target device.
License change: Update year
The version update eliminates the following CVEs:
* CVE-2023-5824 (affected: <6.4)
* CVE-2023-46724 (affected: >=3.3.0.1, <6.4)
* CVE-2023-46728 (affected: <6.0.1)
* CVE-2023-46846 (affected: >=2.6, <6.4)
* CVE-2023-46847 (affected: >=3.2.0.1, <6.4)
* CVE-2023-46848 (affected: >=5.0.3, <6.4)
Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/squid/files')
8 files changed, 101 insertions, 169 deletions
diff --git a/meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch b/meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch index acebd6dce..a478dcd80 100644 --- a/meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch +++ b/meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From c21adbb0b230ffba97cf5d059e2bd024e13a37df Mon Sep 17 00:00:00 2001 | 1 | From 38e7e90cc2075952c1b74f5fca826f9c6cadb2f0 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 22 Apr 2017 11:54:57 -0700 | 3 | Date: Sat, 22 Apr 2017 11:54:57 -0700 |
4 | Subject: [PATCH] configure: Check for -Wno-error=format-truncation compiler | 4 | Subject: [PATCH] configure: Check for -Wno-error=format-truncation compiler |
@@ -13,8 +13,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
13 | --- | 13 | --- |
14 | Upstream-Status: Pending | 14 | Upstream-Status: Pending |
15 | 15 | ||
16 | acinclude/ax_check_compile_flag.m4 | 74 ++++++++++++++++++++++++++++++++++++++ | 16 | acinclude/ax_check_compile_flag.m4 | 74 ++++++++++++++++++++++++++++++ |
17 | configure.ac | 2 ++ | 17 | configure.ac | 2 + |
18 | 2 files changed, 76 insertions(+) | 18 | 2 files changed, 76 insertions(+) |
19 | create mode 100644 acinclude/ax_check_compile_flag.m4 | 19 | create mode 100644 acinclude/ax_check_compile_flag.m4 |
20 | 20 | ||
@@ -99,20 +99,20 @@ index 0000000..dcabb92 | |||
99 | +AS_VAR_POPDEF([CACHEVAR])dnl | 99 | +AS_VAR_POPDEF([CACHEVAR])dnl |
100 | +])dnl AX_CHECK_COMPILE_FLAGS | 100 | +])dnl AX_CHECK_COMPILE_FLAGS |
101 | diff --git a/configure.ac b/configure.ac | 101 | diff --git a/configure.ac b/configure.ac |
102 | index ff4688c..9382fdf 100644 | 102 | index 2543676..4635474 100644 |
103 | --- a/configure.ac | 103 | --- a/configure.ac |
104 | +++ b/configure.ac | 104 | +++ b/configure.ac |
105 | @@ -26,6 +26,7 @@ m4_include([acinclude/pkg.m4]) | 105 | @@ -28,6 +28,7 @@ m4_include([acinclude/pkg.m4]) |
106 | m4_include([acinclude/tdb.m4]) | ||
106 | m4_include([acinclude/lib-checks.m4]) | 107 | m4_include([acinclude/lib-checks.m4]) |
107 | m4_include([acinclude/ax_cxx_compile_stdcxx_11.m4]) | 108 | m4_include([acinclude/ax_cxx_compile_stdcxx.m4]) |
108 | m4_include([acinclude/ax_cxx_0x_types.m4]) | ||
109 | +m4_include([acinclude/ax_check_compile_flag.m4]) | 109 | +m4_include([acinclude/ax_check_compile_flag.m4]) |
110 | 110 | ||
111 | HOSTCXX="$BUILD_CXX" | 111 | HOSTCXX="$BUILD_CXX" |
112 | PRESET_CFLAGS="$CFLAGS" | 112 | PRESET_CFLAGS="$CFLAGS" |
113 | @@ -44,6 +45,7 @@ AC_PROG_CXX | 113 | @@ -59,6 +60,7 @@ AC_USE_SYSTEM_EXTENSIONS |
114 | |||
114 | AC_LANG([C++]) | 115 | AC_LANG([C++]) |
115 | AC_CANONICAL_HOST | ||
116 | 116 | ||
117 | +AX_CHECK_COMPILE_FLAG([-Werror=format-truncation],[CFLAGS="$CFLAGS -Wno-error=format-truncation" CXXFLAGS="$CXXFLAGS -Wno-error=format-truncation"]) | 117 | +AX_CHECK_COMPILE_FLAG([-Werror=format-truncation],[CFLAGS="$CFLAGS -Wno-error=format-truncation" CXXFLAGS="$CXXFLAGS -Wno-error=format-truncation"]) |
118 | # Clang 3.2 on some CPUs requires -march-native to detect correctly. | 118 | # Clang 3.2 on some CPUs requires -march-native to detect correctly. |
diff --git a/meta-networking/recipes-daemons/squid/files/0002-squid-make-squid-conf-tests-run-on-target-device.patch b/meta-networking/recipes-daemons/squid/files/0002-squid-make-squid-conf-tests-run-on-target-device.patch new file mode 100644 index 000000000..56c91de3c --- /dev/null +++ b/meta-networking/recipes-daemons/squid/files/0002-squid-make-squid-conf-tests-run-on-target-device.patch | |||
@@ -0,0 +1,74 @@ | |||
1 | From cd8bf8a4bf881f84c23a5fc1f48bb716efa51512 Mon Sep 17 00:00:00 2001 | ||
2 | From: Patrick Wicki <patrick.wicki@siemens.com> | ||
3 | Date: Wed, 22 Nov 2023 15:35:44 +0100 | ||
4 | Subject: [PATCH] squid: make squid-conf-tests run on target device | ||
5 | |||
6 | * Fix paths to allow tests to run outside the original builddir | ||
7 | * Allow the tests to run on read-only root | ||
8 | * Don't overwrite tests with true on success | ||
9 | * Change logfile path to /var/log | ||
10 | |||
11 | Upstream-Status: Inappropriate [cross compile specific] | ||
12 | |||
13 | Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> | ||
14 | |||
15 | --- | ||
16 | test-suite/Makefile.am | 16 ++++++++-------- | ||
17 | test-suite/test-squid-conf.sh | 2 +- | ||
18 | 2 files changed, 9 insertions(+), 9 deletions(-) | ||
19 | |||
20 | diff --git a/test-suite/Makefile.am b/test-suite/Makefile.am | ||
21 | index 8becdbc..eccd49c 100644 | ||
22 | --- a/test-suite/Makefile.am | ||
23 | +++ b/test-suite/Makefile.am | ||
24 | @@ -21,7 +21,7 @@ LDADD = \ | ||
25 | EXTRA_PROGRAMS = mem_node_test splay | ||
26 | |||
27 | EXTRA_DIST = \ | ||
28 | - $(srcdir)/squidconf/* \ | ||
29 | + squidconf/* \ | ||
30 | test-functionality.sh \ | ||
31 | test-sources.sh \ | ||
32 | test-squid-conf.sh \ | ||
33 | @@ -134,21 +134,21 @@ VirtualDeleteOperator_SOURCES = \ | ||
34 | |||
35 | installcheck-local: squid-conf-tests | ||
36 | |||
37 | -squid-conf-tests: $(srcdir)/test-squid-conf.sh $(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/* | ||
38 | - @failed=0; cfglist="$(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/*.conf"; rm -f $@ || $(TRUE); \ | ||
39 | +squid-conf-tests: test-squid-conf.sh $(top_builddir)/src/squid.conf.default squidconf/* | ||
40 | + @failed=0; cfglist="$(top_builddir)/src/squid.conf.default squidconf/*.conf"; rm -f $@ || $(TRUE); \ | ||
41 | for cfg in $$cfglist ; do \ | ||
42 | - $(srcdir)/test-squid-conf.sh $(top_builddir) $(sbindir) $$cfg || \ | ||
43 | + ./test-squid-conf.sh $(top_builddir) $(sbindir) $$cfg || \ | ||
44 | { echo "FAIL: squid.conf test: $$cfg" | \ | ||
45 | sed s%$(top_builddir)/src/%% | \ | ||
46 | - sed s%$(srcdir)/squidconf/%% ; \ | ||
47 | + sed s%squidconf/%% ; \ | ||
48 | failed=1; break; \ | ||
49 | }; \ | ||
50 | if test "$$failed" -eq 0; then \ | ||
51 | echo "PASS: squid.conf test: $$cfg" | \ | ||
52 | sed s%$(top_builddir)/src/%% | \ | ||
53 | - sed s%$(srcdir)/squidconf/%% ; \ | ||
54 | + sed s%squidconf/%% ; \ | ||
55 | else break; fi; \ | ||
56 | done; \ | ||
57 | - if test "$$failed" -eq 0; then cp $(TRUE) $@ ; else exit 1; fi | ||
58 | + exit "$$failed" | ||
59 | |||
60 | -CLEANFILES += squid-conf-tests squid-stderr.log | ||
61 | +CLEANFILES += squid-conf-tests /var/log/squid-stderr.log | ||
62 | diff --git a/test-suite/test-squid-conf.sh b/test-suite/test-squid-conf.sh | ||
63 | index 05fcaf3..a5a8a5a 100755 | ||
64 | --- a/test-suite/test-squid-conf.sh | ||
65 | +++ b/test-suite/test-squid-conf.sh | ||
66 | @@ -111,7 +111,7 @@ then | ||
67 | done < $instructionsFile | ||
68 | fi | ||
69 | |||
70 | -errorLog="squid-stderr.log" | ||
71 | +errorLog="/var/log/squid-stderr.log" | ||
72 | |||
73 | $sbindir/squid -k parse -f $configFile 2> $errorLog | ||
74 | result=$? | ||
diff --git a/meta-networking/recipes-daemons/squid/files/Fix-flawed-dynamic-ldb-link-test-in-configure.patch b/meta-networking/recipes-daemons/squid/files/Fix-flawed-dynamic-ldb-link-test-in-configure.patch deleted file mode 100644 index 738e609c0..000000000 --- a/meta-networking/recipes-daemons/squid/files/Fix-flawed-dynamic-ldb-link-test-in-configure.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From b73b802282bf95d214c86ba943c5765ba6930bc1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jim Somerville <Jim.Somerville@windriver.com> | ||
3 | Date: Mon, 21 Oct 2013 12:50:44 -0400 | ||
4 | Subject: [PATCH] Fix flawed dynamic -ldb link test in configure | ||
5 | |||
6 | The test uses dbopen, but just ignores the fact | ||
7 | that this function may not exist in the db version | ||
8 | used. This leads to the dynamic link test failing | ||
9 | and the configure script just making assumptions | ||
10 | about why and setting the need for -ldb incorrectly. | ||
11 | |||
12 | Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com> | ||
13 | |||
14 | --- | ||
15 | Upstream-Status: Pending | ||
16 | |||
17 | configure.ac | 10 ++++++++++ | ||
18 | 1 file changed, 10 insertions(+) | ||
19 | |||
20 | diff --git a/configure.ac b/configure.ac | ||
21 | index d2f7feb..c7ae568 100644 | ||
22 | --- a/configure.ac | ||
23 | +++ b/configure.ac | ||
24 | @@ -3268,6 +3268,16 @@ case "$host" in | ||
25 | ;; | ||
26 | esac | ||
27 | |||
28 | +if test "x$ac_cv_have_decl_dbopen" = "xyes"; then | ||
29 | + dnl 1.85 | ||
30 | + SQUID_CHECK_DBOPEN_NEEDS_LIBDB | ||
31 | +else | ||
32 | + # dbopen isn't there. So instead of running a compile/link test that | ||
33 | + # uses it and is thus guaranteed to fail, we just assume that we will | ||
34 | + # need to link in the db library, rather than fabricate some other | ||
35 | + # dynamic compile/link test. | ||
36 | + ac_cv_dbopen_libdb="yes" | ||
37 | +fi | ||
38 | dnl System-specific library modifications | ||
39 | dnl | ||
40 | case "$host" in | ||
diff --git a/meta-networking/recipes-daemons/squid/files/Set-up-for-cross-compilation.patch b/meta-networking/recipes-daemons/squid/files/Set-up-for-cross-compilation.patch index ffb737164..ae8706df7 100644 --- a/meta-networking/recipes-daemons/squid/files/Set-up-for-cross-compilation.patch +++ b/meta-networking/recipes-daemons/squid/files/Set-up-for-cross-compilation.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 995aaf30799fa972441354b6feb45f0621968929 Mon Sep 17 00:00:00 2001 | 1 | From c0be3192f608037682464bcb728e97f9d9b543aa Mon Sep 17 00:00:00 2001 |
2 | From: Jim Somerville <Jim.Somerville@windriver.com> | 2 | From: Jim Somerville <Jim.Somerville@windriver.com> |
3 | Date: Wed, 16 Oct 2013 16:41:03 -0400 | 3 | Date: Wed, 16 Oct 2013 16:41:03 -0400 |
4 | Subject: [PATCH] Set up for cross compilation | 4 | Subject: [PATCH] Set up for cross compilation |
@@ -17,12 +17,12 @@ Upstream-Status: Pending | |||
17 | 1 file changed, 1 insertion(+) | 17 | 1 file changed, 1 insertion(+) |
18 | 18 | ||
19 | diff --git a/configure.ac b/configure.ac | 19 | diff --git a/configure.ac b/configure.ac |
20 | index fe80ee0..57cd1ac 100644 | 20 | index ca0bc79..c222851 100644 |
21 | --- a/configure.ac | 21 | --- a/configure.ac |
22 | +++ b/configure.ac | 22 | +++ b/configure.ac |
23 | @@ -27,6 +27,7 @@ m4_include([acinclude/lib-checks.m4]) | 23 | @@ -29,6 +29,7 @@ m4_include([acinclude/tdb.m4]) |
24 | m4_include([acinclude/ax_cxx_compile_stdcxx_11.m4]) | 24 | m4_include([acinclude/lib-checks.m4]) |
25 | m4_include([acinclude/ax_cxx_0x_types.m4]) | 25 | m4_include([acinclude/ax_cxx_compile_stdcxx.m4]) |
26 | 26 | ||
27 | +HOSTCXX="$BUILD_CXX" | 27 | +HOSTCXX="$BUILD_CXX" |
28 | PRESET_CFLAGS="$CFLAGS" | 28 | PRESET_CFLAGS="$CFLAGS" |
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 10853333e..5bb30bfcb 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From e4778299a3e49a634d2c7fe4fd9ac77777e829e3 Mon Sep 17 00:00:00 2001 | 1 | From 050f8ab275a7a5f3d94045da6b15a2b63dfbeb3f Mon Sep 17 00:00:00 2001 |
2 | From: Jim Somerville <Jim.Somerville@windriver.com> | 2 | From: Jim Somerville <Jim.Somerville@windriver.com> |
3 | Date: Tue, 14 Oct 2014 02:56:08 -0400 | 3 | Date: Tue, 14 Oct 2014 02:56:08 -0400 |
4 | Subject: [PATCH] Skip AC_RUN_IFELSE tests | 4 | Subject: [PATCH] Skip AC_RUN_IFELSE tests |
@@ -17,10 +17,10 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
17 | 2 files changed, 15 insertions(+), 3 deletions(-) | 17 | 2 files changed, 15 insertions(+), 3 deletions(-) |
18 | 18 | ||
19 | diff --git a/acinclude/krb5.m4 b/acinclude/krb5.m4 | 19 | diff --git a/acinclude/krb5.m4 b/acinclude/krb5.m4 |
20 | index ad0ba60..4477446 100644 | 20 | index 2c4e340..64648e3 100644 |
21 | --- a/acinclude/krb5.m4 | 21 | --- a/acinclude/krb5.m4 |
22 | +++ b/acinclude/krb5.m4 | 22 | +++ b/acinclude/krb5.m4 |
23 | @@ -61,7 +61,15 @@ main(void) | 23 | @@ -57,7 +57,15 @@ main(void) |
24 | 24 | ||
25 | return 0; | 25 | return 0; |
26 | } | 26 | } |
@@ -35,13 +35,13 @@ index ad0ba60..4477446 100644 | |||
35 | + dnl Can't test in cross compiled env - so assume good | 35 | + dnl Can't test in cross compiled env - so assume good |
36 | + squid_cv_broken_heimdal_krb5_h=no | 36 | + squid_cv_broken_heimdal_krb5_h=no |
37 | ]) | 37 | ]) |
38 | SQUID_STATE_ROLLBACK(squid_krb5_heimdal_test) | ||
38 | ]) | 39 | ]) |
39 | ]) dnl SQUID_CHECK_KRB5_HEIMDAL_BROKEN_KRB5_H | ||
40 | diff --git a/acinclude/lib-checks.m4 b/acinclude/lib-checks.m4 | 40 | diff --git a/acinclude/lib-checks.m4 b/acinclude/lib-checks.m4 |
41 | index 1e9333527c..2d42787029 100644 | 41 | index 53847a8..850322a 100644 |
42 | --- a/acinclude/lib-checks.m4 | 42 | --- a/acinclude/lib-checks.m4 |
43 | +++ b/acinclude/lib-checks.m4 | 43 | +++ b/acinclude/lib-checks.m4 |
44 | @@ -227,7 +227,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_METHOD],[ | 44 | @@ -205,7 +205,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_METHOD],[ |
45 | [ | 45 | [ |
46 | AC_MSG_RESULT([no]) | 46 | AC_MSG_RESULT([no]) |
47 | ], | 47 | ], |
@@ -52,15 +52,14 @@ index 1e9333527c..2d42787029 100644 | |||
52 | 52 | ||
53 | SQUID_STATE_ROLLBACK(check_const_SSL_METHOD) | 53 | SQUID_STATE_ROLLBACK(check_const_SSL_METHOD) |
54 | ]) | 54 | ]) |
55 | @@ -386,8 +386,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_TXTDB],[ | 55 | @@ -347,7 +349,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_TXTDB],[ |
56 | [ | 56 | ],[ |
57 | AC_MSG_RESULT([yes]) | 57 | AC_MSG_RESULT([yes]) |
58 | AC_DEFINE(SQUID_USE_SSLLHASH_HACK, 1) | 58 | AC_DEFINE(SQUID_USE_SSLLHASH_HACK, 1) |
59 | - ], | 59 | - ],[]) |
60 | -[]) | ||
61 | + ],[ | 60 | + ],[ |
62 | + AC_MSG_RESULT([skipped - can't test in cross-compiled env]) | 61 | + AC_MSG_RESULT([skipped - can't test in cross-compiled env]) |
63 | + ]) | 62 | + ]) |
64 | 63 | ||
65 | SQUID_STATE_ROLLBACK(check_TXTDB) | 64 | SQUID_STATE_ROLLBACK(check_TXTDB) |
66 | ]) | 65 | ]) |
diff --git a/meta-networking/recipes-daemons/squid/files/run-ptest b/meta-networking/recipes-daemons/squid/files/run-ptest index de79a293c..8f8e28f92 100644 --- a/meta-networking/recipes-daemons/squid/files/run-ptest +++ b/meta-networking/recipes-daemons/squid/files/run-ptest | |||
@@ -1,3 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | make -C test-suite -k squid-conf-tests | ||
3 | make -C test-suite -k runtest-TESTS | 4 | make -C test-suite -k runtest-TESTS |
diff --git a/meta-networking/recipes-daemons/squid/files/set_sysroot_patch.patch b/meta-networking/recipes-daemons/squid/files/set_sysroot_patch.patch deleted file mode 100644 index 124e04490..000000000 --- a/meta-networking/recipes-daemons/squid/files/set_sysroot_patch.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 702bd881b66dc034e711c0ff47805f2da40b6e0d Mon Sep 17 00:00:00 2001 | ||
2 | From: Yue Tao <yue.tao@windriver.com> | ||
3 | Date: Mon, 8 Aug 2016 16:04:33 +0800 | ||
4 | Subject: [PATCH] Set the SYSROOT for libxml2 header file to avoid host | ||
5 | contamination. | ||
6 | |||
7 | Upstream-Status: Inappropriate [embedded specific] | ||
8 | |||
9 | Signed-off-by: Yue Tao <yue.tao@windriver.com> | ||
10 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
11 | |||
12 | --- | ||
13 | configure.ac | 12 ++++++------ | ||
14 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
15 | |||
16 | diff --git a/configure.ac b/configure.ac | ||
17 | index 504a844..ff4688c 100644 | ||
18 | --- a/configure.ac | ||
19 | +++ b/configure.ac | ||
20 | @@ -931,15 +931,15 @@ if test "x$squid_opt_use_esi" = "xyes" -a "x$with_libxml2" != "xno" ; then | ||
21 | dnl Find the main header and include path... | ||
22 | AC_CACHE_CHECK([location of libxml2 include files], [ac_cv_libxml2_include], [ | ||
23 | AC_CHECK_HEADERS([libxml/parser.h], [], [ | ||
24 | - AC_MSG_NOTICE([Testing in /usr/include/libxml2]) | ||
25 | + AC_MSG_NOTICE([Testing in $SYSROOT/usr/include/libxml2]) | ||
26 | SAVED_CPPFLAGS="$CPPFLAGS" | ||
27 | - CPPFLAGS="-I/usr/include/libxml2 $CPPFLAGS" | ||
28 | + CPPFLAGS="-I$SYSROOT/usr/include/libxml2 $CPPFLAGS" | ||
29 | unset ac_cv_header_libxml_parser_h | ||
30 | - AC_CHECK_HEADERS([libxml/parser.h], [LIBXML2_CFLAGS="$LIBXML2_CFLAGS -I/usr/include/libxml2"], [ | ||
31 | - AC_MSG_NOTICE([Testing in /usr/local/include/libxml2]) | ||
32 | - CPPFLAGS="-I/usr/local/include/libxml2 $SAVED_CPPFLAGS" | ||
33 | + AC_CHECK_HEADERS([libxml/parser.h], [LIBXML2_CFLAGS="$LIBXML2_CFLAGS -I$SYSROOT/usr/include/libxml2"], [ | ||
34 | + AC_MSG_NOTICE([Testing in $SYSROOT/usr/local/include/libxml2]) | ||
35 | + CPPFLAGS="-I$SYSROOT/usr/local/include/libxml2 $SAVED_CPPFLAGS" | ||
36 | unset ac_cv_header_libxml_parser_h | ||
37 | - AC_CHECK_HEADERS([libxml/parser.h], [LIBXML2_CFLAGS="$LIBXML2_CFLAGS -I/usr/local/include/libxml2"], [ | ||
38 | + AC_CHECK_HEADERS([libxml/parser.h], [LIBXML2_CFLAGS="$LIBXML2_CFLAGS -I$SYSROOT/usr/local/include/libxml2"], [ | ||
39 | AC_MSG_NOTICE([Failed to find libxml2 header file libxml/parser.h]) | ||
40 | ]) | ||
41 | ]) | ||
diff --git a/meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch b/meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch deleted file mode 100644 index ea27285e0..000000000 --- a/meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | From 8786b91488dae3f6dfeadd686e80d2ffc5c29320 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
3 | Date: Thu, 25 Aug 2016 15:22:57 +0800 | ||
4 | Subject: [PATCH] squid: don't do squid-conf-tests at build time | ||
5 | |||
6 | * squid-conf-tests is a test to run "squid -k parse -f" | ||
7 | to perse the config files, which should not be run | ||
8 | at build time since we are cross compiling, so remove | ||
9 | it but it will be added back for the runtime ptest. | ||
10 | |||
11 | * Fix the directories of the conf files for squid-conf-tests | ||
12 | so that it can run on the target board. | ||
13 | |||
14 | Upstream-Status: Inappropriate [cross compile specific] | ||
15 | |||
16 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
17 | |||
18 | --- | ||
19 | test-suite/Makefile.am | 15 +++++++-------- | ||
20 | 1 file changed, 7 insertions(+), 8 deletions(-) | ||
21 | |||
22 | diff --git a/test-suite/Makefile.am b/test-suite/Makefile.am | ||
23 | index 0233c0e..e0021b6 100644 | ||
24 | --- a/test-suite/Makefile.am | ||
25 | +++ b/test-suite/Makefile.am | ||
26 | @@ -40,8 +40,7 @@ TESTS += debug \ | ||
27 | splay\ | ||
28 | mem_node_test\ | ||
29 | mem_hdr_test\ | ||
30 | - $(ESI_TESTS) \ | ||
31 | - squid-conf-tests | ||
32 | + $(ESI_TESTS) | ||
33 | |||
34 | ## Sort by alpha - any build failures are significant. | ||
35 | check_PROGRAMS += debug \ | ||
36 | @@ -159,19 +158,19 @@ VirtualDeleteOperator_SOURCES = \ | ||
37 | ##$(TARGLIB): $(LIBOBJS) | ||
38 | ## $(AR_R) $(TARGLIB) $(LIBOBJS) | ||
39 | |||
40 | -squid-conf-tests: $(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/* | ||
41 | +squid-conf-tests: $(sysconfdir)/squid.conf.default squidconf/* | ||
42 | @failed=0; cfglist="$?"; rm -f $@ || $(TRUE); \ | ||
43 | for cfg in $$cfglist ; do \ | ||
44 | - $(top_builddir)/src/squid -k parse -f $$cfg || \ | ||
45 | + squid -k parse -f $$cfg || \ | ||
46 | { echo "FAIL: squid.conf test: $$cfg" | \ | ||
47 | - sed s%$(top_builddir)/src/%% | \ | ||
48 | - sed s%$(srcdir)/squidconf/%% ; \ | ||
49 | + sed s%$(sysconfdir)/%% | \ | ||
50 | + sed s%squidconf/%% ; \ | ||
51 | failed=1; break; \ | ||
52 | }; \ | ||
53 | if test "$$failed" -eq 0; then \ | ||
54 | echo "PASS: squid.conf test: $$cfg" | \ | ||
55 | - sed s%$(top_builddir)/src/%% | \ | ||
56 | - sed s%$(srcdir)/squidconf/%% ; \ | ||
57 | + sed s%$(sysconfdir)/%% | \ | ||
58 | + sed s%squidconf/%% ; \ | ||
59 | else break; fi; \ | ||
60 | done; \ | ||
61 | if test "$$failed" -eq 0; then cp $(TRUE) $@ ; fi | ||