Re: [Help] Re: dl10n-check: Can't locate Debian/Pkg/DebSrc.pm in @INC
Damyan Ivanov <[email protected]> Sat, 16 Nov 2024 16:50:26 +0200
| Newsgroups | gmane.linux.debian.devel.l10n,gmane.linux.debian.devel.perl |
|---|---|
| Message-ID | <20241116145026.3z3eibpsgj56dxwg@fbd7c150-3361-11e8-8c11-5badabdd4a8d> |
Tags: -1 patch
-=| Andreas Tille, 16.11.2024 13:53:14 +0100 |=-
> dl10n came up as a candidate for the Bug of the Day[1] and I had
> a look
> into this bug. I tried to somehow "document" the issue raused in the
> bug report by doing the actual call inside a autopkgtest where you can
> see the results in Salsa CI[2]. I'd be really happy if the Perl team
> could provide a working patch which is most probably very easy for
> someone speaking Perl.
The problem is that Makefile.PL wrongly limits the directory from
which modules are to be installed. Removing the PMLIBDIRS line brings
in all modiles from lib/, and should produce a working package.
Patch:
======================================================
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -7,7 +7,6 @@ WriteMakefile(
'VERSION_FROM' => 'lib/Debian/L10n/Db.pm', # finds $VERSION
'PREREQ_PM' => {'Locale::gettext' => '1.01'}, # e.g., Module::Name => 1.1
'EXE_FILES' => ['dl10n-check', 'dl10n-html', 'dl10n-mail', 'dl10n-nmu', 'dl10n-pts', 'dl10n-spider', 'dl10n-txt'],
- 'PMLIBDIRS' => ['lib/Debian/L10n'],
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT => 'Infrastructure for the debian localisation',
AUTHOR => 'Martin Quinson <[email protected]>\n'.
======================================================
-- Damyan