[3.0.0_alpha] building device packages with several kernel flavours no longer seem to work
Some devices, like for example samsung-klimtlte, can be built with both a downstream kernel, and a mainline kernel. Trying to build device-samsung-klimtlte does not work with pmbootstrap master branch, I get:
$ pmbootstrap build --force device-samsung-klimtlte
[22:10:40] WARNING: about to install linux-postmarketos-exynos5 6.10_p20240719164752-r0 (local pmaports: 6.10-r0, consider 'pmbootstrap pull')
[22:10:40] Building 1 package
[22:10:40] * edge/device-samsung-klimtlte
[22:10:40] => edge/device-samsung-klimtlte: Installing dependencies
[22:10:40] Initializing armv7 buildroot
[22:10:41] (native) Creating chroot
[22:10:43] (native) install qemu-arm
[22:10:43] Register qemu binfmt (arm)
[22:10:44] (buildroot_armv7) Creating chroot
[22:10:46] (buildroot_armv7) install abuild apk-tools build-base ccache git
[22:10:51] (native) install ccache-cross-symlinks abuild gcc-armv7 g++-armv7 crossdirect
[22:10:53] (buildroot_armv7) install devicepkg-dev firmware-samsung-klimt-downstream>=3.0-r0 firmware-samsung-klimt-mainline>=3.0-r0 linux-postmarketos-exynos5 linux-samsung-klimtlte mkbootimg msm-fb-refresher postmarketos-base postmarketos-base-downstream
[22:10:59] NOTE: The failed command's output is above the ^^^ line in the log file: /home/grimler/.local/var/pmbootstrap/log.txt
[22:10:59] ERROR: Command failed (exit code 1): apk --repository /mnt/pmbootstrap/packages/edge add devicepkg-dev firmware-samsung-klimt-downstream>=3.0-r0 firmware-samsung-klimt-mainline>=3.0-r0 linux-postmarketos-exynos5 linux-samsung-klimtlte mkbootimg msm-fb-refresher postmarketos-base postmarketos-base-downstream --no-interactive
[22:10:59] See also: <https://postmarketos.org/troubleshooting>
where error in log is:
(10/129) Installing linux-samsung-klimtlte (3.4.113-r3)
ERROR: linux-samsung-klimtlte-3.4.113-r3: trying to overwrite boot/vmlinuz owned by linux-postmarketos-exynos5-6.10_p20240719164752-r0.
due to it trying to install linux-postmarketos-exynos5
and linux-samsung-klimtlte
at the same time.
For comparison, with pmbootstrap 2.3.1 I get:
$ pmbootstrap build --force device-samsung-klimtlte
[22:13:19] Update package index for x86_64 (4 file(s))
[22:13:20] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-static-2.14.4-r2.apk
[22:13:20] (native) install alpine-base
[22:13:23] (native) install qemu-arm
[22:13:24] Register qemu binfmt (arm)
[22:13:24] (buildroot_armv7) install alpine-base
[22:13:29] (buildroot_armv7) install abuild
[22:13:32] (buildroot_armv7) install abuild build-base ccache git
[22:13:37] (buildroot_armv7) install devicepkg-dev mkbootimg postmarketos-base
[22:13:43] (native) install ccache-cross-symlinks abuild gcc-armv7 g++-armv7 crossdirect
[22:13:45] (buildroot_armv7) build armv7/device-samsung-klimtlte-2-r0.apk
[22:14:00] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[22:14:00] DONE!