Bump buildroot to 2019.02
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
The openssl get_certificate working test isn't cross compile friendly.
|
||||
Just assume it works ok since we're using a modern OpenSSL version.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura squid-3.5.1.orig/configure.ac squid-3.5.1/configure.ac
|
||||
--- squid-3.5.1.orig/configure.ac 2015-01-27 11:09:15.035711981 -0300
|
||||
+++ squid-3.5.1/configure.ac 2015-01-27 11:09:25.829084482 -0300
|
||||
@@ -1342,7 +1342,7 @@
|
||||
AC_DEFINE(USE_OPENSSL,1,[OpenSSL support is available])
|
||||
|
||||
# check for other specific broken implementations
|
||||
- SQUID_CHECK_OPENSSL_GETCERTIFICATE_WORKS
|
||||
+ #SQUID_CHECK_OPENSSL_GETCERTIFICATE_WORKS
|
||||
SQUID_CHECK_OPENSSL_CONST_SSL_METHOD
|
||||
SQUID_CHECK_OPENSSL_TXTDB
|
||||
SQUID_CHECK_OPENSSL_HELLO_OVERWRITE_HACK
|
||||
@@ -0,0 +1,79 @@
|
||||
From 39edb8ef08f51ea6a454d286091d78a4514c89e0 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sat, 1 Dec 2018 18:21:55 +0100
|
||||
Subject: [PATCH] configure.ac: use pkg-config to find libxml2
|
||||
|
||||
Fix static build of squid with libxml2 by using pkg-config to find
|
||||
libxml2 dependencies like -lz or -liconv
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/7f23eb98c311b294c7f0e165279fa26909a5ff93
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/squid-cache/squid/pull/338]
|
||||
---
|
||||
configure.ac | 43 +++++++++++++++++++++++++------------------
|
||||
1 file changed, 25 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index f30d824aa..47553db46 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -900,29 +900,36 @@ fi
|
||||
|
||||
AC_ARG_WITH(libxml2, AS_HELP_STRING([--without-libxml2],[Do not use libxml2 for ESI. Default: auto-detect]))
|
||||
if test "x$squid_opt_use_esi" != "xno" -a "x$with_libxml2" != "xno" ; then
|
||||
- AC_CHECK_LIB([xml2], [main], [XMLLIB="-lxml2"; HAVE_LIBXML2=1])
|
||||
- dnl Find the main header and include path...
|
||||
- AC_CACHE_CHECK([location of libxml2 include files], [ac_cv_libxml2_include], [
|
||||
- AC_CHECK_HEADERS([libxml/parser.h], [], [
|
||||
- AC_MSG_NOTICE([Testing in /usr/include/libxml2])
|
||||
- SAVED_CPPFLAGS="$CPPFLAGS"
|
||||
- CPPFLAGS="-I/usr/include/libxml2 $CPPFLAGS"
|
||||
- unset ac_cv_header_libxml_parser_h
|
||||
- AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I/usr/include/libxml2"], [
|
||||
- AC_MSG_NOTICE([Testing in /usr/local/include/libxml2])
|
||||
- CPPFLAGS="-I/usr/local/include/libxml2 $SAVED_CPPFLAGS"
|
||||
+ PKG_CHECK_MODULES([LIBXML2],[libxml-2.0],[
|
||||
+ CPPFLAGS="$CPPFLAGS $LIBXML2_CFLAGS";
|
||||
+ SQUID_CXXFLAGS="$SQUID_CXXFLAGS $LIBXML2_CFLAGS";
|
||||
+ XMLLIB="$LIBXML2_LIBS";
|
||||
+ HAVE_LIBXML2=1
|
||||
+ ],[
|
||||
+ AC_CHECK_LIB([xml2], [main], [XMLLIB="-lxml2"; HAVE_LIBXML2=1])
|
||||
+ dnl Find the main header and include path...
|
||||
+ AC_CACHE_CHECK([location of libxml2 include files], [ac_cv_libxml2_include], [
|
||||
+ AC_CHECK_HEADERS([libxml/parser.h], [], [
|
||||
+ AC_MSG_NOTICE([Testing in /usr/include/libxml2])
|
||||
+ SAVED_CPPFLAGS="$CPPFLAGS"
|
||||
+ CPPFLAGS="-I/usr/include/libxml2 $CPPFLAGS"
|
||||
unset ac_cv_header_libxml_parser_h
|
||||
- AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I/usr/local/include/libxml2"], [
|
||||
- AC_MSG_NOTICE([Failed to find libxml2 header file libxml/parser.h])
|
||||
+ AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I/usr/include/libxml2"], [
|
||||
+ AC_MSG_NOTICE([Testing in /usr/local/include/libxml2])
|
||||
+ CPPFLAGS="-I/usr/local/include/libxml2 $SAVED_CPPFLAGS"
|
||||
+ unset ac_cv_header_libxml_parser_h
|
||||
+ AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I/usr/local/include/libxml2"], [
|
||||
+ AC_MSG_NOTICE([Failed to find libxml2 header file libxml/parser.h])
|
||||
+ ])
|
||||
])
|
||||
+ CPPFLAGS="$SAVED_CPPFLAGS"
|
||||
])
|
||||
- CPPFLAGS="$SAVED_CPPFLAGS"
|
||||
])
|
||||
+ if test "x$ac_cv_libxml2_include" != "x"; then
|
||||
+ SQUID_CXXFLAGS="$ac_cv_libxml2_include $SQUID_CXXFLAGS"
|
||||
+ CPPFLAGS="$ac_cv_libxml2_include $CPPFLAGS"
|
||||
+ fi
|
||||
])
|
||||
- if test "x$ac_cv_libxml2_include" != "x"; then
|
||||
- SQUID_CXXFLAGS="$ac_cv_libxml2_include $SQUID_CXXFLAGS"
|
||||
- CPPFLAGS="$ac_cv_libxml2_include $CPPFLAGS"
|
||||
- fi
|
||||
dnl Now that we know where to look find the headers...
|
||||
AC_CHECK_HEADERS(libxml/parser.h libxml/HTMLparser.h libxml/HTMLtree.h)
|
||||
AC_DEFINE_UNQUOTED(HAVE_LIBXML2, $HAVE_LIBXML2, [Define to 1 if you have the libxml2 library])
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
ipc/Kid.cc: add missing include of time.h
|
||||
|
||||
Function time() comes from <time.h>, so add the necessary include.
|
||||
This fixes compilation on some configurations, for example
|
||||
http://autobuild.buildroot.net/results/b33/b33e1f41e50b6e7ac3e30806b9a617d451bc27b4/
|
||||
|
||||
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
|
||||
Upstream-status: submitted (http://bugs.squid-cache.org/show_bug.cgi?id=3967)
|
||||
|
||||
---
|
||||
src/ipc/Kid.cc | 4 ++++
|
||||
1 files changed, 4 insertions(+), 0 deletions(-)
|
||||
|
||||
|
||||
diff --git a/src/ipc/Kid.cc b/src/ipc/Kid.cc
|
||||
--- a/src/ipc/Kid.cc
|
||||
+++ b/src/ipc/Kid.cc
|
||||
@@ -11,6 +11,10 @@
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_TIME_H
|
||||
+#include <time.h>
|
||||
+#endif
|
||||
+
|
||||
int TheProcessKind = pkOther;
|
||||
|
||||
Kid::Kid():
|
||||
@@ -1,13 +1,19 @@
|
||||
comment "squid needs a toolchain w/ C++"
|
||||
comment "squid needs a toolchain w/ C++, gcc >= 4.8 not affected by bug 64735"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735 || \
|
||||
!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
|
||||
config BR2_PACKAGE_SQUID
|
||||
bool "squid"
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::current_exception
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
|
||||
# needs fork()
|
||||
depends on BR2_USE_MMU
|
||||
select BR2_PACKAGE_LIBCAP
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
help
|
||||
Caching proxy for the Web supporting HTTP, HTTPS, FTP, and
|
||||
more.
|
||||
|
||||
1
bsp/buildroot/package/squid/S97squid
Executable file → Normal file
1
bsp/buildroot/package/squid/S97squid
Executable file → Normal file
@@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -x /usr/sbin/squid ] || exit 0
|
||||
[ -f /etc/squid.conf ] || exit 0
|
||||
|
||||
case "$1" in
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# From http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.28.tar.xz.asc
|
||||
md5 9367e0375ea53ba0e99f77054d4402c5 squid-3.5.28.tar.xz
|
||||
sha1 721241a270ec27d629d65ae17a50be56510e8441 squid-3.5.28.tar.xz
|
||||
# From http://www.squid-cache.org/Versions/v4/squid-4.4.tar.xz.asc
|
||||
md5 892504ca9700e1f139a53f84098613bd squid-4.4.tar.xz
|
||||
sha1 0ab6b133f65866d825bf72cbbe8cef209768b2fa squid-4.4.tar.xz
|
||||
# Locally calculated
|
||||
sha256 de5ea6fa5711aaa6d209de9e9e715c2702ff3597f009562ee1e571cc101670c7 squid-3.5-f1657a9decc820f748fa3aff68168d3145258031.patch
|
||||
sha256 8f2518b5e9840e119c493f6ed793e773675e2f768de2bf1bd637fced27e4d527 squid-3.5-bc9786119f058a76ddf0625424bc33d36460b9a2.patch
|
||||
sha256 58f5d05257af1fb964fde20e134d660fac9afa86b6fd8c70d63ead63068378fa COPYING
|
||||
sha256 4905e6da7f5574d2583ba36f398bb062a12d51e70d67035078b6e85b09e9ee82 squid-4.4.tar.xz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
|
||||
@@ -4,18 +4,14 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SQUID_VERSION_MAJOR = 3.5
|
||||
SQUID_VERSION = $(SQUID_VERSION_MAJOR).28
|
||||
SQUID_VERSION = 4.4
|
||||
SQUID_SOURCE = squid-$(SQUID_VERSION).tar.xz
|
||||
SQUID_SITE = http://www.squid-cache.org/Versions/v3/$(SQUID_VERSION_MAJOR)
|
||||
SQUID_PATCH = \
|
||||
http://www.squid-cache.org/Versions/v3/3.5/changesets/squid-3.5-f1657a9decc820f748fa3aff68168d3145258031.patch \
|
||||
http://www.squid-cache.org/Versions/v3/3.5/changesets/squid-3.5-bc9786119f058a76ddf0625424bc33d36460b9a2.patch
|
||||
SQUID_SITE = http://www.squid-cache.org/Versions/v4
|
||||
SQUID_LICENSE = GPL-2.0+
|
||||
SQUID_LICENSE_FILES = COPYING
|
||||
# For 0001-assume-get-certificate-ok.patch
|
||||
# We're patching configure.ac
|
||||
SQUID_AUTORECONF = YES
|
||||
SQUID_DEPENDENCIES = libcap host-libcap host-pkgconf \
|
||||
SQUID_DEPENDENCIES = libcap host-libcap libxml2 host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),libnetfilter_conntrack)
|
||||
SQUID_CONF_ENV = \
|
||||
ac_cv_epoll_works=yes \
|
||||
@@ -28,11 +24,10 @@ SQUID_CONF_ENV = \
|
||||
BUILDCXXFLAGS="$(HOST_CXXFLAGS)"
|
||||
SQUID_CONF_OPTS = \
|
||||
--enable-async-io=8 \
|
||||
$(if $(BR2_TOOLCHAIN_USES_MUSL),--disable-linux-netfilter,--enable-linux-netfilter) \
|
||||
--enable-linux-netfilter \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--with-filedescriptors=1024 \
|
||||
--disable-ident-lookups \
|
||||
--without-mit-krb5 \
|
||||
--enable-auth-basic="fake getpwnam" \
|
||||
--enable-auth-digest="file" \
|
||||
--enable-auth-negotiate="wrapper" \
|
||||
@@ -44,13 +39,15 @@ SQUID_CONF_OPTS = \
|
||||
--with-swapdir=/var/cache/squid/ \
|
||||
--with-default-user=squid
|
||||
|
||||
# Atomics in Squid use __sync built-ins on 4 and 8 bytes. However, the
|
||||
# configure script tests them using AC_TRY_RUN, so we have to give
|
||||
# some hints.
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_4)$(BR2_TOOLCHAIN_HAS_SYNC_8),yy)
|
||||
SQUID_CONF_ENV += squid_cv_gnu_atomics=yes
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
SQUID_CONF_ENV += LIBS=-latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
|
||||
SQUID_CONF_OPTS += --with-mit-krb5
|
||||
SQUID_DEPENDENCIES += libkrb5
|
||||
else
|
||||
SQUID_CONF_ENV += squid_cv_gnu_atomics=no
|
||||
SQUID_CONF_OPTS += --without-mit-krb5
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
|
||||
Reference in New Issue
Block a user