Debian website build error of not finding Local/VCS.pm: any better solutions?

Boyuan Yang <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <2645118.OirrsIrSkM@hosiet-tp>
Dear debian-www list,

I was monitoring current website rebuild log [1] and noticed 
many errors like this:

==========================================
make -C 2002 install
make[5]: Entering directory '/srv/www.debian.org/webwml/
english/devel/debian-med/News/2002'
[...]
wml -q -D CUR_YEAR=2018 -o UNDEFuEN:20020528.en.html@g+w   
20020528.wml
ePerl:Error: Perl parsing error (interpreter rc=2)


---- Contents of STDERR channel: ---------
Can't locate Local/VCS.pm in @INC (you may need to install 
the Local::VCS module) (@INC contains: ../../../../Perl 
./../../Perl ../../Perl ../Perl Perl /usr/lib/wml/perl/lib /
usr/lib/wml/perl/lib/x86_64-linux-gnu-thread-multi /etc/perl 
/usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/
perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/
perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/
5.24 /usr/local/lib/site_perl) at /tmp/wml.n8LYVj/wml.
22229.tmp1.wml line 1975.
BEGIN failed--compilation aborted at /tmp/wml.n8LYVj/wml.
22229.tmp1.wml line 1975.
------------------------------------------
** WML:Break: Error in Pass 3 (rc=1).
Makefile:17: recipe for target '20020528.en.html' failed
make[5]: *** [20020528.en.html] Error 1
make[5]: Leaving directory '/srv/www.debian.org/webwml/
english/devel/debian-med/News/2002'
./../../../Makefile.common:71: recipe for target '2002-
install' failed
make[4]: [2002-install] Error 2 (ignored)

===============================================

It seems that the problem is caused by an incomplete fix 
committed as ed4a6cc2378cdf3d589ca8c95ca534c4504c48e8 in 
english/template/debian/translation-check.wml:

https://salsa.debian.org/webmaster-team/webwml/commit/
ed4a6cc2378cdf3d589ca8c95ca534c4504c48e8#c146cd51b09e4b1b937a505fb5edf01278a497f3_55_62

================================
# Grotty, but it works...
use lib "Perl";
use lib "../Perl";
use lib "../../Perl";
use lib "../../../Perl";
use lib "../../../../Perl";
use Local::VCS ':all';
================================

..and 4 layers are obviously not enough for some deep 
directories.

I'm not really familiar in Perl but there might be some 
better solutions than adding more layers of "use lib".

--
Regards,
Boyuan Yang


[1] https://www-master.debian.org/build-logs/webwml/
wml_run.log
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAlsSxqIACgkQwpPntGGC
Ws404g//cxN8UYGX6P9qVY2ZV49eu+lMXyTfRwL6LD6W2vIP7DXsSsjkT+RPZctA
TdD3u7tOW0sjt6vA6rgddFGzHIf3c3RnH0/AblOchyf3dDGsm8xU+/HyWbEMPjRN
ROt2afe+0IQOefyhBpFKF4xHVooXUPeuHTbu8waepLpSIkCfRr0nNPK0JrPRhP9o
qYOIg1gSZn2kyjby+PJVo62I/ufXeCl9AQKssL/lR3rx89l2MbrthNdj/uLkgxgZ
JgiYrJJFVwZ8O/V86Tv5rXXXa99pwu+pp8QJzCrSxggev3n6cGbJHLLRpx6opEez
SfZBJ6YvjtHSTGb0blj2BH2msR44O+LypgUS6SpzBA/qTLyHSsAY1C6FgklYim/n
RAagRxs/p1oDZbGP1LNhSUmvX04IHX3sqsVKnnwOeLiz/jydKw//fW+X1IevvYUE
OPqpp1uZznG1nYupd0elQ3rTa/1IT8hn5We8SDgLbvKs4+kuwsx2PmkG2XqclqDL
7kzdZZEzuTrWOUV31AXIoSFAeq8zp6lTFeAYewdZyg99C58n/d3XGQrOf8R/87Ft
sFbw2xocIlm/E5UFex5CJXSR7pZSehxbcH3IeRz3kNtBfSPj20YgawNkIeq3qNk0
Lk51A7QF/AZgtDszvLMDsqLze2ceazeQmoijnVDyH+nXS7q18pU=
=M1KK
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.