jimjag / epm

Updated ESP Package Manager (EPM)
https://jimjag.github.io/epm/
Apache License 2.0
10 stars 8 forks source link

rpm -bb --buildroot: unknown options #11

Open etxmato opened 1 year ago

etxmato commented 1 year ago

I have been using rpm on a x64 installation for a few years; recently I moved to an arm64 setup and as such did a clean (virtual) Fedora installation. Compiled and installed rpm 5.0.0 (tried some older versions as well) but get an error on the rpm -bb and --buildroot options. Any idea what I'm doing wrong?

I'm using: epm -f rpm emma02 -v -v -k

... Building RPM binary distribution... /usr/bin/rpm -bb --buildroot "/media/psf/Home/workspace/emma_02/Linux build/linux-5.11-aarch64/buildroot" --target aarch64 linux-5.11-aarch64/emma02.spec rpm: -bb: unknown option Packaging failed!

etxmato commented 1 year ago

I have found a workaround:

Would be nice if I can somehow instruct rpm to use rpmbuild instead of rpm, any ideas?

brucehot commented 1 year ago

Another hack, until this is fixed in epm, is to temporarily compress /usr/bin/rpm then link it to rpmbuild. This looks like a duplicate of #7

brucehot commented 9 months ago

Also, if you see --buildarch it is wrong, it should be --target

lhondareyte commented 4 months ago

I fixed the issue by running autoreconf.

autoreconf -i
./configure
make rpm

warnings from autoreconfcan be ignored. You need to install autoconf/automaketools. The configure script should not be provided. Tested ok on CentOS/Rocky/RHEL 7/8/9.