aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflo <flo@FreeBSD.org>2013-11-12 04:29:45 +0800
committerflo <flo@FreeBSD.org>2013-11-12 04:29:45 +0800
commit60b4e94c05c80b048dc047108cd8beb30faa4182 (patch)
treeda4e7726b56b38a7ec46c15bc919db646878ed51
parentf29fe86e29f6470db4904b1b9b318abc9306f542 (diff)
downloadfreebsd-ports-gnome-60b4e94c05c80b048dc047108cd8beb30faa4182.tar.gz
freebsd-ports-gnome-60b4e94c05c80b048dc047108cd8beb30faa4182.tar.zst
freebsd-ports-gnome-60b4e94c05c80b048dc047108cd8beb30faa4182.zip
- fix build on FreeBSD >= 10.0 [1]
- update to 3.3.10 PR: ports/183352 Submitted by: dim [1] Approved by: maintainer timeout
-rw-r--r--www/squid33/Makefile2
-rw-r--r--www/squid33/distinfo4
-rw-r--r--www/squid33/files/patch-compat__stdio.h11
-rw-r--r--www/squid33/files/patch-configure18
-rw-r--r--www/squid33/files/patch-include__Array.h33
-rw-r--r--www/squid33/files/patch-include__autoconf.h.in12
6 files changed, 72 insertions, 8 deletions
diff --git a/www/squid33/Makefile b/www/squid33/Makefile
index a1e80a6e8226..846b2270042f 100644
--- a/www/squid33/Makefile
+++ b/www/squid33/Makefile
@@ -41,7 +41,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LATEST_LINK= squid33
-SQUID_STABLE_VER= 9
+SQUID_STABLE_VER= 10
CONFLICTS_INSTALL= squid-2.[0-9].* squid-3.[!3].* cacheboy-[0-9]* lusca-head-[0-9]*
USES= perl5
diff --git a/www/squid33/distinfo b/www/squid33/distinfo
index 07c0420730df..72744f5eec45 100644
--- a/www/squid33/distinfo
+++ b/www/squid33/distinfo
@@ -1,2 +1,2 @@
-SHA256 (squid3.3/squid-3.3.9.tar.bz2) = 2bb048725745de755f35a84133e25c7db0d56f4cc7002962e84b80091866eb45
-SIZE (squid3.3/squid-3.3.9.tar.bz2) = 2988736
+SHA256 (squid3.3/squid-3.3.10.tar.bz2) = 61743782e3b0c7c5bdf2e2457ecc1a5d3e7cc6b56a3d55f2106afe777ce2e5e9
+SIZE (squid3.3/squid-3.3.10.tar.bz2) = 2988601
diff --git a/www/squid33/files/patch-compat__stdio.h b/www/squid33/files/patch-compat__stdio.h
new file mode 100644
index 000000000000..bfae21eaa0a4
--- /dev/null
+++ b/www/squid33/files/patch-compat__stdio.h
@@ -0,0 +1,11 @@
+--- compat/stdio.h.orig 2013-05-20 13:48:55.000000000 +0200
++++ compat/stdio.h 2013-07-15 22:34:49.000000000 +0200
+@@ -46,7 +46,7 @@
+ #endif /* __USE_FILE_OFFSET64 && !__REDIRECT */
+
+ // Finally import the <cstdio> stuff we actually use
+-#if HAVE_CSTDIO
++#if defined(__cplusplus) && HAVE_CSTDIO
+ #include<cstdio>
+ #endif
+
diff --git a/www/squid33/files/patch-configure b/www/squid33/files/patch-configure
index dedd31dd7dd7..740ff146d7c7 100644
--- a/www/squid33/files/patch-configure
+++ b/www/squid33/files/patch-configure
@@ -1,6 +1,6 @@
--- configure.orig 2013-03-12 11:18:22.000000000 +0100
+++ configure 2013-04-09 11:43:01.000000000 +0200
-@@ -22437,7 +22437,7 @@
+@@ -22798,7 +22798,7 @@
done
@@ -9,7 +9,7 @@
for ac_header in gssapi/gssapi_generic.h
do :
ac_fn_cxx_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
-@@ -22634,7 +22634,7 @@
+@@ -22995,7 +22995,7 @@
ac_com_error_message=no
@@ -18,7 +18,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <com_err.h>
-@@ -22646,7 +22646,7 @@
+@@ -23007,7 +23007,7 @@
fi
rm -f conftest*
@@ -27,7 +27,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <et/com_err.h>
-@@ -22707,7 +22707,7 @@
+@@ -23068,7 +23068,7 @@
fi
@@ -36,7 +36,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
$as_echo_n "checking for error_message in -lcom_err... " >&6; }
if ${ac_cv_lib_com_err_error_message+:} false; then :
-@@ -22750,7 +22750,7 @@
+@@ -23111,7 +23111,7 @@
fi
@@ -45,3 +45,11 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lkrb5" >&5
$as_echo_n "checking for error_message in -lkrb5... " >&6; }
if ${ac_cv_lib_krb5_error_message+:} false; then :
+@@ -24704,6 +24704,7 @@
+ cassert \
+ crypt.h \
+ cstdarg \
++ cstdio \
+ cstdlib \
+ cstring \
+ list \
diff --git a/www/squid33/files/patch-include__Array.h b/www/squid33/files/patch-include__Array.h
new file mode 100644
index 000000000000..93d481dee0c4
--- /dev/null
+++ b/www/squid33/files/patch-include__Array.h
@@ -0,0 +1,33 @@
+--- include/Array.h.orig 2013-05-20 13:48:55.000000000 +0200
++++ include/Array.h 2013-07-15 23:00:06.000000000 +0200
+@@ -42,12 +42,19 @@
+ #include "compat/assert.h"
+
+ /* iterator support */
++#include <iterator>
+
+ template <class C>
+ class VectorIteratorBase
+ {
+
+ public:
++ typedef typename C::value_type value_type;
++ typedef std::forward_iterator_tag iterator_category;
++ typedef typename C::pointer pointer;
++ typedef typename C::reference reference;
++ typedef typename C::difference_type difference_type;
++
+ VectorIteratorBase();
+ VectorIteratorBase(C &);
+ VectorIteratorBase(size_t, C &);
+@@ -79,8 +86,10 @@
+ public:
+ typedef E value_type;
+ typedef E* pointer;
++ typedef E& reference;
+ typedef VectorIteratorBase<Vector<E> > iterator;
+ typedef VectorIteratorBase<Vector<E> const> const_iterator;
++ typedef ptrdiff_t difference_type;
+
+ void *operator new (size_t);
+ void operator delete (void *);
diff --git a/www/squid33/files/patch-include__autoconf.h.in b/www/squid33/files/patch-include__autoconf.h.in
new file mode 100644
index 000000000000..bf8056950b92
--- /dev/null
+++ b/www/squid33/files/patch-include__autoconf.h.in
@@ -0,0 +1,12 @@
+--- include/autoconf.h.in.orig 2013-05-20 13:49:34.000000000 +0200
++++ include/autoconf.h.in 2013-07-15 22:23:33.000000000 +0200
+@@ -158,6 +158,9 @@
+ /* Define to 1 if you have the <cstdarg> header file. */
+ #undef HAVE_CSTDARG
+
++/* Define to 1 if you have the <cstdio> header file. */
++#undef HAVE_CSTDIO
++
+ /* Define to 1 if you have the <cstdlib> header file. */
+ #undef HAVE_CSTDLIB
+