Re: Undefined subroutine errors (spider-bts) Was: [Debian-l10n-devel] [Help] Re: dl10n-check: Can't locate Debian/Pkg/DebSrc.pm in @INC
- To: Laura Arjona Reina <larjona@debian.org>
- Cc: Holger Wansing <hwansing@mailbox.org>, Andreas Tille <tille@debian.org>, Damyan Ivanov <dmn@debian.org>, debian-perl@lists.debian.org, Package Salvaging Team <team+salvage@tracker.debian.org>, 805378@bugs.debian.org, Debian l10n development team <debian-l10n-devel@lists.alioth.debian.org>
- Subject: Re: Undefined subroutine errors (spider-bts) Was: [Debian-l10n-devel] [Help] Re: dl10n-check: Can't locate Debian/Pkg/DebSrc.pm in @INC
- From: gregor herrmann <gregoa@debian.org>
- Date: Tue, 19 Nov 2024 15:16:07 +0100
- Message-id: <[🔎] Zzydp1Q1r10-VNyq@colleen.colgarra.priv.at>
- Mail-followup-to: Laura Arjona Reina <larjona@debian.org>, Holger Wansing <hwansing@mailbox.org>, Andreas Tille <tille@debian.org>, Damyan Ivanov <dmn@debian.org>, debian-perl@lists.debian.org, Package Salvaging Team <team+salvage@tracker.debian.org>, 805378@bugs.debian.org, Debian l10n development team <debian-l10n-devel@lists.alioth.debian.org>
- In-reply-to: <[🔎] 90122b80-b208-49c8-8046-53a5e73e5404@debian.org>
- References: <[🔎] ZziVujZkwn-xzbBn@an3as.eu> <[🔎] 20241116145026.3z3eibpsgj56dxwg@fbd7c150-3361-11e8-8c11-5badabdd4a8d> <[🔎] Zzi-aFM8Tq0gix7I@an3as.eu> <[🔎] 9C2985A2-3F3C-4BC8-9EAE-56CB76895356@mailbox.org> <[🔎] 90122b80-b208-49c8-8046-53a5e73e5404@debian.org>
On Tue, 19 Nov 2024 15:01:27 +0100, Laura Arjona Reina wrote:
> Looking at the log, it says:
>
> Undefined subroutine &Html::html called at
> /srv/i18n.debian.org//dl10n/git/dl10n-html line 140.
>
> We have the file in dl10n/git/lib/Debian/L10n/Html.pm that includes the
> subroutine hmtl() and it was working without issues. I think that now Perl
> in tye.d.o cannot find it but I don't know why, because the cron job (script https://salsa.debian.org/l10n-team/dl10n/-/blob/master/cron/spiderbts?ref_type=heads
> ) gets the configuration from file dl10n.conf as the other scripts.
Was perl upgraded?
Anyway, looks indeed like
./dl10n-html
doesn't find
./lib
<guess>
I'd try to add
use lib '.';
at the top of dl10n-html, e.g. after "use POSIX qw(strftime);"
in https://salsa.debian.org/l10n-team/dl10n/-/blob/master/dl10n-html?ref_type=heads#L32
or call dl10n-html from the cronjob as "perl -I<full path to the
lib/directory>, e.g.
PERL -I$DL10NDIR/lib $DL10NDIR/dl10n-html --sdb …
in https://salsa.debian.org/l10n-team/dl10n/-/blob/master/cron/spiderbts?ref_type=heads#L46
</guess>
Cheers,
gregor
--
.''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
: :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
`. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
`- BOFH excuse #255: Standing room only on the bus.
Reply to: