From ff04287d5072a024d294b298f99ebc7620c31824 Mon Sep 17 00:00:00 2001 From: openeuler-ci-bot <80474298@qq.com> Date: Tue, 15 Dec 2020 00:58:53 +0800 Subject: [PATCH 1/2] [patch tracking] 20201215005849781974 - https://github.com/libproxy/libproxy/commit/b5df12eb978c8f7c0dfcf7d1c9c25dc224c96cae --- ...12eb978c8f7c0dfcf7d1c9c25dc224c96cae.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 b5df12eb978c8f7c0dfcf7d1c9c25dc224c96cae.patch diff --git a/b5df12eb978c8f7c0dfcf7d1c9c25dc224c96cae.patch b/b5df12eb978c8f7c0dfcf7d1c9c25dc224c96cae.patch new file mode 100644 index 0000000..daba735 --- /dev/null +++ b/b5df12eb978c8f7c0dfcf7d1c9c25dc224c96cae.patch @@ -0,0 +1,25 @@ +diff --git a/bindings/python/libproxy.py b/bindings/python/libproxy.py +index a29b33a..2224a19 100644 +--- a/bindings/python/libproxy.py ++++ b/bindings/python/libproxy.py +@@ -44,9 +44,9 @@ def _load(name, *versions): + # Load libproxy + _libproxy = _load("proxy", 1) + _libproxy.px_proxy_factory_new.restype = ctypes.POINTER(ctypes.c_void_p) +-_libproxy.px_proxy_factory_free.argtypes = ctypes.c_void_p, ++_libproxy.px_proxy_factory_free.argtypes = [ctypes.c_void_p] + _libproxy.px_proxy_factory_get_proxies.restype = ctypes.POINTER(ctypes.c_void_p) +-_libproxy.px_proxy_factory_free_proxies.argtypes = ctypes.POINTER(ctypes.c_void_p) ++_libproxy.px_proxy_factory_free_proxies.argtypes = [ctypes.POINTER(ctypes.c_void_p)] + + class ProxyFactory(object): + """A ProxyFactory object is used to provide potential proxies to use +@@ -141,7 +141,7 @@ def getProxies(self, url): + proxies.append(proxy_bytes.decode('utf-8', errors='replace')) + i += 1 + +- _libproxy.px_proxy_factory_free_proxies(proxies) ++ _libproxy.px_proxy_factory_free_proxies(array) + + return proxies + -- Gitee From d8c9fa2472577920ffbc956d0489bbe7e4b4c43f Mon Sep 17 00:00:00 2001 From: openeuler-ci-bot <80474298@qq.com> Date: Tue, 15 Dec 2020 00:58:53 +0800 Subject: [PATCH 2/2] [patch tracking] 20201215005849781974 - update spec file --- libproxy.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libproxy.spec b/libproxy.spec index 92fbb27..e58a190 100644 --- a/libproxy.spec +++ b/libproxy.spec @@ -1,6 +1,6 @@ Name: libproxy Version: 0.4.15 -Release: 19 +Release: 20 Summary: Libproxy is a library that provides automatic proxy configuration management License: LGPLv2+ @@ -19,6 +19,7 @@ Patch5: libproxy-0.4.15-mozjs60.patch Patch6: libproxy-0.4.15-mozjs68.patch Patch7: libproxy-0.4.15-mozjs-use-after-free.patch Patch8: libproxy-0.4.15-fix-CVE-2020-25219.patch +Patch6000: b5df12eb978c8f7c0dfcf7d1c9c25dc224c96cae.patch BuildRequires: cmake >= 2.6.0 gcc-c++ @@ -116,6 +117,9 @@ make test %{_mandir}/man1/proxy.1* %changelog +* 20201215005849781974 patch-tracking 0.4.15-20 +- append patch file of upstream repository from to + * Wed Dec 02 2020 xihaochen - 0.4.15-19 - Type:requirements - Id:NA @@ -169,4 +173,4 @@ make test - DESC:remove the /usr/bin/kreadconfig5 in buildRequires. * Tue Sep 10 2019 liyongqiang - 0.4.15-10 -- Package init +- Package init \ No newline at end of file -- Gitee