Bug#902306: FTBFS: xml2-config is gone from libxml2-dev from version 2.9.7+dfsg-1
Gerardo Esteban Malazdrewicz
gerardo at malazdrewicz.com.ar
Sun Jun 24 20:22:35 BST 2018
Package: libxml-libxml-perl
Version: 2.0132+dfsg-1+b0.01
Severity: grave
Tags: patch upstream
When running debian/rules build:
---------------------------------------------------------------------
gerardo at alienware:~/apt-src/libxml-libxml-perl-2.0132+dfsg$ ./debian/rules
build
dh build
dh_update_autotools_config
dh_autoreconf
debian/rules override_dh_auto_configure
make[1]: se entra en el directorio '/home/gerardo/apt-src/libxml-libxml-
perl-2.0132+dfsg'
SKIP_SAX_INSTALL=1 dh_auto_configure
perl -I. Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -fdebug-
prefix-map=/home/gerardo/apt-src/libxml-libxml-perl-2.0132+dfsg=. -fstack-
protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-
map=/home/gerardo/apt-src/libxml-libxml-perl-2.0132+dfsg=. -fstack-protector-
strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now"
enable native perl UTF8
running xml2-config...didn't manage to get libxml2 config, guessing
options:
LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'
INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
$ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math
library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
---------------------------------------------------------------------
The guesses are wrong.
The alternative using pkg-config is available since at least wheezy, so the
attached patch would work in all recent Debian versions.
This patch will be needed until upstream switches to use pkg-config instead of
(now gone) xml2-config.
Thanks,
Gerardo
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.16.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), LANGUAGE=es_AR:es (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libxml-libxml-perl depends on:
ii libc6 2.27-3
ii libxml-namespacesupport-perl 1.12-1
ii libxml-sax-perl 1.00+dfsg-1+b0.01
ii libxml2 2.9.7+dfsg-1
ii perl 5.28.0~rc2-1
ii perl-base [perlapi-5.28.0] 5.28.0~rc2-1
ii zlib1g 1:1.2.11.dfsg-1
libxml-libxml-perl recommends no packages.
libxml-libxml-perl suggests no packages.
-- no debconf information
-------------- next part --------------
diff -ruN libxml-libxml-perl-2.0132+dfsg/debian/rules libxml-libxml-perl-2.0132+dfsg.good/debian/rules
--- libxml-libxml-perl-2.0132+dfsg/debian/rules 2018-06-23 16:57:04.000000000 -0300
+++ libxml-libxml-perl-2.0132+dfsg.good/debian/rules 2018-06-24 15:38:12.931247836 -0300
@@ -10,7 +10,9 @@
dh $@
override_dh_auto_configure:
- SKIP_SAX_INSTALL=1 dh_auto_configure
+ SKIP_SAX_INSTALL=1 dh_auto_configure -- \
+ INC=$(shell pkg-config --cflags libxml-2.0) \
+ LIBS=$(shell pkg-config --libs libxml-2.0)
override_dh_auto_test:
dh_auto_test -- TEST_FILES="$(TEST_FILES)"
More information about the pkg-perl-maintainers
mailing list