jimjag / epm

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

EPM_RPMARCH #7

Open alexweuster opened 2 years ago

alexweuster commented 2 years ago

First of all thank you very much for the maintenance.

I am experiencing an issue with building rpms with epm v5.0.0: When compiling the sources and using the binary as follows:

#> epm -g -f rpm -vvvvv --keep-files <product> <listfile>
Searching for product information...
Creating RPM distribution...
Creating spec file...
Copying temporary distribution files...
Directory linux-4.12-x86_64/<path>
...
Building RPM binary distribution...
/usr/bin/rpmbuild -bb --buildroot "<path/to/buildroot>" --buildarch x86_64 linux-4.12-x86_64/<product>.spec
rpmbuild: --buildarch: unknown option
Packaging failed!

I assume the configure script has some flaw, i.e. if I comment out lines 5259-5281 in configure

#       cat >>confdefs.h <<_ACEOF
##define EPM_RPMARCH "--buildarch "
#_ACEOF

the correct flag --target x86_64 is used for rpmbuild.

But maybe I am missing some subtile differences between the OS vendors. This was found on:

lhondareyte commented 4 months ago

See https://github.com/jimjag/epm/issues/11#issuecomment-1951181209