]> git.pld-linux.org Git - packages/python-ctypesgen.git/commitdiff
- added x32 patch (adjust library search path on x32) auto/th/python-ctypesgen-1.0.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 4 Jul 2021 05:56:10 +0000 (07:56 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 4 Jul 2021 05:56:10 +0000 (07:56 +0200)
python-ctypesgen-x32.patch [new file with mode: 0644]
python-ctypesgen.spec

diff --git a/python-ctypesgen-x32.patch b/python-ctypesgen-x32.patch
new file mode 100644 (file)
index 0000000..6d6c8ec
--- /dev/null
@@ -0,0 +1,11 @@
+--- ctypesgen-ctypesgen-1.0.2/ctypesgen/libraryloader.py.orig  2019-12-08 00:24:44.000000000 +0100
++++ ctypesgen-ctypesgen-1.0.2/ctypesgen/libraryloader.py       2021-07-04 07:46:45.360836111 +0200
+@@ -262,6 +262,8 @@
+         if bitage.startswith("64"):
+             # prefer 64 bit if that is our arch
+             unix_lib_dirs_list += ["/lib64", "/usr/lib64"]
++        elif bitage.startswith("32") and platform.machine() == "x86_64":
++            unix_lib_dirs_list += ["/libx32", "/usr/libx32"]
+         # must include standard libs, since those paths are also used by 64 bit
+         # installs
index f2b4bdbb8cefd7602f2f675aae1b01763b28cea5..62bf48a193e5d2bc28122c3af58debd26c86ca64 100644 (file)
@@ -16,6 +16,7 @@ Group:                Libraries/Python
 #Source0Download: https://github.com/davidjamesca/ctypesgen/releases
 Source0:       https://github.com/davidjamesca/ctypesgen/archive/ctypesgen-%{version}/%{module}-%{version}.tar.gz
 # Source0-md5: 0928ef10a1f0323a82d55d6a0dfac8ff
+Patch0:                %{name}-x32.patch
 URL:           https://github.com/davidjamesca/ctypesgen
 %if %{with python2}
 BuildRequires: python >= 1:2.3
@@ -61,6 +62,7 @@ nagłówkowych w C.
 
 %prep
 %setup -q -n %{module}-%{module}-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
This page took 0.104472 seconds and 4 git commands to generate.