apk build fails and unsigned APKINDEX.tar.gz file
Created by: beckerichmika
I'm experiencing issues at a specific part of the build:
[14:57:15] *** (2/5) CREATE DEVICE ROOTFS (lge-d855) *** [14:57:15] (native) install qemu-user-static-repack qemu-user-static-repack-binfmt [sudo] Passwort für mika: [14:57:19] ERROR: Command failed: (native) % apk --no-progress add qemu-user-static-repack qemu-user-static-repack-binfmt [14:57:19] Run 'pmbootstrap log' for details.
In pmbootstrap log I found some errors:
(007850) [14:58:56] (native) install qemu-user-static-repack qemu-user-static-repack-binfmt (007850) [14:58:56] (native) % apk --no-progress add qemu-user-static-repack qemu-user-static-repack-binfmt WARNING: Ignoring /home/user/packages/user/x86_64/APKINDEX.tar.gz: UNTRUSTED signature ERROR: unsatisfiable constraints: qemu-user-static-repack (missing): required by: world[qemu-user-static-repack] qemu-user-static-repack-binfmt (missing): required by: world[qemu-user-static-repack-binfmt] (007850) [14:58:57] ERROR: Command failed: (native) % apk --no-progress add qemu-user-static-repack qemu-user-static-repack-binfmt (007850) [14:58:57] Run 'pmbootstrap log' for details.
I searched for a solution to sign the APKINDEX.tar.gz file so I started the chroot and followed this tutorial under "Testing the unsigned repository": https://engineering.fundingcircle.com/blog/2015/04/28/create-alpine-linux-repository/ . This resolved the issue, but it needs to be fixed in the script.