[xml/sgml-pkgs] Bug#1078673: libxml2 FTBFS with nocheck build profile
Helmut Grohne
helmut at subdivi.de
Wed Aug 14 07:19:52 BST 2024
Source: libxml2
Version: 2.12.7+dfsg-3
Tags: patch ftbfs
User: helmutg at debian.org
Usertags: rebootstrap
Hi,
libxml2 recently regressed its nopython build profile in two regards.
For one thing, it gained a python3-setuptools dependency that lacks a
<!nopython> annotation. This is not fatal, but an unused dependency.
What is fatal is that the __pycache__ is being cleaned up an that
absence of a __pycache__ makes the build fail. I'm attaching a patch for
your convenience.
Helmut
-------------- next part --------------
diff --minimal -Nru libxml2-2.12.7+dfsg/debian/changelog libxml2-2.12.7+dfsg/debian/changelog
--- libxml2-2.12.7+dfsg/debian/changelog 2024-05-29 15:25:11.000000000 +0200
+++ libxml2-2.12.7+dfsg/debian/changelog 2024-08-14 07:06:42.000000000 +0200
@@ -1,3 +1,10 @@
+libxml2 (2.12.7+dfsg-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix nopython build profile. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Wed, 14 Aug 2024 07:06:42 +0200
+
libxml2 (2.12.7+dfsg-3) unstable; urgency=medium
* d/control: replace pkg-config with pkgconf
diff --minimal -Nru libxml2-2.12.7+dfsg/debian/control libxml2-2.12.7+dfsg/debian/control
--- libxml2-2.12.7+dfsg/debian/control 2024-05-29 15:25:11.000000000 +0200
+++ libxml2-2.12.7+dfsg/debian/control 2024-08-14 07:04:38.000000000 +0200
@@ -16,7 +16,7 @@
libpython3-all-dev <!nopython>,
pkgconf,
python3-all-dev:any (>= 3.5) <!nopython>,
- python3-setuptools,
+ python3-setuptools <!nopython>,
rename,
zlib1g-dev | libz-dev,
Standards-Version: 4.6.2
diff --minimal -Nru libxml2-2.12.7+dfsg/debian/rules libxml2-2.12.7+dfsg/debian/rules
--- libxml2-2.12.7+dfsg/debian/rules 2024-05-25 05:37:41.000000000 +0200
+++ libxml2-2.12.7+dfsg/debian/rules 2024-08-14 07:06:42.000000000 +0200
@@ -68,7 +68,9 @@
override_dh_auto_install-arch: $(TARGETS:%=doinstall-%)
find debian/tmp -name *.la -delete
+ifneq ($(PY3VERS),)
rm -r debian/tmp/usr/lib/python*/site-packages/__pycache__
+endif
doinstall-python%:
dh_auto_install --builddirectory=builddir/main/python$(*)
More information about the debian-xml-sgml-pkgs
mailing list