Hi, As this is issue of perl-packaging i want to discuss this on debian-perl@l.d.o. Julian Gilbey <jdg@debian.org> writes: > Package: libnet-perl, perl-modules > Version: 1.17-1, 5.8.1-2 > > This package provides /usr/share/perl5/Net/Config.pm; however, > /etc/perl/Net/Config.pm is provided by perl-modules, and so will be > used in preference. OK, the problem is this: libnet-perl installs its modules to /usr/share/perl5/Net/ (no problem there). The modules provided by perl-modules are installed to /usr/share/perl/5.8.1/Net/ (still no problem), but Net::Config is installed to /etc/perl/Net/ - which is a problem! On a normal Debian system, the files included in libnet-perl won't use their own Config.pm but the older one included in perl-modules. A solution for that would be to move /etc/perl/Net/Config.pm to /usr/share/perl/5.8.1/Net/. I attached a patch for this solution. Marc -- $_=')(hBCdzVnS})3..0}_$;//::niam/s~=)]3[))_$(rellac(=_$({pam(esrever })e$.)4/3* )e$(htgnel+23(rhc,"u"(kcapnu ,""nioj ;|_- |/+9-0z-aZ-A|rt~=e$;_$=e${pam tnirp{y V2ajFGabus} yV2ajFGa&{gwmclBHIbus}gwmclBHI&{yVGa09mbbus}yVGa09mb&{hBCdzVnSbus'; s/\n//g;s/bus/\nbus/g;eval scalar reverse # <mailto:marc@marcbrockschmidt.de>
diff -wru perl-5.8.1/debian/changelog perl-5.8.1-he/debian/changelog --- perl-5.8.1/debian/changelog 2003-10-09 16:06:09.000000000 +0200 +++ perl-5.8.1-he/debian/changelog 2003-10-15 15:33:44.000000000 +0200 @@ -1,3 +1,9 @@ +perl (5.8.1-2+he) unstable; urgency=low + + * Moved Net::Config back to /usr/share/perl/$(fullversion)/Net. + + -- Marc Brockschmidt <marc@dch-faq.de> Wed, 15 Oct 2003 15:19:37 +0200 + perl (5.8.1-2) unstable; urgency=low * Added missing Provides: libstorable-perl (closes: #213320). diff -wru perl-5.8.1/debian/rules perl-5.8.1-he/debian/rules --- perl-5.8.1/debian/rules 2003-10-09 16:06:09.000000000 +0200 +++ perl-5.8.1-he/debian/rules 2003-10-15 15:32:22.000000000 +0200 @@ -217,9 +217,6 @@ mkdir -p $(build)/perl-modules/etc/perl/CPAN \ $(build)/perl-modules/etc/perl/Net - mv $(build)/perl-modules/usr/share/perl/$(fullversion)/Net/Config.pm \ - $(build)/perl-modules/etc/perl/Net - # compress find $(build)/*/usr/share/man -type f -print | xargs gzip -9 find $(build)/*/usr/share/doc -type f \ diff -wru perl-5.8.1/lib/Net/Config.pm perl-5.8.1-he/lib/Net/Config.pm --- perl-5.8.1/lib/Net/Config.pm 2003-09-02 15:40:39.000000000 +0200 +++ perl-5.8.1-he/lib/Net/Config.pm 2003-10-15 15:37:12.000000000 +0200 @@ -57,9 +57,8 @@ } TRY_INTERNET_CONFIG -my $file = __FILE__; +my $file = "/etc/perl/Net/libnet.cfg"; my $ref; -$file =~ s/Config.pm/libnet.cfg/; if ( -f $file ) { $ref = eval { local $SIG{__DIE__}; do $file }; if (ref($ref) eq 'HASH') {
Attachment:
pgp8EJYxStMD3.pgp
Description: PGP signature