summary refs log tree commit diff
path: root/pkgs/tools/system/socklog
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2017-05-11 20:34:34 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2017-05-18 12:33:32 +0200
commitd438cbb0b6989491d9793469a8ca8d994679c13e (patch)
tree32da9b68fc3d427fcd06ff361f622f305d1b78f7 /pkgs/tools/system/socklog
parent8ae6797c0e8a1b9c1ad741b13ce2e988578a195f (diff)
downloadnixlib-d438cbb0b6989491d9793469a8ca8d994679c13e.tar
nixlib-d438cbb0b6989491d9793469a8ca8d994679c13e.tar.gz
nixlib-d438cbb0b6989491d9793469a8ca8d994679c13e.tar.bz2
nixlib-d438cbb0b6989491d9793469a8ca8d994679c13e.tar.lz
nixlib-d438cbb0b6989491d9793469a8ca8d994679c13e.tar.xz
nixlib-d438cbb0b6989491d9793469a8ca8d994679c13e.tar.zst
nixlib-d438cbb0b6989491d9793469a8ca8d994679c13e.zip
socklog: disable shsgr test
Running the chkhsgr test on Hydra fails with
```
./chkshsgr || ( cat warn-shsgr; exit 1 )
Oops. Your getgroups() returned 0, and setgroups() failed; this means
that I can't reliably do my shsgr test. Please either ``make'' as root
or ``make'' while you're in one or more supplementary groups.
```

We just assume that our supported platforms have working
getgroups()/setgroups().
Diffstat (limited to 'pkgs/tools/system/socklog')
-rw-r--r--pkgs/tools/system/socklog/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/system/socklog/default.nix b/pkgs/tools/system/socklog/default.nix
index e0adad4eff85..0b893bfe0dc3 100644
--- a/pkgs/tools/system/socklog/default.nix
+++ b/pkgs/tools/system/socklog/default.nix
@@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
 
   outputs = [ "out" "man" "doc" ];
 
+  postPatch = ''
+    sed -i src/TARGETS -e '/^chkshsgr/d'
+  '';
+
   configurePhase = ''
     echo "$NIX_CC/bin/cc $NIX_CFLAGS_COMPILE"   >src/conf-cc
     echo "$NIX_CC/bin/cc -s"                    >src/conf-ld