| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
fix a local zstd change in genhdlist2 that wrongly made it into
testsuite's bundled 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
some FreeBSD CPAN smokers sometimes fails with:
error: Couldn't exec /usr/local/lib/rpm/elfdeps: No such file or directory
The testsuite passes smoothly before & after that change.
The only impact is that with that,
t/media/rpm-query-in-scriptlet/rpm-query-in-scriptlet-1-1.x86_64.rpm
lose one requires on one of its own provides:
removed REQUIRES librpm.so.9()(64bit)
Which is fine.
|
|
|
|
| |
It's more readable and will help next commit
|
|
|
|
| |
Thus we got a shorter command which will help for next commits
|
| |
|
|
|
|
| |
On some older distributions (eg: Mageia 2), it would fail.
|
|
|
|
|
| |
Basically restoring commit 654ffaa9caf78556b9759c18345b5ec9207f3c43 for
older rpm
|
|
|
|
|
| |
Eg: on Mageia 2, the network test would be skipped due to faulty test
which caused us to think no downloader would be available
|
|
|
|
|
| |
we could have done it for all tests directly from within t/helper.pm,
but only those tests actually need to find genhdlist2
|
|
|
|
| |
(needed for next commit)
|
| |
|
|
|
|
|
|
|
|
|
| |
rationale:
If we switch from root to nobody/nogroup while running in /root,
everytime simple-httpd accesses to a files while answering to urpmi will
fail with "-1 EACCES (Permission denied)"
Then t/tmp/error.log contains "Error - 404 - file not found" but that's
hidden when running tests as part of CPAN testers.
|
|
|
|
|
| |
+ /usr/local/lib/rpm/find-lang.sh /usr/home/cpansand/.cpan/build/2020042613/urpmi-v8.121.20-6/t/tmp/BUILDROOT/various-1-1.x86_64 test-various
error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042613/urpmi-v8.121.20-6/t/tmp/rpm-tmp.kKrrdT (%install)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
because of:
+ cd /
+ cpio -pumdL /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-2/t/tmp/BUILDROOT/rpm-query-in-scriptlet-1-1.x86_64
cpio: Can't stat /bin/sh:
cpio: Can't stat /usr/local/bin/rpm:
24035 blocks
error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-2/t/tmp/rpm-tmp.Q4A94o (%install)
See related debuging in:
http://www.cpantesters.org/cpan/report/e7284484-878b-11ea-a99d-f0811f24ea8f
+ grep / list
+ ls -l /usr/local/lib/libnss3.so /bin/sh /bin/sh: /lib/libedit.so.7 /lib/libc.so.7 /lib/libncursesw.so.9 /usr/local/bin/rpm /usr/local/bin/rpm: /usr/local/lib/librpm.so.9 /usr/local/lib/librpmio.so.9 /usr/local/lib/libdb-5.3.so.0 /usr/local/lib/libnss3.so /usr/lib/libbz2.so.4 /lib/libz.so.6 /usr/local/lib/libpopt.so.0 /usr/lib/liblzma.so.5 /usr/local/lib/libzstd.so.1 /usr/local/lib/liblua-5.2.so /lib/libm.so.5 /lib/libthr.so.3 /usr/local/lib/libintl.so.8 /lib/libc.so.7 /usr/local/lib/libnssutil3.so /usr/local/lib/libplc4.so /usr/local/lib/libplds4.so /usr/local/lib/libnspr4.so /usr/lib/libdl.so.1
ls: /bin/sh:: No such file or directory
ls: /usr/local/bin/rpm:: No such file or directory
error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042520/urpmi-v8.121.17-2/t/tmp/rpm-tmp.GcQOIE (%install)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
unset %__os_install_post fixes to fix FreeBSD failures (RT#131162)
%__os_install_post cause build failures on FreeBSD due to rpm not being adapted:
such as http://www.cpantesters.org/cpan/report/0a319070-86d8-11ea-a1f7-ec411f24ea8f:
+ /usr/local/lib/rpm/brp-compress /usr/local
+ /usr/local/lib/rpm/brp-strip /usr/bin/strip
+ /usr/local/lib/rpm/brp-strip-static-archive /usr/bin/strip
xargs: illegal option -- d
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]
[-J replstr] [-L number] [-n number [-x]] [-P maxprocs]
[-s size] [utility [argument ...]]
error: Bad exit status from /usr/home/cpansand/.cpan/build/2020042509/urpmi-v8.121.15-0/t/tmp/rpm-tmp.P9J8JW (%install)
Stripping also often fails on FreeBSD:
/usr/bin/strip: unable to copy file '...BUILDROOT/arch_to_noarch-1-1.x86_64/usr/lib/test-arch_to_noarch/ldconfig' reason: Permission denied
As a side effect, it also fixes:
Error: Could not execute /usr/local/lib/rpm/elfdeps: file or directory not found
|
|
|
|
|
|
| |
Aka adapt to a world where gcc is no more the apex predator...
Several Linux distros as well as FreeBSD >= 10 default to clang instead
of gcc.
|
|
|
|
|
|
|
| |
This might help the following failure:
http://www.cpantesters.org/cpan/report/c8c690aa-8587-11ea-81c4-93681f24ea8f
cpio: Can't lstat /bin/sh:
cpio: Can't lstat /usr/local/bin/rpm:
|
|
|
|
|
|
|
| |
Thus fixing killing simple-httpd when test completes, which was broken
since basically forever.
This prevents dummy testsuite faillures when performing parallel runs on
different perl/rpm versions (eg: using chroots).
|
|
|
|
|
|
|
|
|
|
|
| |
The error message being in some conditions:
"The plan was already output at /usr/lib/perl5/5.22.3/Test/Builder.pm
line 2510."
We need both else we got:
"Tests were run but no plan was declared and done_testing() was not seen."
also fix inverted condition :-(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
You tried to plan twice at t/superuser--should-restart.t line 14.
t/superuser--should-restart.t ...................................
skipped: (no reason given)
(...)
Test Summary Report
-------------------
t/superuser--should-restart.t (Wstat:
65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Files=40, Tests=3901, 801 wallclock secs ( 0.96 usr 0.09 sys + 174.18
cusr 30.16 csys = 205.39 CPU)
Result: FAIL
Failed 1/40 test programs. 0/3901 subtests failed.A
On the other side we want to make it work in both cases so we end doing
that.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
just build a dynamic binary but exclude its deps
rationale: quite a lot of CPAN testers do not have static libs
installed...
|
|
|
|
| |
historically we were used static dash but that was too Mageia centered
|
| |
|
| |
|
|
|
|
|
|
| |
commit 1089a6c113c53cd77147808ebeb4f6d0ef03fa89 really was about
silencing a warning, so let's not break other OSes who do not have that
lib or not in this location
|
|
|
|
|
|
|
|
|
|
| |
It should help
http://www.cpantesters.org/cpan/report/9e067a66-83f1-11ea-85a9-af7f1f24ea8f
which fails.
That smoker had rpmtools/URPM already installed normally into this
perl's sitedir & bindir.
Adding the blib/script directories didn't help that case.
So try $Config{bin} too
|
|
|
|
|
|
|
|
|
|
|
|
| |
rationale:
in some cases, all dependency modules and scripts still reside in the
uninstalled blib directories.
CPAN.pm knows how to deal with uninstalled modules (all the blib/lib
directories go into the PERL5LIB environment variable).
But it does not do something similar for the blib/script directories.
So we have to try harder to find genhdlist2 by adding those blib/script
directories to PATH if they exist
|
| |
|
| |
|
|
|
|
|
| |
rationale:
Mageia's rpm is patched in order to not conflict for doc files:
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
reports its error messages if any
|
| |
|
| |
|
| |
|
|
|
|
| |
install do not have -d option on FreeBSD
|
|
|
|
|
|
| |
commit 1089a6c113c53cd77147808ebeb4f6d0ef03fa89 really was about
silencing a warning, so let's not break other OSes who do not have that
lib or not in this location
|
|
|
|
| |
should have been in commit ad953e4c4bca7e5bd9f5b5664298e04272537479
|
| |
|