[Debian-l10n-devel] Bug#805378: Undefined subroutine errors (spider-bts) Was: [Help] Re: dl10n-check: Can't locate Debian/Pkg/DebSrc.pm in @INC
gregor herrmann
gregoa at debian.org
Tue Nov 19 14:16:07 GMT 2024
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.
More information about the Debian-l10n-devel
mailing list