pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/py-augeas/patches py-augeas: removed unused p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d57b50764fbe
branches:  trunk
changeset: 329594:d57b50764fbe
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Feb 12 12:21:43 2019 +0000

description:
py-augeas: removed unused patch

diffstat:

 sysutils/py-augeas/patches/patch-augeas.py |  34 ------------------------------
 1 files changed, 0 insertions(+), 34 deletions(-)

diffs (38 lines):

diff -r ac5e55063349 -r d57b50764fbe sysutils/py-augeas/patches/patch-augeas.py
--- a/sysutils/py-augeas/patches/patch-augeas.py        Tue Feb 12 12:21:22 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-augeas.py,v 1.1 2015/12/01 13:04:54 fhajny Exp $
-
-Simplify the way to look up and load the native lib, as
-find_library is unreliable on NetBSD and SunOS at least.
---- augeas.py.orig     2014-08-31 16:44:49.000000000 +0000
-+++ augeas.py
-@@ -41,7 +41,7 @@ Nils Philippsen <nils%redhat.com@localhost>
- import types
- import ctypes
- import ctypes.util
--from sys import version_info as _pyver
-+from sys import platform, version_info as _pyver
- from functools import reduce
- 
- 
-@@ -65,12 +65,15 @@ def dec(st):
-         return st.decode(AUGENC)
- 
- 
--def _dlopen(*args):
-+def _dlopen(args):
-     """Search for one of the libraries given as arguments and load it.
-     Returns the library.
-     """
--    libs = [l for l in [ ctypes.util.find_library(a) for a in args ] if l]
--    lib  = reduce(lambda x, y: x or ctypes.cdll.LoadLibrary(y), libs, None)
-+    if platform == "darwin":
-+        libname = "lib" + args + ".dylib"
-+    else:
-+        libname = "lib" + args + ".so"
-+    lib = ctypes.cdll.LoadLibrary(libname)
-     if not lib:
-         raise ImportError("Unable to import lib%s!" % args[0])
-     return lib



Home | Main Index | Thread Index | Old Index