diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-17 00:43:03 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-22 01:38:23 -0300 |
commit | db00521fb5fd08d325fe20b9cb54f336f38190b3 (patch) | |
tree | 3e6bb942183e9a11a5c9d0d77b73e7ca1d922068 /pkgs/by-name | |
parent | 8a75a8f4cf0683006e2fb90df7ad6b832c041547 (diff) |
bmake: 20230723 -> 20230909
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/bm/bmake/001-bootstrap-fix.diff (renamed from pkgs/by-name/bm/bmake/bootstrap-fix.patch) | 0 | ||||
-rw-r--r-- | pkgs/by-name/bm/bmake/002-dont-test-while-installing.diff (renamed from pkgs/by-name/bm/bmake/dont-test-while-installing.diff) | 0 | ||||
-rw-r--r-- | pkgs/by-name/bm/bmake/003-fix-unexport-env-test.diff (renamed from pkgs/by-name/bm/bmake/fix-unexport-env-test.patch) | 0 | ||||
-rw-r--r-- | pkgs/by-name/bm/bmake/004-unconditional-ksh-test.diff (renamed from pkgs/by-name/bm/bmake/unconditional-ksh-test.patch) | 0 | ||||
-rw-r--r-- | pkgs/by-name/bm/bmake/package.nix | 24 |
5 files changed, 16 insertions, 8 deletions
diff --git a/pkgs/by-name/bm/bmake/bootstrap-fix.patch b/pkgs/by-name/bm/bmake/001-bootstrap-fix.diff index 9b1267257ad16..9b1267257ad16 100644 --- a/pkgs/by-name/bm/bmake/bootstrap-fix.patch +++ b/pkgs/by-name/bm/bmake/001-bootstrap-fix.diff diff --git a/pkgs/by-name/bm/bmake/dont-test-while-installing.diff b/pkgs/by-name/bm/bmake/002-dont-test-while-installing.diff index ab9399920c242..ab9399920c242 100644 --- a/pkgs/by-name/bm/bmake/dont-test-while-installing.diff +++ b/pkgs/by-name/bm/bmake/002-dont-test-while-installing.diff diff --git a/pkgs/by-name/bm/bmake/fix-unexport-env-test.patch b/pkgs/by-name/bm/bmake/003-fix-unexport-env-test.diff index fbf7225a6d6f2..fbf7225a6d6f2 100644 --- a/pkgs/by-name/bm/bmake/fix-unexport-env-test.patch +++ b/pkgs/by-name/bm/bmake/003-fix-unexport-env-test.diff diff --git a/pkgs/by-name/bm/bmake/unconditional-ksh-test.patch b/pkgs/by-name/bm/bmake/004-unconditional-ksh-test.diff index 117b85da16d1d..117b85da16d1d 100644 --- a/pkgs/by-name/bm/bmake/unconditional-ksh-test.patch +++ b/pkgs/by-name/bm/bmake/004-unconditional-ksh-test.diff diff --git a/pkgs/by-name/bm/bmake/package.nix b/pkgs/by-name/bm/bmake/package.nix index 4373e534bc58f..087fb339f3297 100644 --- a/pkgs/by-name/bm/bmake/package.nix +++ b/pkgs/by-name/bm/bmake/package.nix @@ -4,28 +4,29 @@ , fetchpatch , getopt , ksh +, bc , tzdata , pkgsMusl # for passthru.tests }: stdenv.mkDerivation (finalAttrs: { pname = "bmake"; - version = "20230723"; + version = "20230909"; src = fetchurl { url = "http://www.crufty.net/ftp/pub/sjg/bmake-${finalAttrs.version}.tar.gz"; - hash = "sha256-xCoNlRuiP3ZlMxMJ+74h7cARNqI8uUFoULQxW+X7WQQ="; + hash = "sha256-Hl5sdlQN/oEEQmzX/T9xXMZAT5A5ySA0RwErjy9re4Y="; }; patches = [ # make bootstrap script aware of the prefix in /nix/store - ./bootstrap-fix.patch + ./001-bootstrap-fix.diff + # decouple tests from build phase + ./002-dont-test-while-installing.diff # preserve PATH from build env in unit tests - ./fix-unexport-env-test.patch + ./003-fix-unexport-env-test.diff # Always enable ksh test since it checks in a impure location /bin/ksh - ./unconditional-ksh-test.patch - # decouple tests from build phase - ./dont-test-while-installing.diff + ./004-unconditional-ksh-test.diff ]; # Make tests work with musl @@ -68,18 +69,22 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; nativeCheckInputs = [ + bc tzdata ] ++ lib.optionals (stdenv.hostPlatform.libc != "musl") [ ksh ]; # Disabled tests: + # directive-export{,-gmake}: another failure related to TZ variables # opt-chdir: ofborg complains about it somehow # opt-keep-going-indirect: not yet known # varmod-localtime: musl doesn't support TZDIR and this test relies on impure, # implicit paths env.BROKEN_TESTS = builtins.concatStringsSep " " [ - "opt-chdir" + "directive-export" + "directive-export-gmake" + "opt-chdir" # works on my machine -- AndersonTorres "opt-keep-going-indirect" "varmod-localtime" ]; @@ -92,6 +97,8 @@ stdenv.mkDerivation (finalAttrs: { runHook postCheck ''; + strictDeps = true; + setupHook = ./setup-hook.sh; passthru.tests.bmakeMusl = pkgsMusl.bmake; @@ -100,6 +107,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "http://www.crufty.net/help/sjg/bmake.html"; description = "Portable version of NetBSD 'make'"; license = lib.licenses.bsd3; + mainProgram = "bmake"; maintainers = with lib.maintainers; [ thoughtpolice AndersonTorres ]; platforms = lib.platforms.unix; broken = stdenv.isAarch64; # failure on gnulib-tests |