From baac3a7257469b54ebc0812d274f9f8bb787bf18 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Mon, 31 Aug 2026 13:23:37 -0700 Subject: [PATCH] main/postmarketos-base: add debuginfod url to profile.d The libdebuginfod package ships a profile.d script that reads /etc/debuginfod/*.urls files, but that mechanism doesn't work on Duranium because users can install gdb via coldbrew and coldbrew's bubblewrap sandbox doesn't bind-mount the host's /etc so any .urls file on the host is invisible inside the sandbox. I considered addign this to the dev-tools sysext, but coldbrew is always installed and making users install a sysext just to set a variable when they're already able to install gdb via coldbrew didn't seem like great UX Setting the environment variable via a profile.d script works for both mutable pmOS and Duranium since the host's login shell sources it, and coldbrew inherits the host's environment. I considered using a .urls file for mutable pmOS but that would require adding a subpkg with an `install_if=libdebuginfod` AND a profile.d thing like this for duranium, so just adding a single profile.d file for both seemed a lot simpler even if it's ignoring libdebuginfod's existing profile.d mechanism. Signed-off-by: Clayton Craft Part-of: --- main/postmarketos-base/APKBUILD | 4 +++- main/postmarketos-base/rootfs-etc-profile.d-00-debuginfod.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 main/postmarketos-base/rootfs-etc-profile.d-00-debuginfod.sh diff --git a/main/postmarketos-base/APKBUILD b/main/postmarketos-base/APKBUILD index b28664569..24943a1ca 100644 --- a/main/postmarketos-base/APKBUILD +++ b/main/postmarketos-base/APKBUILD @@ -1,7 +1,7 @@ # Co-Maintainer: Achill Gilgenast maintainer="Clayton Craft " pkgname=postmarketos-base -pkgver=67 +pkgver=68 pkgrel=0 pkgdesc="Meta package for minimal postmarketOS base" url="https://postmarketos.org" @@ -67,6 +67,7 @@ _source644=" etc/fstab etc/issue etc/motd + etc/profile.d/00-debuginfod.sh usr/lib/apk/config usr/lib/os-release usr/lib/kernel-cmdline.d/00-base.conf @@ -296,6 +297,7 @@ a96d556cafbb9b94be61a223f6c9174dfc909a432f7bd7899a655b9483f526a713e7e9d89407b545 9b8d0493bb64457fe176fea801e0771d3c5279302c61559824bf81b3d2b66d2c1e076f4aaac65f55389005acb18c27e44bed858c2bdbad37d74199f07c86c354 rootfs-etc-fstab 45bd0742a64a9d3c4a88e152b97edcf3fa1edca28884f9ea69e7c4c365f1e41ef9056dbe204545de7d4b2ba92e1e5872b2a929c2dcc1dd468e627cc3f090b8e6 rootfs-etc-issue 01403df3b5a2be0dd70387a3c32cf24a77bc097679fbefca585082a0970b7d756723c33687be3809351b5e31c85947db84861118bfeced8f5f865fe2452555ec rootfs-etc-motd +af1083e5c37f2f0d4db8cc2192b3f7cadfa1f539739e0697f357ead4c395fb43d4b1a681ee842e8272e2da8dfad055c8439196fba0db3df83b22637a478f2046 rootfs-etc-profile.d-00-debuginfod.sh 224d58717f7f95851c91914753f4aefaf8964a2e62350ed898783c295c509cdadd85c325ee00baceb21ff2763ca2f4c7b1478a5638eb7d86836f91336b739376 rootfs-usr-lib-apk-config 6593a61cb4cbb5d557bdd0f98ce09bf91a6e076cfe0023fe3f495e17044c8d586708328a0fae52b58b3ff008a347b1f63a222a2a4d4f3f4d95777531f8a5c1a8 rootfs-usr-lib-os-release 2c251920d837bfef95f1ba5f768cd5365d2efce9f1b6454ceed574a16e04d29b7c8e866a9e811abd4699ce57c73962421a1859799f76c24c157b87b21f9039f3 rootfs-usr-lib-kernel-cmdline.d-00-base.conf diff --git a/main/postmarketos-base/rootfs-etc-profile.d-00-debuginfod.sh b/main/postmarketos-base/rootfs-etc-profile.d-00-debuginfod.sh new file mode 100644 index 000000000..6acdc7415 --- /dev/null +++ b/main/postmarketos-base/rootfs-etc-profile.d-00-debuginfod.sh @@ -0,0 +1 @@ +DEBUGINFOD_URLS="https://debuginfod.postmarketos.org"