ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Issues crossbuilding RPM #752

Closed jw3 closed 1 year ago

jw3 commented 1 year ago

Koji cross builds rpms, and the _arch macro used in the spec file references the host arch, not the target. This causes a failure during the %install stage when the target and host build do not match.

+ /usr/bin/python3 -m pip install -I 'dist/fapolicy_analyzer-0.6.8*i386.whl' --root /builddir/build/BUILDROOT/fapolicy-analyzer-0.6.8-1.fc38.i386 --prefix /usr --no-deps --no-index --no-warn-script-location
WARNING: Requirement 'dist/fapolicy_analyzer-0.6.8*i386.whl' looks like a filename, but the file does not exist
ERROR: fapolicy_analyzer-0.6.8*i386.whl is not a valid wheel filename.

https://koji.fedoraproject.org/koji/taskinfo?taskID=96723207