rpmbuild -ba nano.spec
+ /usr/local/lib/rpm/brp-compress /usr
+ /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.WIBuTI (%install)
Find error shell file and line:
Can you attach the nano.spec file to this ticket ?
Created attachment 212273 [details]
nano spec file for FreeBSD
The issue was caused by the use of GNU xargs switches not available in the
BSD version. I did a fix by replacing the calls to xags by the gxargs (the GNU version available in ports).
I'm not a rpm4 user, but if you wanna try the fix, I can provide you a test buid for your arch and version or a patch if you wanna build it in your own.
You can also bypass the limitation - and somehow test the fix - with the current package by performing the following steps:
- install misc/findutils
- alias xargs gxargs
- run rpm4 for the nano package again
Let me know how it works so I can push the changes.
A commit references this bug:
Date: Sun Mar 22 16:05:51 UTC 2020
New revision: 528924
archivers/rpm4: Replace calls to xargs by gxargs
Latest version of archivers/rpm4 uses GNU specific option
when calls xargs. This causes the proccess to fail.
This commit adds misc/findutils as a run dependency and
replaces xargs calls by its GNU variant gxargs.
Also Bump portrevision.
Reported by: Brian Zou <email@example.com>
A fix was committed, thanks for reporting the issue.