Merge #303049: stdenv: avoid setuid issues

...into staging
This commit is contained in:
Vladimír Čunát 2024-04-12 06:37:08 +02:00
commit 993400aeec
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
3 changed files with 2 additions and 7 deletions

View File

@ -61,9 +61,6 @@ stdenv.mkDerivation rec {
doCheck = true;
# https://github.com/NixOS/nixpkgs/issues/300635
postInstall = ''chmod -R u-s,g-s "$out"'';
passthru = {
tests = {
incus-legacy-init = nixosTests.incus.container-legacy-init;

View File

@ -1421,7 +1421,8 @@ fixupPhase() {
# Make sure everything is writable so "strip" et al. work.
local output
for output in $(getAllOutputNames); do
if [ -e "${!output}" ]; then chmod -R u+w "${!output}"; fi
# for set*id bits see #300635
if [ -e "${!output}" ]; then chmod -R u+w,u-s,g-s "${!output}"; fi
done
runHook preFixup

View File

@ -33,9 +33,6 @@ stdenv.mkDerivation rec {
"-Ddbpath=locatedb"
];
# https://github.com/NixOS/nixpkgs/issues/300635
postInstall = ''chmod -R u-s,g-s "$out"'';
meta = with lib; {
description = "Much faster locate";
homepage = "https://plocate.sesse.net/";