Recent changes to mkimg.arm.sh break Raspberry Pi builds for 3.15 and below
The recent commit 9a782440 made some changes to the Alpine image build process for Raspberry Pi.
In connection with the changes, it seems like the mkimage.arm.sh script was updated:
This changes the image build process for Pi so that it depends on raspberrypi-bootloader-common
as well as raspberrypi-bootloader
, which is all it previously depended on.
This seems to break building a 3.15 image with the following error:
>>> mkimage-aarch64: Building pinewall_rpi
>>> mkimage-aarch64: --> rpi_config 00f7d6efeac72ab6a7b7041c034980957ffa8192
>>> mkimage-aarch64: --> rpi_blobs
gzip: invalid magic
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error is not recoverable: exiting now
From what I assume, the gzip
/tar
error is down to the APK pipe not passing any data to tar
because the raspberrypi-bootloader-common
package doesn't exist outside of the edge
branch of Alpine (yet?).
- Edge: https://pkgs.alpinelinux.org/packages?name=raspberrypi-bootloader-common&branch=edge
- 3.15: https://pkgs.alpinelinux.org/packages?name=raspberrypi-bootloader-common&branch=v3.15
Is there a plan to backport this new package to the older Alpine versions, or (if this is just the strategy for 3.16 onwards) could we maybe amend this function so it's able to work on 3.15 and below again?