Skip Menu |

This queue is for tickets about the URPM CPAN distribution.

Report information
The Basics
Id: 131162
Status: resolved
Priority: 0/
Queue: URPM

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 5.22
  • v5.23.1
Fixed in: v5.24



Subject: xargs: illegal option -- d
t/00prepare.t fails on (some?) freebsd systems. It's not clear if it's due to the incompatible xargs arguments or due to another reason: ... PERL_DL_NONLAZY=1 "/usr/perl5.31.5p/bin/perl5.31.5" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t error: cannot open Packages database in /var/lib/rpm + umask 022 + cd /usr/home/cpansand/.cpan/build/2019120920/URPM-5.22-1/t/tmp//BUILD + RPM_EC=0 + jobs -p + exit 0 + umask 022 + cd /usr/home/cpansand/.cpan/build/2019120920/URPM-5.22-1/t/tmp//BUILD + RPM_EC=0 + jobs -p + exit 0 + umask 022 + cd /usr/home/cpansand/.cpan/build/2019120920/URPM-5.22-1/t/tmp//BUILD + rm -rf /usr/home/cpansand/.cpan/build/2019120920/URPM-5.22-1/t/tmp/BUILDROOT/test-rpm-1.0-1mdk.x86_64 + mkdir -p /usr/home/cpansand/.cpan/build/2019120920/URPM-5.22-1/t/tmp/BUILDROOT/test-rpm-1.0-1mdk.x86_64/usr/local/etc + date + /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 /var/tmp/rpm-tmp.pUv6Ji (%install) cannot open Packages database in /var/lib/rpm Bad exit status from /var/tmp/rpm-tmp.pUv6Ji (%install) # Failed test 'rpm created' # at t/00prepare.t line 16. # Failed test 'srpm created' # at t/00prepare.t line 17. # Looks like you failed 2 tests of 2. t/00prepare.t ........ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests ...
Le Lun 09 Déc 2019 15:48:13, SREZIC a écrit : Show quoted text
> + /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 /var/tmp/rpm-tmp.pUv6Ji (%install)
This is not a bug in URPM but in your local rpm installation. The actual caller of xargs is *your* /usr/local/lib/rpm/brp-strip-static-archive rpm probably needs to add a special case for FreeBSD there like it does for Darwin I could workaround it by undefining %__brp_strip_static_archive
As I cannot expect rpm to be fixed on FreeBSD soon, this has been workarounded in URPM testsuite