File: 0005-pkg-config.patch

package info (click to toggle)
python-dmidecode 3.12.2-11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,144 kB
  • sloc: ansic: 6,946; xml: 741; python: 595; makefile: 93; sh: 68
file content (21 lines) | stat: -rw-r--r-- 945 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/src/setup_common.py
+++ b/src/setup_common.py
@@ -54,14 +54,14 @@
     if os_path.exists("/etc/debian_version"): #. XXX: Debian Workaround...
         libdir.append("/usr/lib/pymodules/python%d.%d"%sys.version_info[0:2])
 
-    (res, libxml2_libs) = subprocess.getstatusoutput("xml2-config --libs")
+    (res, libxml2_libs) = subprocess.getstatusoutput("pkg-config --libs libxml-2.0")
     if res != 0:
         print("Could not build python-dmidecode.")
-        print("Could not run xml2-config, is libxml2 installed?")
-        print("Also the development libraries?")
+        print("Could not run pkg-config, is it installed?")
+        print("Also the development libraries for libxml2?")
         sys.exit(1)
 
-    # Parse the xml2-config --libs response
+    # Parse the pkg-config --libs libxml-2.0 response
     for l in libxml2_libs.split(" "):
         if l.find('-L') == 0:
             libdir.append(l.replace("-L", "", 1))