[devtools-alarm]Invalid signatures building armv7 then armv6

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[devtools-alarm]Invalid signatures building armv7 then armv6

Postby graysky » Wed Jan 16, 2019 9:19 pm

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!
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [devtools-alarm]Invalid signatures building armv7 then a

Postby graysky » Thu Jan 17, 2019 8:36 pm

Thanks to Kevin Mihelich for pointing out I was missing the -c switch (pkg cache definition).

For armv7h:
$this->bbcode_second_pass_code('', '
CACHEDIR=/var/cache/pacman/pkg
NUMBER=7

# mkarchroot -c $CACHEDIR /scratch/armc$NUMBER/root base-devel distcc
% MAKEFLAGS=-j10 makechrootpkg -C $CACHEDIR -r /scratch/armc$NUMBER
')

For armv6h:
$this->bbcode_second_pass_code('', '
sed -e '/Architecture =/ s,7h,6h,' /etc/pacman.conf > /tmp/pac6.conf
PACMANCONF=/tmp/pac6.conf
CACHEDIR=/var/cache/pacman/pkg6
NUMBER=6

# mkarchroot -C $PACMANCONF -c $CACHEDIR /scratch/armc$NUMBER/root base-devel distcc
% MAKEFLAGS=-j10 makechrootpkg -C $CACHEDIR -r /scratch/armc$NUMBER
')

If anyone else has an interest, here is a helper script I wrote that setups up clean chroots with distccd-alarm: https://github.com/graysky2/bin/blob/master/arm-build
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 14 guests