[Backport release-26.05] cockpit: scrub compiler and -dev store paths from runtime closure (#548617)

This commit is contained in:
Gaétan Lepage
2026-08-03 00:04:07 +00:00
committed by GitHub

View File

@@ -35,6 +35,7 @@
pkg-config,
polkit,
python312Packages,
removeReferencesTo,
sscg,
systemd,
udev,
@@ -78,6 +79,7 @@ stdenv.mkDerivation (finalAttrs: {
pam
pkg-config
python3Packages.setuptools
removeReferencesTo
systemd
xmlto
];
@@ -250,9 +252,34 @@ stdenv.mkDerivation (finalAttrs: {
popd
''}
remove-references-to \
-t ${stdenv.cc.cc} \
-t ${lib.getDev stdenv.cc.libc} \
-t ${lib.getDev glib} \
-t ${lib.getDev json-glib} \
-t ${lib.getDev systemd} \
-t ${lib.getDev gnutls} \
-t ${lib.getDev krb5} \
"$out/lib/security/pam_ssh_add.so" \
"$out/libexec/cockpit-certificate-ensure" \
"$out/libexec/cockpit-session" \
"$out/libexec/cockpit-tls" \
"$out/libexec/cockpit-ws" \
"$out/libexec/cockpit-wsinstance-factory"
runHook postFixup
'';
disallowedRequisites = [
stdenv.cc.cc
(lib.getDev stdenv.cc.libc)
(lib.getDev glib)
(lib.getDev json-glib)
(lib.getDev systemd)
(lib.getDev gnutls)
(lib.getDev krb5)
];
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
checkInputs = [