summaryrefslogtreecommitdiff
path: root/www/libproxy/patches
diff options
context:
space:
mode:
authorwiz <wiz>2013-05-24 18:22:57 +0000
committerwiz <wiz>2013-05-24 18:22:57 +0000
commitf64b4741279cf1a5cfc846094b196f124967fb63 (patch)
treef679944bdf234b1df7cdc777fb4fa1b801eb906d /www/libproxy/patches
parent436251fe42be079003a0dab5b4a70e16b6ad3763 (diff)
downloadpkgsrc-f64b4741279cf1a5cfc846094b196f124967fb63.tar.gz
Update to 0.4.11:
New in version 0.4.11 ============================== * Build fixes with cmake 2.8.10+ * Quick release without built binaries / files (Address Bug #184) New in version 0.4.10 ============================== * Fix http chunk encoded PAC that was broken in previous release * Add HTTP client unit test * Fix more coding style issues New in version 0.4.9 ============================== * CVE-2012-4504 Fixed buffer overflow when downloading PAC * Fix infinit loop uppon network errors New in version 0.4.8 ============================== * Only support standalone mozjs185 as mozilla js engine. xulrunner being part of the now lightning fast moving firefox is impossible to be tracked as a dependency and it is not supported by Mozilla to be used in this scenario. * Support building with javascritpcoregtk 1.5 (got split out of webkitgtk). * Support sending multiple results. * Issues fixed: - #166: Libproxy does not parse NO_PROXY correct when the line contains spaces - #164: If gconf's value is an empty list, pxgconf will make /usr/bin/proxy wait forever - #60: use lib js for embedded solutions - #160: strdup and gethostbyname not declared on OSX 10.7 - #168: .pc file should be installed under OSX as well. - #170: Also check for "Transfer-Encoding: chunked". - #171: mozjs pacrunner: Fix parameters of dnsResolve_() - #172: Allow to forcibly build pacrunner as module (-DBIPR={ON,OFF}) - #173: Libproxy doesn't build with gcc 4.7 - #147: Use ${CMAKE_DL_LIBS} instead of assuming libdl is correct. - #176: python bindings: guard the destructor. - #177: Speed up importing of libproxy in python. - #179: CMAKE 2.8.8 does not define PKG_CONFIG_FOUND New in version 0.4.7 ============================== * Support/require xulrunner 2.0+ * Support linking againgst libwebkit-gtk3 (-DWITH_WEBKIT3=ON) * Port to gsettings for gnome3. (-DWITH_GNOME3=ON[default]) * Issues closed: - #149: always test for the right python noarch module path - #155: Cannot compile with Firefox 4 - #156: libproxy should build against webkitgtk-3.0 - #158: Won't compile w/ xulrunner 2.0 final - #159: libproxy fails with autoconfiguration "http://proxy.domain.com" - #131: GSettings-based GNOME plugin - #150: SUSE sysconfig/proxy config support New in version 0.4.6 ============================== * Fixed a crash in the URL parser * Fixed build issues with Visual Studio * Updated the INSTALL file * Install Python binding in prefix path if site-packages exists * Fixed compilation with Visual Studio New in version 0.4.5 =============================== * C# bindings are installable (-DWITH_DOTNET=ON) * C# bindings installation path can be changed using -DGAC_DIR= * Internal libmodman build fixed * Installation dirs are now all relative to CMAKE_INSTALL_PREFIX * Fixed test while using --as-needed linker flag * Fixed generation of libproxy-1.0.pc * Basic support for Mingw added (not yet 100% functional) * Ruby binding implemented (not yet in the build system) * Fixed modules not being found caused by relative LIBEXEC_INSTALL_DIR * Fixed bug with builtin plugins (Issue 133) * Vala bindings installation path can be changed using -DVAPI_DIR= * Python bindings installation path can be changed using -DPYTHON_SITEPKG_DIR= * Perl bindings can be installed in vendor directory (-DPERL_VENDORARCH=ON) * Perl bindings installation path can be change using -DPX_PERL_ARCH= * Unit test now builds on OSX New in version 0.4.4 =============================== * Add support for optionally building using a system libmodman * Rework build system to be cleaner * Fix two major build system bugs: 127, 128 New in version 0.4.3 =============================== * Test can now be out-compiled using BUILD_TESTING=OFF * Fixed python binding not handling NULL pointer * Pyhton binding now support Python version 3 * Rewrote URL parser to comply with unit test * Username and password are now URL encoded * Scheme comparison is now non-case sensitive * Fixed deadlock using WebKit has PAC runner * Fixed OS X compilation of Perl bindings New in version 0.4.2 =============================== * Fixed python binding that failed on missing px_free symbole * Workaround cmake bug with dynamic libraries in non-standard folders New in version 0.4.1 =============================== * Perl bindings have been integrated into the CMake Build System * Vala bindings are installed if -DWITH_VALA=yes is passed to cmake * All extensions can be disabled using WITH_*=OFF cmake options * socks5:// and socks4:// can now be returned * Many bugfixes New in version 0.4.0 =============================== * C++ rewrite * Small API change (px_proxy_factory_get_proxy() can now return NULL) * SOVERSION bump * libmodman is now a seperate library * Migrate to cmake * Windows support (config_w32reg, ignore_hostname; VC++ support) * MacOSX support (config_macosx, ignore_hostname) * Built-in modules support * Support for chunked encoding * Move to hidden visibility by default * KDE's KConfig symantics are fully supported * Removeal of all PX_* env variables (no longer needed) * Symbol based detection of relevant pacrunner * Reworked config_gnome to not suck (its *much* faster) * Many other things I can't remember
Diffstat (limited to 'www/libproxy/patches')
-rw-r--r--www/libproxy/patches/patch-CVE-2012-450535
-rw-r--r--www/libproxy/patches/patch-aa13
-rw-r--r--www/libproxy/patches/patch-ab13
-rw-r--r--www/libproxy/patches/patch-ac20
-rw-r--r--www/libproxy/patches/patch-libproxy_CMakeLists.txt16
5 files changed, 16 insertions, 81 deletions
diff --git a/www/libproxy/patches/patch-CVE-2012-4505 b/www/libproxy/patches/patch-CVE-2012-4505
deleted file mode 100644
index b0adadae707..00000000000
--- a/www/libproxy/patches/patch-CVE-2012-4505
+++ /dev/null
@@ -1,35 +0,0 @@
-$NetBSD: patch-CVE-2012-4505,v 1.1 2012/11/23 16:41:01 drochner Exp $
-
-see https://bugzilla.redhat.com/show_bug.cgi?id=864612
-
---- src/lib/pac.c.orig 2009-09-29 19:52:50.000000000 +0000
-+++ src/lib/pac.c
-@@ -35,6 +35,9 @@
-
- #define PAC_MIME_TYPE "application/x-ns-proxy-autoconfig"
-
-+// This is the maximum pac size (to avoid memory attacks)
-+#define PAC_MAX_SIZE 102400
-+
- /**
- * ProxyAutoConfig object. All fields are private.
- */
-@@ -159,12 +162,15 @@ px_pac_reload(pxPAC *self)
- }
-
- /* Get content */
-- if (!content_length || !correct_mime_type) goto error;
-+ if (content_length == 0 || content_length > PAC_MAX_SIZE || !correct_mime_type) goto error;
- px_free(line); line = NULL;
- px_free(self->cache);
- self->cache = px_malloc0(content_length+1);
-- for (int recvd=0 ; recvd != content_length ; )
-- recvd += recv(sock, self->cache + recvd, content_length - recvd, 0);
-+ for (int recvd=0 ; recvd != content_length ; ) {
-+ int r = recv(sock, self->cache + recvd, content_length - recvd, 0);
-+ if (r <= 0) goto error;
-+ recvd += r;
-+ }
- }
- else
- { /* file:// url */
diff --git a/www/libproxy/patches/patch-aa b/www/libproxy/patches/patch-aa
deleted file mode 100644
index 9b40329aa47..00000000000
--- a/www/libproxy/patches/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.6 2010/08/17 13:10:22 seanb Exp $
-
---- src/lib/Makefile.am.orig 2009-08-14 19:00:32.000000000 +0000
-+++ src/lib/Makefile.am
-@@ -11,7 +11,7 @@ libproxy_la_SOURCES = \
- url.c url.h
-
- libproxy_la_CFLAGS = -DMODULEDIR=\"@MODULEDIR@@DIR_SEPARATOR@\" -DSYSCONFDIR=\"@SYSCONFDIR@@DIR_SEPARATOR@\" -std=c99 -D_POSIX_C_SOURCE=200112L
--libproxy_la_LDFLAGS = -lpthread -lm -no-undefined
-+libproxy_la_LDFLAGS = ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} -lm -no-undefined
-
- include_HEADERS = proxy.h
-
diff --git a/www/libproxy/patches/patch-ab b/www/libproxy/patches/patch-ab
deleted file mode 100644
index cc63143aad4..00000000000
--- a/www/libproxy/patches/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2010/08/17 13:10:22 seanb Exp $
-
---- src/lib/Makefile.in.orig 2009-08-14 19:05:15.000000000 +0000
-+++ src/lib/Makefile.in
-@@ -278,7 +278,7 @@ libproxy_la_SOURCES = \
- url.c url.h
-
- libproxy_la_CFLAGS = -DMODULEDIR=\"@MODULEDIR@@DIR_SEPARATOR@\" -DSYSCONFDIR=\"@SYSCONFDIR@@DIR_SEPARATOR@\" -std=c99 -D_POSIX_C_SOURCE=200112L
--libproxy_la_LDFLAGS = -lpthread -lm -no-undefined
-+libproxy_la_LDFLAGS = ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} -lm -no-undefined
- include_HEADERS = proxy.h
- all: all-am
-
diff --git a/www/libproxy/patches/patch-ac b/www/libproxy/patches/patch-ac
deleted file mode 100644
index 9b795a0b9c3..00000000000
--- a/www/libproxy/patches/patch-ac
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ac,v 1.4 2012/11/28 12:20:38 drochner Exp $
-
-CVE-2012-5580
-see https://bugzilla.novell.com/show_bug.cgi?id=791086
-
---- src/bin/proxy.c.orig 2009-09-29 19:52:50.000000000 +0000
-+++ src/bin/proxy.c
-@@ -89,11 +89,7 @@ print_proxies(char **proxies)
- {
- for (int j = 0; proxies[j] ; j++)
- {
-- printf(proxies[j]);
-- if (proxies[j+1])
-- printf(" ");
-- else
-- printf("\n");
-+ printf("%s%s", proxies[j], proxies[j+1] ? " " : "\n");
- free(proxies[j]);
- }
- free(proxies);
diff --git a/www/libproxy/patches/patch-libproxy_CMakeLists.txt b/www/libproxy/patches/patch-libproxy_CMakeLists.txt
new file mode 100644
index 00000000000..a4c0c28ba7c
--- /dev/null
+++ b/www/libproxy/patches/patch-libproxy_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD: patch-libproxy_CMakeLists.txt,v 1.1 2013/05/24 18:22:57 wiz Exp $
+
+If this is defined, it doesn't compile on NetBSD due to
+http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012
+and missing ntohs() etc.
+
+--- libproxy/CMakeLists.txt.orig 2012-11-30 22:31:35.000000000 +0000
++++ libproxy/CMakeLists.txt
+@@ -6,7 +6,6 @@ set_project_version(0 4 11)
+ if (WIN32)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
+ else(WIN32)
+- add_definitions(-D_POSIX_C_SOURCE=200112L)
+ set(CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}")
+ endif(WIN32)
+