From 7c3b070b9cdd8b1d564d8900858cd31d11b20e6f Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Mon, 13 Jan 2014 12:41:17 +0000 Subject: libproxy: Update to 0.4.11 Delete patches that have been applied upstream or are no longer necessary. Update LIC_FILES_CHKSUM to match new COPYING (whitespace changes only). Signed-off-by: Phil Blundell Signed-off-by: Saul Wold --- .../libproxy/libproxy/g++-namepace.patch | 22 ------------ .../libproxy/libproxy-0.4.7-CVE-2012-4504.patch | 29 ---------------- .../libproxy/libproxy_fix_for_gcc4.7.patch | 30 ---------------- meta/recipes-support/libproxy/libproxy_0.4.11.bb | 35 +++++++++++++++++++ meta/recipes-support/libproxy/libproxy_0.4.7.bb | 40 ---------------------- 5 files changed, 35 insertions(+), 121 deletions(-) delete mode 100644 meta/recipes-support/libproxy/libproxy/g++-namepace.patch delete mode 100644 meta/recipes-support/libproxy/libproxy/libproxy-0.4.7-CVE-2012-4504.patch delete mode 100644 meta/recipes-support/libproxy/libproxy/libproxy_fix_for_gcc4.7.patch create mode 100644 meta/recipes-support/libproxy/libproxy_0.4.11.bb delete mode 100644 meta/recipes-support/libproxy/libproxy_0.4.7.bb diff --git a/meta/recipes-support/libproxy/libproxy/g++-namepace.patch b/meta/recipes-support/libproxy/libproxy/g++-namepace.patch deleted file mode 100644 index cb90ab704e..0000000000 --- a/meta/recipes-support/libproxy/libproxy/g++-namepace.patch +++ /dev/null @@ -1,22 +0,0 @@ -include unistd.h to get prototypes of close() and read() -otherwise g++ complains - -libproxy/url.cpp:439:13: error: 'close' was not declared in this scope -libproxy/url.cpp:398:37: error: 'read' was not declared in this scope - -Signed-off-by: Khem Raj - -Upstream-Status: Pending - -Index: libproxy-0.4.7/libproxy/url.cpp -=================================================================== ---- libproxy-0.4.7.orig/libproxy/url.cpp 2012-03-01 09:51:11.254156247 -0800 -+++ libproxy-0.4.7/libproxy/url.cpp 2012-03-01 09:56:12.058171256 -0800 -@@ -33,6 +33,7 @@ - #include // For atoi() - #include // For stat() - #include // For transform() -+#include // For close(), read() - - #ifdef WIN32 - #include diff --git a/meta/recipes-support/libproxy/libproxy/libproxy-0.4.7-CVE-2012-4504.patch b/meta/recipes-support/libproxy/libproxy/libproxy-0.4.7-CVE-2012-4504.patch deleted file mode 100644 index 7f2d93a937..0000000000 --- a/meta/recipes-support/libproxy/libproxy/libproxy-0.4.7-CVE-2012-4504.patch +++ /dev/null @@ -1,29 +0,0 @@ -Upstream-Status: Backport - -libproxy - CVE-2012-4504: - -Reference:https://code.google.com/p/libproxy/source/detail?r=853 - -Stack-based buffer overflow in the url::get_pac function in url.cpp -in libproxy 0.4.x before 0.4.9 allows remote servers to have an -unspecified impact via a large proxy.pac file. - -http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4504 - -Signed-off-by: yanjun.zhu - -diff -urpN a/libproxy/url.cpp b/libproxy/url.cpp ---- a/libproxy/url.cpp 2012-11-26 10:08:47.000000000 +0800 -+++ b/libproxy/url.cpp 2012-11-26 10:05:54.000000000 +0800 -@@ -472,9 +472,10 @@ char* url::get_pac() { - // Add this chunk to our content length, - // ensuring that we aren't over our max size - content_length += chunk_length; -- if (content_length >= PAC_MAX_SIZE) break; - } - -+ if (content_length >= PAC_MAX_SIZE) break; -+ - while (recvd != content_length) { - int r = recv(sock, buffer + recvd, content_length - recvd, 0); - if (r < 0) break; diff --git a/meta/recipes-support/libproxy/libproxy/libproxy_fix_for_gcc4.7.patch b/meta/recipes-support/libproxy/libproxy/libproxy_fix_for_gcc4.7.patch deleted file mode 100644 index a772f09e87..0000000000 --- a/meta/recipes-support/libproxy/libproxy/libproxy_fix_for_gcc4.7.patch +++ /dev/null @@ -1,30 +0,0 @@ -Upstream-Status: Pending - -Signed-Off-By: Nitin A Kamble -2012/04/20 -Fixes this issue with gcc 4.7 - -| cd /srv/home/nitin/builds/bERROR: Function failed: do_compile (see /srv/home/nitin/builds/build-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/temp/log.do_compile.7514 for further information) -| uild-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/libproxy-0.4.7/libproxy && /srv/home/nitin/builds/build-gcc47/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ -Dlibproxy_EXPORTS -D_POSIX_C_SOURCE=1 -DLIBEXECDIR=\"/usr/libexec\" -DMM_MODULE_BUILTIN=config_sysconfig -fvisibility=hidden -m64 --sysroot=/srv/home/nitin/builds/build-gcc47/tmp/sysroots/qemux86-64 -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -fpermissive -O2 -g -fPIC -I/srv/home/nitin/builds/build-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/libproxy-0.4.7 -I/srv/home/nitin/builds/build-gcc47/tmp/sysroots/qemux86-64/usr/include/glib-2.0 -I/srv/home/nitin/builds/build-gcc47/tmp/sysroots/qemux86-64/usr/lib/glib-2.0/include -o CMakeFiles/libproxy.dir/modules/config_sysconfig.cpp.o -c /srv/home/nitin/builds/build-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp -| /srv/home/nitin/builds/build-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp: In function 'bool should_use_sysconfig()': -| /srv/home/nitin/builds/build-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp:107:18: error: 'getuid' was not declared in this scope -| make[2]: *** [libproxy/CMakeFiles/libproxy.dir/modules/config_sysconfig.cpp.o] Error 1 -| make[2]: Leaving directory `/srv/home/nitin/builds/build-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/libproxy-0.4.7' -| make[1]: *** [libproxy/CMakeFiles/libproxy.dir/all] Error 2 -| make[1]: Leaving directory `/srv/home/nitin/builds/build-gcc47/tmp/work/x86_64-poky-linux/libproxy-0.4.7-r3/libproxy-0.4.7' -| make: *** [all] Error 2 -| ERROR: oe_runmake failed -NOTE: package libproxy-0.4.7-r3: task do_compile: Failed - -Index: libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp -=================================================================== ---- libproxy-0.4.7.orig/libproxy/modules/config_sysconfig.cpp -+++ libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp -@@ -21,6 +21,7 @@ - #include - #include - #include -+#include - - #include "../extension_config.hpp" - using namespace libproxy; diff --git a/meta/recipes-support/libproxy/libproxy_0.4.11.bb b/meta/recipes-support/libproxy/libproxy_0.4.11.bb new file mode 100644 index 0000000000..aecb7b5a82 --- /dev/null +++ b/meta/recipes-support/libproxy/libproxy_0.4.11.bb @@ -0,0 +1,35 @@ +SUMMARY = "Library providing automatic proxy configuration management" +HOMEPAGE = "http://code.google.com/p/libproxy/" +BUGTRACKER = "http://code.google.com/p/libproxy/issues/list" +SECTION = "libs" +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ + file://utils/proxy.c;beginline=1;endline=18;md5=55152a1006d7dafbef32baf9c30a99c0" + +DEPENDS = "gconf glib-2.0" + +SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.zip \ + " + +SRC_URI[md5sum] = "06be230b8b612e64997f8f15af6373aa" +SRC_URI[sha256sum] = "3175abcb49c0b37fd82c697927783bf7d53de3884a8559bc594e59caa09bdb04" + +inherit cmake pkgconfig + +EXTRA_OECMAKE = "-DWITH_WEBKIT=no -DWITH_GNOME=yes -DWITH_KDE4=no \ + -DWITH_PYTHON=no -DWITH_PERL=no -DWITH_MOZJS=no -DWITH_NM=no -DLIB_INSTALL_DIR=${libdir} -DLIBEXEC_INSTALL_DIR=${libexecdir}" + +FILES_${PN} += "${libdir}/${BPN}/${PV}/modules" +FILES_${PN}-dev += "${datadir}/cmake" +FILES_${PN}-dbg += "${libdir}/${BPN}/${PV}/plugins/.debug/ ${libdir}/${BPN}/${PV}/modules/.debug/" + +do_configure_prepend() { + export HOST_SYS=${HOST_SYS} + export BUILD_SYS=${BUILD_SYS} +} + +python() { + if base_contains("INCOMPATIBLE_LICENSE", "GPLv3", "x", "", d) == "x" or base_contains("DISTRO_FEATURES", "x11", "x", "", d) == "": + d.setVar("EXTRA_OECMAKE", d.getVar("EXTRA_OECMAKE").replace("-DWITH_GNOME=yes", "-DWITH_GNOME=no")) + d.setVar("DEPENDS", " ".join(i for i in d.getVar("DEPENDS").split() if i != "gconf")) +} diff --git a/meta/recipes-support/libproxy/libproxy_0.4.7.bb b/meta/recipes-support/libproxy/libproxy_0.4.7.bb deleted file mode 100644 index 3838cb880d..0000000000 --- a/meta/recipes-support/libproxy/libproxy_0.4.7.bb +++ /dev/null @@ -1,40 +0,0 @@ -SUMMARY = "Library providing automatic proxy configuration management" -HOMEPAGE = "http://code.google.com/p/libproxy/" -BUGTRACKER = "http://code.google.com/p/libproxy/issues/list" -SECTION = "libs" -LICENSE = "LGPLv2.1+" -LIC_FILES_CHKSUM = "file://COPYING;md5=7d7044444a7b1b116e8783edcdb44ff4 \ - file://utils/proxy.c;beginline=1;endline=18;md5=55152a1006d7dafbef32baf9c30a99c0" - -DEPENDS = "gconf glib-2.0" - -PR = "r6" - -SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.zip \ - file://g++-namepace.patch \ - file://libproxy_fix_for_gcc4.7.patch \ - file://libproxy-0.4.7-CVE-2012-4504.patch \ - " - -SRC_URI[md5sum] = "62585570de17d10f03a5a63b701ffd52" -SRC_URI[sha256sum] = "429a19c57d9990349d622beecc805b23051caa62a478066bff5d9a312a8937be" - -inherit cmake pkgconfig - -EXTRA_OECMAKE = "-DWITH_WEBKIT=no -DWITH_GNOME=yes -DWITH_KDE4=no \ - -DWITH_PYTHON=no -DWITH_PERL=no -DWITH_MOZJS=no -DWITH_NM=no -DLIB_INSTALL_DIR=${libdir} -DLIBEXEC_INSTALL_DIR=${libexecdir}" - -FILES_${PN} += "${libdir}/${BPN}/${PV}/modules" -FILES_${PN}-dev += "${datadir}/cmake" -FILES_${PN}-dbg += "${libdir}/${BPN}/${PV}/plugins/.debug/ ${libdir}/${BPN}/${PV}/modules/.debug/" - -do_configure_prepend() { - export HOST_SYS=${HOST_SYS} - export BUILD_SYS=${BUILD_SYS} -} - -python() { - if base_contains("INCOMPATIBLE_LICENSE", "GPLv3", "x", "", d) == "x" or base_contains("DISTRO_FEATURES", "x11", "x", "", d) == "": - d.setVar("EXTRA_OECMAKE", d.getVar("EXTRA_OECMAKE").replace("-DWITH_GNOME=yes", "-DWITH_GNOME=no")) - d.setVar("DEPENDS", " ".join(i for i in d.getVar("DEPENDS").split() if i != "gconf")) -} -- cgit 1.2.3-korg