Skip to content

Commit 1f831f0

Browse files
Merge pull request #116241 from SuperSandro2000/coreutils-sandbox
2 parents eb5c8e5 + c5c951d commit 1f831f0

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

pkgs/tools/misc/coreutils/default.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ stdenv.mkDerivation (rec {
6868
for f in gnulib-tests/{test-chown.c,test-fchownat.c,test-lchown.c}; do
6969
echo "int main() { return 77; }" > "$f"
7070
done
71+
72+
# tests try to access user 1000 which is forbidden in sandbox
73+
sed '2i print "Skipping id uid test"; exit 77' -i ./tests/id/uid.sh
74+
sed '2i print "Skipping id zero test"; exit 77' -i ./tests/id/zero.sh
75+
sed '2i print "Skipping misc help-versiob test"; exit 77' -i ./tests/misc/help-version.sh
76+
sed '2i print "Skipping chown separator test"; exit 77' -i ./tests/chown/separator.sh
7177
'' + optionalString (stdenv.hostPlatform.libc == "musl") (lib.concatStringsSep "\n" [
7278
''
7379
echo "int main() { return 77; }" > gnulib-tests/test-parse-datetime.c
@@ -136,20 +142,15 @@ stdenv.mkDerivation (rec {
136142
meta = {
137143
homepage = "https://www.gnu.org/software/coreutils/";
138144
description = "The basic file, shell and text manipulation utilities of the GNU operating system";
139-
140145
longDescription = ''
141146
The GNU Core Utilities are the basic file, shell and text
142147
manipulation utilities of the GNU operating system. These are
143148
the core utilities which are expected to exist on every
144149
operating system.
145150
'';
146-
147151
license = licenses.gpl3Plus;
148-
149152
platforms = platforms.unix ++ platforms.windows;
150-
151153
priority = 10;
152-
153154
maintainers = [ maintainers.eelco ];
154155
};
155156
} // optionalAttrs stdenv.hostPlatform.isMusl {

0 commit comments

Comments
 (0)