bmake: 20230723 -> 20230909

pkgs/by-name/bm/bmake/bootstrap-fix.patch pkgs/by-name/bm/bmake/001-bootstrap-fix.diff
pkgs/by-name/bm/bmake/dont-test-while-installing.diff pkgs/by-name/bm/bmake/002-dont-test-while-installing.diff
pkgs/by-name/bm/bmake/fix-unexport-env-test.patch pkgs/by-name/bm/bmake/003-fix-unexport-env-test.diff
+16 -8
pkgs/by-name/bm/bmake/package.nix
···
, fetchpatch
, getopt
, ksh
, tzdata
, pkgsMusl # for passthru.tests
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bmake";
-
version = "20230723";
src = fetchurl {
url = "http://www.crufty.net/ftp/pub/sjg/bmake-${finalAttrs.version}.tar.gz";
-
hash = "sha256-xCoNlRuiP3ZlMxMJ+74h7cARNqI8uUFoULQxW+X7WQQ=";
};
patches = [
# make bootstrap script aware of the prefix in /nix/store
-
./bootstrap-fix.patch
# preserve PATH from build env in unit tests
-
./fix-unexport-env-test.patch
# 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
];
# Make tests work with musl
···
doCheck = true;
nativeCheckInputs = [
tzdata
] ++ lib.optionals (stdenv.hostPlatform.libc != "musl") [
ksh
];
# Disabled tests:
# 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"
"opt-keep-going-indirect"
"varmod-localtime"
];
···
runHook postCheck
'';
setupHook = ./setup-hook.sh;
passthru.tests.bmakeMusl = pkgsMusl.bmake;
···
homepage = "http://www.crufty.net/help/sjg/bmake.html";
description = "Portable version of NetBSD 'make'";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ thoughtpolice AndersonTorres ];
platforms = lib.platforms.unix;
broken = stdenv.isAarch64; # failure on gnulib-tests
···
, fetchpatch
, getopt
, ksh
+
, bc
, tzdata
, pkgsMusl # for passthru.tests
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bmake";
+
version = "20230909";
src = fetchurl {
url = "http://www.crufty.net/ftp/pub/sjg/bmake-${finalAttrs.version}.tar.gz";
+
hash = "sha256-Hl5sdlQN/oEEQmzX/T9xXMZAT5A5ySA0RwErjy9re4Y=";
};
patches = [
# make bootstrap script aware of the prefix in /nix/store
+
./001-bootstrap-fix.diff
+
# decouple tests from build phase
+
./002-dont-test-while-installing.diff
# preserve PATH from build env in unit tests
+
./003-fix-unexport-env-test.diff
# Always enable ksh test since it checks in a impure location /bin/ksh
+
./004-unconditional-ksh-test.diff
];
# Make tests work with musl
···
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 " " [
+
"directive-export"
+
"directive-export-gmake"
+
"opt-chdir" # works on my machine -- AndersonTorres
"opt-keep-going-indirect"
"varmod-localtime"
];
···
runHook postCheck
'';
+
strictDeps = true;
+
setupHook = ./setup-hook.sh;
passthru.tests.bmakeMusl = pkgsMusl.bmake;
···
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
pkgs/by-name/bm/bmake/unconditional-ksh-test.patch pkgs/by-name/bm/bmake/004-unconditional-ksh-test.diff