Your message dated Wed, 06 Dec 2017 05:19:21 +0000
with message-id <[email protected]>
and subject line Bug#867609: fixed in python-dmidecode 3.12.2-4
has caused the Debian Bug report #867609,
regarding python-dmidecode: stop linking with libxml2mod
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
867609: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867609
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-dmidecode
Version: 3.12.2-3
Severity: serious
Tags: patch buster sid

python-libxml2 contains the following change:
-/usr/lib/python2.7/dist-packages/libxml2mod.so
+/usr/lib/python2.7/dist-packages/libxml2mod.x86_64-linux-gnu.so

This makes python-dmidecode FTBFS since it wants to link
dmidecodemod.x86_64-linux-gnu.so with libxml2mod:

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
-Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g 
-fdebug-prefix-map=/build/python2.7-HVkOs2/python2.7-2.7.13=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro 
-std=gnu89 -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-x86_64-2.7/src/dmidecodemodule.o 
build/temp.linux-x86_64-2.7/src/util.o build/temp.linux-x86_64-2.7/src/dmioem.o 
build/temp.linux-x86_64-2.7/src/dmidecode.o 
build/temp.linux-x86_64-2.7/src/dmixml.o 
build/temp.linux-x86_64-2.7/src/dmierror.o 
build/temp.linux-x86_64-2.7/src/dmilog.o 
build/temp.linux-x86_64-2.7/src/xmlpythonizer.o 
build/temp.linux-x86_64-2.7/src/efi.o build/temp.linux-x86_64-2.7/src/dmidump.o 
-L/usr/lib/python2.7/dist-packages -L/usr/lib/pymodules/python2.7 -lxml2 
-lxml2mod -o build/lib.linux-x86_64-2.7/dmidecodemod.so
/usr/bin/ld: cannot find -lxml2mod


The attached patch copies the two functions used from libxml2mod
instead of linking with libxml2mod.
Description: Stop linking with libxml2mod
 Copy the two funcions used instead of linking with libxml2mod.
Author: Adrian Bunk <[email protected]>

--- python-dmidecode-3.12.2.orig/src/dmidecodemodule.c
+++ python-dmidecode-3.12.2/src/dmidecodemodule.c
@@ -42,7 +42,6 @@
 #include <Python.h>
 
 #include <libxml/tree.h>
-#include "libxml_wrap.h"
 
 #include "dmidecodemodule.h"
 #include "dmixml.h"
@@ -64,6 +63,32 @@ char *PyUnicode_AsUTF8(PyObject *unicode
 }
 #endif
 
