From 4a0c3182d67258718179509684dd68d987f3ab3c Mon Sep 17 00:00:00 2001 From: Aster Boese Date: Mon, 3 Aug 2026 18:39:03 +0200 Subject: [PATCH] temp/libx86emu-dummy: new aport libx86emu only exists on x86 and x86_64. Because of this, the hwinfo APKBUILD has to use conditional dependencies to install it when it is available. pmbootstrap doesn't have support for this logic currently, so creating a dummy, empty package for arches that doesn't have it works. Signed-off-by: Aster Boese Part-of: --- temp/libx86emu-dummy/APKBUILD | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 temp/libx86emu-dummy/APKBUILD diff --git a/temp/libx86emu-dummy/APKBUILD b/temp/libx86emu-dummy/APKBUILD new file mode 100644 index 000000000..24749aee3 --- /dev/null +++ b/temp/libx86emu-dummy/APKBUILD @@ -0,0 +1,19 @@ +# Temp: Workaround for pmbootstrap not supporting conditional dependencies +maintainer="Aster Boese " +pkgname=libx86emu-dummy +pkgver=1 +pkgrel=0 +pkgdesc="Dummy package for libx86emu for arches that it doesn't support" +url="https://postmarketos.org" +# This is only needed for arches where the package doesn't exist +arch="all !x86 !x86_64" +license="MIT" +# Has to be versioned or else apk-tools will error stating that virtual +# packages with only one provider should be directly depended upon +provides="libx86emu=$pkgver-r$pkgrel libx86emu-dev=$pkgver-r$pkgrel" +# check: no tests +options="!check" + +package() { + mkdir -p "$pkgdir" +}