Skip to content

Fix: package gets rebuilt, even if it exists, when using default arch

postmarketOS Bot requested to merge fix/build-is-necessary-default-arch into master

Created by: ollieparanoid

When not specifying an architecture for pmbootstrap build, and the APKBUILD says that it can't be built for the native arch, it gets built for the right foreign arch. pmbootstrap did not properly detect if packages were already built in that case, and tried to build them again.

(I've noticed that while building packages for the binary repo #871 (closed).)

How to test

Use any linux- package, that is not available for x86_64 on a x86_64 PC and build it twice. It should get properly detected now:

pmbootstrap build linux-amazon-thor
pmbootstrap build linux-amazon-thor # should not get built again

Merge request reports