[PATCH] kbuild: pacman-pkg: package unstripped vDSO libraries
From: Thomas Weißschuh
Date: Wed Mar 18 2026 - 16:45:18 EST
The unstripped vDSO files are useful for debugging.
They are provided in the upstream 'linux-headers' package.
Also package them as part of 'make pacman-pkg'.
Make them part of the '-debug' package, as they fit there best.
This differs from the upstream package as that has no '-debug' variant.
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
In my opinion the same would be useful for debian and rpm packages.
Maybe we should have install-extmod-debug, similar to
install-extmod-build, to centralize these.
---
scripts/package/PKGBUILD | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/package/PKGBUILD b/scripts/package/PKGBUILD
index 452374d63c24..b1d0c8a9f030 100644
--- a/scripts/package/PKGBUILD
+++ b/scripts/package/PKGBUILD
@@ -121,6 +121,9 @@ _package-debug(){
install -Dt "${debugdir}" -m644 vmlinux
mkdir -p "${builddir}"
ln -sr "${debugdir}/vmlinux" "${builddir}/vmlinux"
+
+ echo "Installing unstripped vDSO(s)..."
+ ${MAKE} INSTALL_MOD_PATH="${pkgdir}/usr" vdso_install
}
for _p in "${pkgname[@]}"; do
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260318-kbuild-pacman-vdso-install-1a81a947b27a
Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>