diff options
| -rw-r--r-- | meta-networking/recipes-daemons/squid/files/0002-squid-make-squid-conf-tests-run-on-target-device.patch | 82 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/squid/files/Set-up-for-cross-compilation.patch | 6 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch | 8 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/squid/files/squid-use-serial-tests-config-needed-by-ptest.patch | 2 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/squid/squid_7.1.bb (renamed from meta-networking/recipes-daemons/squid/squid_6.12.bb) | 4 |
5 files changed, 84 insertions, 18 deletions
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 index ca1c16b83e..86b454d710 100644 --- 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 | |||
| @@ -7,20 +7,46 @@ Subject: [PATCH] squid: make squid-conf-tests run on target device | |||
| 7 | * Allow the tests to run on read-only root | 7 | * Allow the tests to run on read-only root |
| 8 | * Don't overwrite tests with true on success | 8 | * Don't overwrite tests with true on success |
| 9 | * Change logfile path to /var/log | 9 | * Change logfile path to /var/log |
| 10 | * skip testHeaders since it's not split to prepare/execute parts | ||
| 10 | 11 | ||
| 11 | Upstream-Status: Inappropriate [cross compile specific] | 12 | Upstream-Status: Inappropriate [cross compile specific] |
| 12 | 13 | ||
| 13 | Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> | 14 | Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> |
| 14 | 15 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | |
| 15 | --- | 16 | --- |
| 16 | test-suite/Makefile.am | 16 ++++++++-------- | 17 | src/TestHeaders.am | 6 +++--- |
| 17 | test-suite/test-squid-conf.sh | 2 +- | 18 | test-suite/Makefile.am | 26 +++++++++++++------------- |
| 18 | 2 files changed, 9 insertions(+), 9 deletions(-) | 19 | test-suite/test-squid-conf.sh | 4 ++-- |
| 20 | 3 files changed, 18 insertions(+), 18 deletions(-) | ||
| 19 | 21 | ||
| 22 | diff --git a/src/TestHeaders.am b/src/TestHeaders.am | ||
| 23 | index 0ed5f56..d668876 100644 | ||
| 24 | --- a/src/TestHeaders.am | ||
| 25 | +++ b/src/TestHeaders.am | ||
| 26 | @@ -14,8 +14,8 @@ EXCLUDE_FROM_HDR_TESTING = | ||
| 27 | # add an empty target named 'testHeaders' depending on the additional | ||
| 28 | # headers to test | ||
| 29 | |||
| 30 | -testHeaders: $(SOURCES) $(noinst_HEADERS) $(EXTRA_DIST) $(top_srcdir)/test-suite/testHeader.cc.in | ||
| 31 | - $(MAKE) $(^:.h=.hdrtest) && cp $(TRUE) $@ | ||
| 32 | +testHeaders: $(SOURCES) $(noinst_HEADERS) $(top_srcdir)/test-suite/testHeader.cc.in | ||
| 33 | + $(MAKE) $(^:.h=.hdrtest) | ||
| 34 | |||
| 35 | .h.hdrtest: | ||
| 36 | @SrcFilePath=`echo $< | $(SED) 's%^$(top_srcdir)/%%'`; \ | ||
| 37 | @@ -31,5 +31,5 @@ testHeaders: $(SOURCES) $(noinst_HEADERS) $(EXTRA_DIST) $(top_srcdir)/test-suite | ||
| 38 | then echo "header-test: ok - $$SrcFilePath"; $(RM) "$$TargetFileName.cc" "$$TargetFileName"; \ | ||
| 39 | else echo "header-test: not ok - $$SrcFilePath"; exit 1; fi | ||
| 40 | |||
| 41 | -TESTS += testHeaders | ||
| 42 | +#TESTS += testHeaders | ||
| 43 | CLEANFILES += testHeaders | ||
| 44 | diff --git a/test-suite/Makefile.am b/test-suite/Makefile.am | ||
| 45 | index 0da5844..0bc381a 100644 | ||
| 20 | --- a/test-suite/Makefile.am | 46 | --- a/test-suite/Makefile.am |
| 21 | +++ b/test-suite/Makefile.am | 47 | +++ b/test-suite/Makefile.am |
| 22 | @@ -21,7 +21,7 @@ LDADD = \ | 48 | @@ -11,7 +11,7 @@ include $(top_srcdir)/src/Common.am |
| 23 | EXTRA_PROGRAMS = mem_node_test splay | 49 | AM_CPPFLAGS += -I$(srcdir) |
| 24 | 50 | ||
| 25 | EXTRA_DIST = \ | 51 | EXTRA_DIST = \ |
| 26 | - $(srcdir)/squidconf/* \ | 52 | - $(srcdir)/squidconf/* \ |
| @@ -28,14 +54,27 @@ Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> | |||
| 28 | test-functionality.sh \ | 54 | test-functionality.sh \ |
| 29 | test-sources.sh \ | 55 | test-sources.sh \ |
| 30 | test-squid-conf.sh \ | 56 | test-squid-conf.sh \ |
| 31 | @@ -134,21 +134,21 @@ VirtualDeleteOperator_SOURCES = \ | 57 | @@ -124,37 +124,37 @@ VirtualDeleteOperator_LDADD = \ |
| 32 | 58 | ||
| 33 | installcheck-local: squid-conf-tests | 59 | installcheck-local: squid-conf-tests |
| 34 | 60 | ||
| 35 | -squid-conf-tests: $(srcdir)/test-squid-conf.sh $(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/* | 61 | -squid-conf-tests: $(srcdir)/test-squid-conf.sh $(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/* |
| 36 | - @failed=0; cfglist="$(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/*.conf"; rm -f $@ || $(TRUE); \ | 62 | - @instructionFiles="$(srcdir)/squidconf/*.conf.instructions"; \ |
| 37 | +squid-conf-tests: test-squid-conf.sh $(top_builddir)/src/squid.conf.default squidconf/* | 63 | +squid-conf-tests: test-squid-conf.sh $(top_builddir)/src/squid.conf.default squidconf/* |
| 38 | + @failed=0; cfglist="$(top_builddir)/src/squid.conf.default squidconf/*.conf"; rm -f $@ || $(TRUE); \ | 64 | + @instructionFiles="squidconf/*.conf.instructions"; \ |
| 65 | for instructionFile in $$instructionFiles; do \ | ||
| 66 | cfgBasename=`basename $$instructionFile .instructions`; \ | ||
| 67 | - cfg=$(srcdir)/squidconf/$$cfgBasename; \ | ||
| 68 | + cfg=squidconf/$$cfgBasename; \ | ||
| 69 | if ! test -f $$cfg; then \ | ||
| 70 | echo "FAIL: $$instructionFile has no matching $$cfg"; \ | ||
| 71 | exit 1; \ | ||
| 72 | fi; \ | ||
| 73 | done; \ | ||
| 74 | failed=0; \ | ||
| 75 | - cfglist="$(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/*.conf"; \ | ||
| 76 | + cfglist="$(top_builddir)/src/squid.conf.default squidconf/*.conf"; \ | ||
| 77 | rm -f $@ || $(TRUE); \ | ||
| 39 | for cfg in $$cfglist ; do \ | 78 | for cfg in $$cfglist ; do \ |
| 40 | - $(srcdir)/test-squid-conf.sh $(top_builddir) $(sbindir) $$cfg || \ | 79 | - $(srcdir)/test-squid-conf.sh $(top_builddir) $(sbindir) $$cfg || \ |
| 41 | + ./test-squid-conf.sh $(top_builddir) $(sbindir) $$cfg || \ | 80 | + ./test-squid-conf.sh $(top_builddir) $(sbindir) $$cfg || \ |
| @@ -55,11 +94,30 @@ Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> | |||
| 55 | - if test "$$failed" -eq 0; then cp $(TRUE) $@ ; else exit 1; fi | 94 | - if test "$$failed" -eq 0; then cp $(TRUE) $@ ; else exit 1; fi |
| 56 | + exit "$$failed" | 95 | + exit "$$failed" |
| 57 | 96 | ||
| 58 | -CLEANFILES += squid-conf-tests squid-stderr.log | 97 | CLEANFILES += \ |
| 59 | +CLEANFILES += squid-conf-tests /var/log/squid-stderr.log | 98 | squid-conf-tests \ |
| 99 | - squid-expected-messages \ | ||
| 100 | - squid-stderr.log \ | ||
| 101 | - squid-stderr.log.next \ | ||
| 102 | - squid-stderr.log.unmatched | ||
| 103 | + /var/log/quid-expected-messages \ | ||
| 104 | + /var/log/squid-stderr.log \ | ||
| 105 | + /var/log/squid-stderr.log.next \ | ||
| 106 | + /var/log/squid-stderr.log.unmatched | ||
| 107 | diff --git a/test-suite/test-squid-conf.sh b/test-suite/test-squid-conf.sh | ||
| 108 | index 413a927..f678c5a 100755 | ||
| 60 | --- a/test-suite/test-squid-conf.sh | 109 | --- a/test-suite/test-squid-conf.sh |
| 61 | +++ b/test-suite/test-squid-conf.sh | 110 | +++ b/test-suite/test-squid-conf.sh |
| 62 | @@ -111,7 +111,7 @@ then | 111 | @@ -76,7 +76,7 @@ expectMessages() |
| 112 | exit 1 | ||
| 113 | fi | ||
| 114 | |||
| 115 | - messageRegexFilename="squid-expected-messages" | ||
| 116 | + messageRegexFilename="/var/log/squid-expected-messages" | ||
| 117 | if ! :> $messageRegexFilename | ||
| 118 | then | ||
| 119 | echo "$where: ERROR: Cannot create a temporary file named $messageRegexFilename" | ||
| 120 | @@ -241,7 +241,7 @@ then | ||
| 63 | done < $instructionsFile | 121 | done < $instructionsFile |
| 64 | fi | 122 | fi |
| 65 | 123 | ||
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 18bc78e6be..f80d37de20 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 | |||
| @@ -16,11 +16,13 @@ Upstream-Status: Pending | |||
| 16 | configure.ac | 1 + | 16 | configure.ac | 1 + |
| 17 | 1 file changed, 1 insertion(+) | 17 | 1 file changed, 1 insertion(+) |
| 18 | 18 | ||
| 19 | diff --git a/configure.ac b/configure.ac | ||
| 20 | index c7312d8..3b0e9e2 100644 | ||
| 19 | --- a/configure.ac | 21 | --- a/configure.ac |
| 20 | +++ b/configure.ac | 22 | +++ b/configure.ac |
| 21 | @@ -29,6 +29,7 @@ m4_include([acinclude/tdb.m4]) | 23 | @@ -29,6 +29,7 @@ m4_include([acinclude/lib-checks.m4]) |
| 22 | m4_include([acinclude/lib-checks.m4]) | ||
| 23 | m4_include([acinclude/ax_cxx_compile_stdcxx.m4]) | 24 | m4_include([acinclude/ax_cxx_compile_stdcxx.m4]) |
| 25 | m4_include([acinclude/win32-sspi.m4]) | ||
| 24 | 26 | ||
| 25 | +HOSTCXX="$BUILD_CXX" | 27 | +HOSTCXX="$BUILD_CXX" |
| 26 | 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 489850e3bd..8522a299c1 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 | |||
| @@ -16,10 +16,12 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
| 16 | acinclude/lib-checks.m4 | 8 ++++++-- | 16 | acinclude/lib-checks.m4 | 8 ++++++-- |
| 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 | ||
| 20 | index e0286fa..b3e4bc7 100644 | ||
| 19 | --- a/acinclude/krb5.m4 | 21 | --- a/acinclude/krb5.m4 |
| 20 | +++ b/acinclude/krb5.m4 | 22 | +++ b/acinclude/krb5.m4 |
| 21 | @@ -57,7 +57,15 @@ main(void) | 23 | @@ -98,7 +98,15 @@ main(void) |
| 22 | 24 | krb5_init_context(&context); | |
| 23 | return 0; | 25 | return 0; |
| 24 | } | 26 | } |
| 25 | -]])], [ squid_cv_broken_heimdal_krb5_h=yes ], [ squid_cv_broken_heimdal_krb5_h=no ]) | 27 | -]])], [ squid_cv_broken_heimdal_krb5_h=yes ], [ squid_cv_broken_heimdal_krb5_h=no ]) |
| @@ -35,6 +37,8 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
| 35 | ]) | 37 | ]) |
| 36 | SQUID_STATE_ROLLBACK(squid_krb5_heimdal_test) | 38 | SQUID_STATE_ROLLBACK(squid_krb5_heimdal_test) |
| 37 | ]) | 39 | ]) |
| 40 | diff --git a/acinclude/lib-checks.m4 b/acinclude/lib-checks.m4 | ||
| 41 | index 9793b9a..4f2dc83 100644 | ||
| 38 | --- a/acinclude/lib-checks.m4 | 42 | --- a/acinclude/lib-checks.m4 |
| 39 | +++ b/acinclude/lib-checks.m4 | 43 | +++ b/acinclude/lib-checks.m4 |
| 40 | @@ -205,7 +205,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_METHOD],[ | 44 | @@ -205,7 +205,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_METHOD],[ |
diff --git a/meta-networking/recipes-daemons/squid/files/squid-use-serial-tests-config-needed-by-ptest.patch b/meta-networking/recipes-daemons/squid/files/squid-use-serial-tests-config-needed-by-ptest.patch index 5df006038b..d57ebe7869 100644 --- a/meta-networking/recipes-daemons/squid/files/squid-use-serial-tests-config-needed-by-ptest.patch +++ b/meta-networking/recipes-daemons/squid/files/squid-use-serial-tests-config-needed-by-ptest.patch | |||
| @@ -14,6 +14,8 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
| 14 | configure.ac | 2 +- | 14 | configure.ac | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | 16 | ||
| 17 | diff --git a/configure.ac b/configure.ac | ||
| 18 | index 3b0e9e2..c730212 100644 | ||
| 17 | --- a/configure.ac | 19 | --- a/configure.ac |
| 18 | +++ b/configure.ac | 20 | +++ b/configure.ac |
| 19 | @@ -10,7 +10,7 @@ AC_PREREQ(2.61) | 21 | @@ -10,7 +10,7 @@ AC_PREREQ(2.61) |
diff --git a/meta-networking/recipes-daemons/squid/squid_6.12.bb b/meta-networking/recipes-daemons/squid/squid_7.1.bb index 41226f232e..d17223e866 100644 --- a/meta-networking/recipes-daemons/squid/squid_6.12.bb +++ b/meta-networking/recipes-daemons/squid/squid_7.1.bb | |||
| @@ -22,10 +22,10 @@ SRC_URI = "https://github.com/squid-cache/${BPN}/releases/download/SQUID_${PV_U} | |||
| 22 | file://squid.nm \ | 22 | file://squid.nm \ |
| 23 | " | 23 | " |
| 24 | 24 | ||
| 25 | SRC_URI[sha256sum] = "f3df3abb2603a513266f24a5d4699a9f0d76b9f554d1848b67f9c51cd3b3cb50" | 25 | SRC_URI[sha256sum] = "763b5a78561cedc4e47634fa42b8e6b8d46c87c949a151b4e7ac2396d2f97dea" |
| 26 | 26 | ||
| 27 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 27 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 28 | file://errors/COPYRIGHT;md5=6fbb6a2adc362e206da7b4f42846cdec \ | 28 | file://errors/COPYRIGHT;md5=c2a0e15750d3a9743af9109fecc05622 \ |
| 29 | " | 29 | " |
| 30 | 30 | ||
| 31 | UPSTREAM_CHECK_URI = "https://github.com/squid-cache/${BPN}/releases/" | 31 | UPSTREAM_CHECK_URI = "https://github.com/squid-cache/${BPN}/releases/" |
