From a31e5d40b0b25dbd80dfa3f3e1f02db61c0c64e9 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Tue, 12 Aug 2025 13:56:52 -0700 Subject: [PATCH] systemd/qemu-binfmt: new aport This could be folded into aports/qemu.. but I'm not sure if they'd accept it since the path these install to seems(?) to be systemd-specific? Once there's -systemd split pkg support in abuild, then maybe it'll make sense to move this to aports. fixes #3394 Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6950 [ci:skip-build]: already built successfully in CI --- extra-repos/systemd/qemu-binfmt/APKBUILD | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 extra-repos/systemd/qemu-binfmt/APKBUILD diff --git a/extra-repos/systemd/qemu-binfmt/APKBUILD b/extra-repos/systemd/qemu-binfmt/APKBUILD new file mode 100644 index 000000000..fc9c1fff5 --- /dev/null +++ b/extra-repos/systemd/qemu-binfmt/APKBUILD @@ -0,0 +1,25 @@ +# NOTE: Waiting to upstream to aports until abuild gets -systemd subpkg support +pkgname=qemu-binfmt +pkgver=10.0.2 +pkgrel=0 +pkgdesc="QEMU binfmt configuration for user mode emulation" +arch="all" +url="https://www.qemu.org/" +license="GPL-3.0-or-later" +makedepends="python3" +source="https://download.qemu.org/qemu-$pkgver.tar.xz" +options="!check" # no tests +builddir="$srcdir/qemu-$pkgver" + +package() { + mkdir -p "$pkgdir"/usr/lib/binfmt.d + scripts/qemu-binfmt-conf.sh \ + --systemd ALL \ + --exportdir "$pkgdir"/usr/lib/binfmt.d \ + --qemu-path /usr/bin \ + --persistent yes \ + --preserve-argv0 yes +} +sha512sums=" +7fda582c3845ea663aa5eda21bb38ebcfb6c25bccf8944ea6cdf8b5be6946b5a874b36674a7f5db3e325abb9cca0dd9bc0727837fdceb71a8c947d96169a9b20 qemu-10.0.2.tar.xz +"