From feb1904f6b6e4f47a94614263ad468f649c330ef Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 9 May 2015 11:07:23 +0200 Subject: [PATCH] libproxy: portability patches from Alpine. --- srcpkgs/libproxy/patches/fix-includes.patch | 10 +++++ .../patches/libproxy-0.4.7-unistd.patch | 40 +++++++++++++++++++ srcpkgs/libproxy/template | 3 +- 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/libproxy/patches/fix-includes.patch create mode 100644 srcpkgs/libproxy/patches/libproxy-0.4.7-unistd.patch diff --git a/srcpkgs/libproxy/patches/fix-includes.patch b/srcpkgs/libproxy/patches/fix-includes.patch new file mode 100644 index 00000000000..3f39135411f --- /dev/null +++ b/srcpkgs/libproxy/patches/fix-includes.patch @@ -0,0 +1,10 @@ +--- libproxy/test/get-pac-test.cpp ++++ libproxy/test/get-pac-test.cpp +@@ -3,6 +3,7 @@ + #include + #include + ++#include + #include + #include + #include diff --git a/srcpkgs/libproxy/patches/libproxy-0.4.7-unistd.patch b/srcpkgs/libproxy/patches/libproxy-0.4.7-unistd.patch new file mode 100644 index 00000000000..db6216846a8 --- /dev/null +++ b/srcpkgs/libproxy/patches/libproxy-0.4.7-unistd.patch @@ -0,0 +1,40 @@ +--- libproxy/url.cpp.orig 2012-02-28 21:05:15.572948027 +0000 ++++ libproxy/url.cpp 2012-02-28 21:05:45.635937474 +0000 +@@ -27,6 +27,7 @@ + #define close _close + #endif + #include // For ::open() ++#include // For ::read() and ::close() + #include // For memcpy() + #include // For int/string conversion (using stringstream) + #include // For sscanf() +--- libproxy/modules/config_sysconfig.cpp.orig 2012-02-28 21:06:01.552943358 +0000 ++++ libproxy/modules/config_sysconfig.cpp 2012-02-28 21:11:21.429953982 +0000 +@@ -18,6 +18,7 @@ + ******************************************************************************/ + + #include ++#include + #include + #include + #include +--- libproxy/modules/pacrunner_mozjs.cpp.orig 2012-02-28 21:06:11.637943033 +0000 ++++ libproxy/modules/pacrunner_mozjs.cpp 2012-02-28 21:11:46.560961409 +0000 +@@ -17,6 +17,7 @@ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ******************************************************************************/ + ++#include // for ::gethostname() + #include // ? + + #include "../extension_pacrunner.hpp" +--- libproxy/modules/pacrunner_webkit.cpp.orig 2012-02-28 21:06:29.615943614 +0000 ++++ libproxy/modules/pacrunner_webkit.cpp 2012-02-28 21:12:35.530965553 +0000 +@@ -17,6 +17,7 @@ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + ******************************************************************************/ + ++#include // for ::gethostname() + #include "../extension_pacrunner.hpp" + using namespace libproxy; + diff --git a/srcpkgs/libproxy/template b/srcpkgs/libproxy/template index 60592e23799..998a2805a1e 100644 --- a/srcpkgs/libproxy/template +++ b/srcpkgs/libproxy/template @@ -1,7 +1,7 @@ # Template file for 'libproxy' pkgname=libproxy version=0.4.11 -revision=1 +revision=2 build_style=cmake configure_args="-DWITH_GNOME=0 -DWITH_KDE4=0 -DWITH_MOZJS=0 -DWITH_NM=0 -DWITH_PERL=0 -DWITH_PYTHON=1 -DWITH_WEBKIT=0" @@ -24,7 +24,6 @@ libproxy-devel_package() { vmove "usr/lib/*.so" } } - libproxy-python_package() { depends="libproxy>=${version} python" short_desc+=" - python bindings"