diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-04-30 17:58:44 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-05-01 00:35:35 +0200 |
commit | 185f13752b8cf02f51e48f6b798d478b32386f28 (patch) | |
tree | b284d43af97acd80d61dcb7d8d5ba1d68941473d /t/superuser--addmedia.t | |
parent | a3e08228baf11b5ecaf4d3fec145f55f54673fc6 (diff) | |
download | urpmi-185f13752b8cf02f51e48f6b798d478b32386f28.tar urpmi-185f13752b8cf02f51e48f6b798d478b32386f28.tar.gz urpmi-185f13752b8cf02f51e48f6b798d478b32386f28.tar.bz2 urpmi-185f13752b8cf02f51e48f6b798d478b32386f28.tar.xz urpmi-185f13752b8cf02f51e48f6b798d478b32386f28.zip |
fix running genhlist2 with the right perl version
Else genhdlist2 may fail to load URPM if it doesn't use the perl version for
which URPM was installed.
This affects CPAN smokers where several perl versions are installed.
Eg in http://www.cpantesters.org/cpan/report/6808b728-8a34-11ea-bab2-e37d1f24ea8f
CPAN says INC=
/usr/perl5.30.0p/lib/site_perl/5.30.0/amd64-freebsd
/usr/perl5.30.0p/lib/site_perl/5.30.0
/usr/perl5.30.0p/lib/5.30.0/amd64-freebsd
/usr/perl5.30.0p/lib/5.30.0
Which is consistent with $^X = /usr/perl5.30.0p/bin/perl5.30.0
But genhdlist2 fails with:
Can't locate URPM.pm in @INC (you may need to install the URPM module) (@INC contains: /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/blib/lib /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/blib/arch /usr/perl5.28.2-RC1p/lib/site_perl/5.28.2/amd64-freebsd /usr/perl5.28.2-RC1p/lib/site_perl/5.28.2 /usr/perl5.28.2-RC1p/lib/5.28.2/amd64-freebsd /usr/perl5.28.2-RC1p/lib/5.28.2 .) at /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/t/genhdlist2 line 6.
BEGIN failed--compilation aborted at /usr/home/cpansand/.cpan/build/2020042914/urpmi-v8.122-1/t/genhdlist2 line 6.
Ie it used the wrong perl-5.28.2 instead of perl-5.30.0
Diffstat (limited to 't/superuser--addmedia.t')
0 files changed, 0 insertions, 0 deletions