summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2021-07-06 10:10:09 +0200
committerVladimír Čunát <v@cunat.cz>2021-07-06 10:10:09 +0200
commitfa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422 (patch)
treeecfe9d71cbcb05d2a5a674201fac3e6d178846ce /pkgs/applications/misc
parentfaaa3bc1314105a3a9957c9b05769fc302acdcf8 (diff)
downloadnixpkgs-fa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422.tar
nixpkgs-fa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422.tar.gz
nixpkgs-fa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422.tar.bz2
nixpkgs-fa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422.tar.lz
nixpkgs-fa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422.tar.xz
nixpkgs-fa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422.tar.zst
nixpkgs-fa9f6c56a8b9340aa9dcf02cdd0026bdb0e61422.zip
makeself: disable tests for now, working around #110149
I couldn't find an easy way to work around this while doing the tests,
so let's disable them for now and work on fixing the sandbox shell
instead (and re-enable tests after that is deployed; I hope).
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/makeself/default.nix6
-rw-r--r--pkgs/applications/misc/makeself/tests-use-better-shell.patch10
2 files changed, 4 insertions, 12 deletions
diff --git a/pkgs/applications/misc/makeself/default.nix b/pkgs/applications/misc/makeself/default.nix
index 353fe661483..12d4f62a783 100644
--- a/pkgs/applications/misc/makeself/default.nix
+++ b/pkgs/applications/misc/makeself/default.nix
@@ -12,10 +12,12 @@ stdenv.mkDerivation rec {
     sha256 = "07cq7q71bv3fwddkp2863ylry2ivds00f8sjy8npjpdbkailxm21";
   };
 
-  patches = [ ./tests-use-better-shell.patch ];
   postPatch = "patchShebangs test";
 
-  doCheck = true;
+  # Issue #110149: our default /bin/sh apparently has 32-bit math only
+  # (attribute busybox-sandbox-shell), and that causes problems
+  # when running these tests inside build, based on free disk space.
+  doCheck = false;
   checkTarget = "test";
   checkInputs = [ which zstd pbzip2 ];
 
diff --git a/pkgs/applications/misc/makeself/tests-use-better-shell.patch b/pkgs/applications/misc/makeself/tests-use-better-shell.patch
deleted file mode 100644
index 159a93622ad..00000000000
--- a/pkgs/applications/misc/makeself/tests-use-better-shell.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-Use full bash's sh in tests instead of /bin/sh, as that would be
-too minimalist in the build sandbox.  See issue:
-https://github.com/NixOS/nixpkgs/issues/110149#issuecomment-874258128
-diff --git a/test/extracttest b/test/extracttest
---- a/test/extracttest
-+++ b/test/extracttest
-@@ -9,2 +9,3 @@ setupTests() {
-   $SUT $* archive makeself-test.run "Test $*" echo Testing
-+  sed "1s|/bin|$(dirname "$SHELL")|" -i ./makeself-test.run
- }