[xml/sgml-pkgs] Bug#245305: docbook2x: Module installed in wrong directory (Perl Policy violation)
Rafael Laboissiere
Rafael Laboissiere <rafael@debian.org>, 245305@bugs.debian.org
Thu, 22 Apr 2004 14:59:40 +0200
Package: docbook2x
Version: 0.8.2-1
Severity: serious
The Perl module XML::Handler::Template contained in this package is
installed in /usr/share/perl5/docbook2x/, instead of /usr/share/perl5/, as
mandated by the Debian Perl Policy. This makes the package unusable, unless
the user specifies @INC or -I. The fix for that in debian/rules is trivial
(please notice that the patch below is cumulated with the patch in the bug
report #245291):
--- debian/rules-orig 2004-04-22 12:46:48.000000000 +0200
+++ debian/rules 2004-04-22 14:46:45.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::
@@ -28,10 +29,10 @@
# move docs and perl files to right place
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/
+ mkdir -p $(USR)/share/perl5
+ mv $(USR)/share/perl/$(PERL_VERSION)/XML/ $(USR)/share/perl5
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
--
Rafael