1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Sandro Tosi <morph@debian.org>
Date: Fri, 19 Nov 2021 11:59:33 -0400
Subject: pkg-config
---
src/setup_common.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/setup_common.py b/src/setup_common.py
index 6b678ef..f58d520 100644
--- a/src/setup_common.py
+++ b/src/setup_common.py
@@ -54,14 +54,14 @@ def libxml2_lib(libdir, libs):
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))
|