Merge pull request #206082 from wizeman/u/fix-polkit

polkit: only fix mocklibc when doing tests
This commit is contained in:
Jörg Thalheim 2022-12-14 21:04:00 +00:00 committed by GitHub
commit e4bda4c56e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ stdenv.mkDerivation rec {
--replace /bin/false ${coreutils}/bin/false
'';
postConfigure = lib.optionalString (!stdenv.hostPlatform.isMusl) ''
postConfigure = lib.optionalString doCheck ''
# Unpacked by meson
chmod +x subprojects/mocklibc-1.0/bin/mocklibc
patchShebangs subprojects/mocklibc-1.0/bin/mocklibc