ERRORS: mozilla-firefox-bin.spec
Jan Palus
atler at pld-linux.org
Wed Feb 12 01:07:24 CET 2025
On 11.02.2025 23:49, Jan Rękorajski wrote:
> rpm 4.18:
>
> $ rpmbuild -bp --short-circuit --nodeps --target x32-pld-linux --define 'prep exit 0' nodejs.spec ; echo $?
> Building target platforms: x32-pld-linux
> Building for target x32-pld-linux
> error: Architecture is not included: x32
> 1
>
> vs rpm 4.20:
>
> $ rpmbuild -bp --short-circuit --nodeps --target x32-pld-linux --define 'prep exit 0' nodejs.spec ; echo $?
> Building target platforms: x32-pld-linux
> Building for target x32-pld-linux
> 0
>
> That's how builder finds out if an arch is supported or not.
>
> I'll look around if there is a better way or if that's an rpm bug.
This is absurd. Following commit:
https://github.com/rpm-software-management/rpm/commit/fd32a43e04814bd1f298977306ac1bcdc6c790d2
makes checkForValidArchitectures() part of finalizeSpec() which is only
called _after successful %install_. Makes no sense to me but who am I?
Sample:
$ rpm -E '%{_target_cpu}'
aarch64
$ grep ExclusiveArch test.spec
ExclusiveArch: %{x8664}
$ rpmbuild -bi test.spec; echo $?
Executing(%mkbuilddir): /bin/sh -e /home/users/builder/tmp/rpm-tmp.DlT3Ts
...
Executing(%prep): /bin/sh -e /home/users/builder/tmp/rpm-tmp.3IlqaP
...
Executing(%install): /bin/sh -e /home/users/builder/tmp/rpm-tmp.aAv0BZ
...
error: Architecture is not included: aarch64
error: parsing failed
RPM build errors:
Architecture is not included: aarch64
parsing failed
1
$ rpmbuild -bc test.spec; echo $?
Executing(%mkbuilddir): /bin/sh -e /home/users/builder/tmp/rpm-tmp.9xVo5N
...
Executing(%prep): /bin/sh -e /home/users/builder/tmp/rpm-tmp.MdXTKx
...
0
More information about the pld-devel-en
mailing list