[xml/sgml-pkgs] Bug#245291: docbook2x: Hard-coded Perl version

Rafael Laboissiere Rafael Laboissiere <rafael@debian.org>, 245291@bugs.debian.org
Thu, 22 Apr 2004 13:51:02 +0200


Package: docbook2x
Version: 0.8.2-1
Severity: serious


The package FTBFS using a generic Perl because it assumes in debian/rules
that the version is 5.8.  The trivial patch is below:

--- debian/rules-orig	2004-04-22 12:46:48.000000000 +0200
+++ debian/rules	2004-04-22 12:48:49.000000000 +0200
@@ -4,6 +4,7 @@
 include /usr/share/cdbs/1/class/autotools.mk
 
 USR=debian/docbook2x/usr
+PERL_VERSION=$(shell perl -e 'printf "%vd", $$^V')
 
 # need INFO-DIR-SECTION for dh_installinfo
 common-install-prehook-arch::
@@ -29,9 +30,9 @@
 	mv $(USR)/share/doc/docbook2X/* $(USR)/share/doc/docbook2x/
 	rmdir $(USR)/share/doc/docbook2X/
 	mkdir -p $(USR)/share/perl5/docbook2x/
-	mv $(USR)/share/perl/5.8/XML/ $(USR)/share/perl5/docbook2x/
+	mv $(USR)/share/perl/$(PERL_VERSION)/XML/ $(USR)/share/perl5/docbook2x/
 	rm -rf $(USR)/share/perl/
-# remove /usr/lib/perl/5.8 and examples/CVS cruft
+# remove /usr/lib/perl/$(PERL_VERSION) and examples/CVS cruft
 	rm -rf $(USR)/lib/ $(USR)/share/doc/docbook2x/examples/CVS/
 
 clean::


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux laboiss0 2.4.19-686 #1 Mon Nov 18 23:59:03 EST 2002 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages docbook2x depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libxml2                     2.6.8-1      GNOME XML library
ii  libxslt1.1                  1.1.5-1      XSLT processing library - runtime 
ii  zlib1g                      1:1.2.1-3    compression library - runtime

-- no debconf information