Control: tags 999806 + pending

Dear maintainer,

I've prepared an NMU for pygattlib (versioned as 0~20201113-1.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.


-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
diffstat for pygattlib-0~20201113 pygattlib-0~20201113

 changelog                           |    8 ++++++++
 patches/multiple-boost-python.patch |   27 +++++++++++++++++++++++++++
 patches/series                      |    1 +
 3 files changed, 36 insertions(+)

diff -Nru pygattlib-0~20201113/debian/changelog pygattlib-0~20201113/debian/changelog
--- pygattlib-0~20201113/debian/changelog	2020-12-23 09:44:47.000000000 +0100
+++ pygattlib-0~20201113/debian/changelog	2022-01-02 15:38:19.000000000 +0100
@@ -1,3 +1,11 @@
+pygattlib (0~20201113-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix misbuild with multiple supported Python3 versions.  Closes: #999806
+    Thanks to Steve Langasek for the patch.
+
+ -- Mattia Rizzolo <mat...@debian.org>  Sun, 02 Jan 2022 15:38:19 +0100
+
 pygattlib (0~20201113-1) unstable; urgency=medium
 
   * Initial Release. (Closes: #977950)
diff -Nru pygattlib-0~20201113/debian/patches/multiple-boost-python.patch pygattlib-0~20201113/debian/patches/multiple-boost-python.patch
--- pygattlib-0~20201113/debian/patches/multiple-boost-python.patch	1970-01-01 01:00:00.000000000 +0100
+++ pygattlib-0~20201113/debian/patches/multiple-boost-python.patch	2022-01-02 15:37:47.000000000 +0100
@@ -0,0 +1,27 @@
+Description: fix libboost detection with multiple python versions
+ pygattlib always links against the first libboost_python.so it finds.
+ When building for multiple python versions, this is wrong; it should link
+ against the one matching the version of python we're building for.
+Author: Steve Langasek <steve.langa...@ubuntu.com>
+Bug-Debian: https://bugs.debian.org/999806
+Last-Update: 2022-01-02
+
+Index: pygattlib-0~20201113/setup.py
+===================================================================
+--- pygattlib-0~20201113.orig/setup.py
++++ pygattlib-0~20201113/setup.py
+@@ -11,12 +11,8 @@
+ 
+ 
+ def get_boost_version(out=None):
+-    if out is None:
+-        out = subprocess.check_output(
+-            r"ldconfig -p | grep -E 'libboost_python.*\.so '", shell=True)
+-
+-    ver = os.path.splitext(out.split()[0][3:])[0].decode()
+-    return ver
++    return 'boost_python%s%s' \
++            % (sys.version_info.major, sys.version_info.minor)
+ 
+ def tests():
+     # case: python3-py3x.so
diff -Nru pygattlib-0~20201113/debian/patches/series pygattlib-0~20201113/debian/patches/series
--- pygattlib-0~20201113/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ pygattlib-0~20201113/debian/patches/series	2022-01-02 15:37:18.000000000 +0100
@@ -0,0 +1 @@
+multiple-boost-python.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to