I build in a clean-chroot with the scripts provided by devtools-alarm on a RPi3B+ running armv7h. My goal is to build both armv7h and armv6h via the clean-chroot and noticed that when I build for armv7h and then switch to building armv6h (or vice versa), the "any" packages fail the signature check and am wondering how I can avoid that.
I am building armv7h like this:
$this->bbcode_second_pass_code('', '# mkarchroot /scratch/armv7/root base-devel
% MAKEFLAGS=-j10 makechrootpkg -r /scratch/armc7')
When I switch to building armv6h:
$this->bbcode_second_pass_code('', '% sed -e '/Architecture =/ s,7h,6h,' /etc/pacman.conf > /tmp/pac6.conf
# mkarchroot -C /tmp/pac6.conf -c /var/cache/pacman/pkg6 /scratch/armv6/root base-devel
% MAKEFLAGS=-j10 makechrootpkg -r /scratch/armc6')
Example error I receive after building armv7h when I attempt to build armv6h:
$this->bbcode_second_pass_code('', '...
(131/131) checking keys in keyring [############################################] 100%
(131/131) checking package integrity [############################################] 100%
error: hicolor-icon-theme: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is invalid
:: File /var/cache/pacman/pkg/hicolor-icon-theme-0.17-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature
)).
Do you want to delete it? [Y/n]
error: java-runtime-common: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is invalid
:: File /var/cache/pacman/pkg/java-runtime-common-3-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature))
.
Do you want to delete it? [Y/n]
error: java-environment-common: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is invalid
:: File /var/cache/pacman/pkg/java-environment-common-3-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signatu
re)).
Do you want to delete it? [Y/n]
...')
Note that if I try a 2nd time to build for armv6h after seeing the errors, it works fine. Thanks!