+static PyObject *
+libxml_xmlDocPtrWrap(xmlDocPtr doc)
+{
+    PyObject *ret;
+
+    if (doc == NULL) {
+        Py_INCREF(Py_None);
+        return (Py_None);
+    }
+    ret = PyCapsule_New((void *) doc, (char *) "xmlDocPtr", NULL);
+    return (ret);
+}
+
+static PyObject *
+libxml_xmlNodePtrWrap(xmlNodePtr node)
+{
+    PyObject *ret;
+
+    if (node == NULL) {
+        Py_INCREF(Py_None);
+        return (Py_None);
+    }
+    ret = PyCapsule_New((void *) node, (char *) "xmlNodePtr", NULL);
+    return (ret);
+}
+
 static void init(options *opt)
 {
         opt->devmem = DEFAULT_MEM_DEV;
--- python-dmidecode-3.12.2.orig/src/setup_common.py
+++ python-dmidecode-3.12.2/src/setup_common.py
@@ -68,9 +68,6 @@ def libxml2_lib(libdir, libs):
         elif l.find('-l') == 0:
             libs.append(l.replace("-l", "", 1))
 
-    # this library is not reported and we need it anyway
-    libs.append('xml2mod')
-
 
 
 # Get version from src/version.h

--- End Message ---
--- Begin Message ---
Source: python-dmidecode
Source-Version: 3.12.2-4

We believe that the bug you reported is fixed in the latest version of
python-dmidecode, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <[email protected]> (supplier of updated python-dmidecode package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 05 Dec 2017 23:55:43 -0500
Source: python-dmidecode
Binary: python-dmidecode python-dmidecode-dbg
Architecture: source amd64
Version: 3.12.2-4
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <[email protected]>
Changed-By: Sandro Tosi <[email protected]>
Description:
 python-dmidecode - Python extension module for dmidecode
 python-dmidecode-dbg - Python extension module for dmidecode (debug)
Closes: 864960 867609
Changes:
 python-dmidecode (3.12.2-4) unstable; urgency=medium
 .
   * debian/{control,copyright}
     - point upstream homepage to github, now that fedorahosted is retired
   * debian/watch
     - scan github for new releases
   * debian/control
     - bump Standards-Version to 4.1.2 (no changes needed)
   * debian/patches/0001-Don-t-use-unaligned-access-on-ARM.patch
     - don't use unaligned access on ARM; patch by Steve Langasek;
       Closes: #864960
   * debian/patches/0002-Stop-linking-with-libxml2mod.patch
     - stop linking with libxml2mod; patch by Adrian Bunk; Closes: #867609
Checksums-Sha1:
 976a28d77f12b31eb8276351be65b7ac463c42db 2215 python-dmidecode_3.12.2-4.dsc
 adba8ebff7261aad7480802bacfb10c0f5eb438b 23644 
python-dmidecode_3.12.2-4.debian.tar.xz
 1c24e488d015f358325e5d2ed393d5074cf74554 59016 
python-dmidecode-dbg_3.12.2-4_amd64.deb
 6620d0190e992ca10f5ac81104261dd944d845a9 130452 
python-dmidecode-dbgsym_3.12.2-4_amd64.deb
 38466f831ac08f647123bf677bb3dd726ccddf70 8194 
python-dmidecode_3.12.2-4_amd64.buildinfo
 af25e09c1faaeea5b9dfc4e5ff6ec5da5286ef44 79100 
python-dmidecode_3.12.2-4_amd64.deb
Checksums-Sha256:
 cb68fc06d418592975789cb8b2dc67ac2943c2a47a6e76672f0816663a3a2ff3 2215 
python-dmidecode_3.12.2-4.dsc
 62923e3c33f55ec5d585ca430b8d781e8d8f45307edad443db304e2064cf02ce 23644 
python-dmidecode_3.12.2-4.debian.tar.xz
 8c95dbb892214e7ff3230ad30049a451b130a3ee1588a8ee65ee70e6736855b8 59016 
python-dmidecode-dbg_3.12.2-4_amd64.deb
 75635005688a441e9a748e580cc40a5e5194995bc04e6f416e5d731ae0966ceb 130452 
python-dmidecode-dbgsym_3.12.2-4_amd64.deb
 3495512d4972641c625d453596fc26a1c1db97d8dcae6d3c7f9289c47ba9545c 8194 
python-dmidecode_3.12.2-4_amd64.buildinfo
 33e9c0d7aa5b83b52fc2e74b54602f0506513d7740b78be10af68a1d213c8639 79100 
python-dmidecode_3.12.2-4_amd64.deb
Files:
 1906d77925a58118bd355691d23933bb 2215 python optional 
python-dmidecode_3.12.2-4.dsc
 6ab0673c284f52464f451002844c4b49 23644 python optional 
python-dmidecode_3.12.2-4.debian.tar.xz
 61d966f11e68e23a8f64e2df02c1b3c7 59016 debug extra 
python-dmidecode-dbg_3.12.2-4_amd64.deb
 3b85a5bb7e759d672a4c137d592a4d5e 130452 debug optional 
python-dmidecode-dbgsym_3.12.2-4_amd64.deb
 89cf0bc0cae9d074ea5ffdb49c0722dc 8194 python optional 
python-dmidecode_3.12.2-4_amd64.buildinfo
 0d17c84ca0b2fc432bbaaaed65b77b9d 79100 python optional 
python-dmidecode_3.12.2-4_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAloneNUACgkQh588mTgB
qU/v5g//fNylaST8BCH80H198PVUuhDDtVkJFA5/MDE8WetnYAYVZp6dPP8FZl5+
ABVmC5wQnaAAcKibWL2M3217vecBnIBpmCinqn7Dl5tqNVEZTOoOfIPVbY5Q+5JJ
38XmMjjMApK7TrrnSZz7WsrmW4G/44lpqwaqGRopIsGQf/tXX4dccx8jzSjIo8bx
Nrb6V/tILqG51jgVixDJnxTmlUKLR6F7wdkbxmjut7RE2FUYzxPkDoW1VBQOgoHA
F5mrjYSbFTUPeavuYrBRll2oweA71A0iM0mUhKH77k5K9+C+0zyMuQxIO9rw5EQ4
08v9hZy1rBOJTY3efxgxAHmfqxANCtAwzuGoPMosX2s422gE+sXV8KurmbH1DSGA
g3l1kYj6UXGYUIvFfrn3wElcipap84nok2yPSD6XmC18EaCNBkQhBcthU8gVmzw5
Gbe9AlbbTY0HLAcY3zptrDQ+2297N9rfC3eRNm4jMneQLgrOienAmGwBv3+gZuLd
Uw5jqF3cb3VDhaETHEgklTnMtplzaxj/NwpK5bD/sxBNNh6ajITyZQCdLS8PNO5K
6LxytdZdud9r3Is6Th94Q7A+gnECWP/2ku4MYIIkAJ/diCtTQm/ju3yC7KZTM+VU
dHRTS/IbfcHuWbm9+GNwg1OCrVXk5gWrSOmYb0bwX8fsaxPpiqE=
=LsDo
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to