Skip to content

Commit

Permalink
atf: 0.21-unstable-2021-09-01 -> 0.22-unstable-2024-12-26
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Dec 26, 2024
1 parent df26fe7 commit a46cdac
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions pkgs/by-name/at/atf/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,17 @@

stdenv.mkDerivation (finalAttrs: {
pname = "atf";
version = "0.21-unstable-2021-09-01"; # Match the commit used in FreeBSD’s port.
version = "0.22-unstable-2024-12-26";

src = fetchFromGitHub {
owner = "freebsd";
repo = "atf";
rev = "55c21b2c5fb189bbdfccb2b297bfa89236502542";
hash = "sha256-u0YBPcoIBvqBVaytaO9feBaRnQygtzEPGJV0ItI1Vco=";
rev = "5b223b3593bdc17dc7d5085094104b3d634ba8d9";
hash = "sha256-rgKski1PwQXoOIoHLj/DzOJNG0kuyLXYI7qepzwwubg=";
};

patches = [
# Fixes use after free that causes failures in Kyua’s test suite.
# https://github.com/freebsd/atf/pull/57
# https://github.com/freebsd/kyua/issues/223
(fetchpatch {
name = "fix-use-after-free.patch";
url = "https://github.com/freebsd/atf/commit/fb22f3837bcfdce5ce8b3c0e18af131bb6902a02.patch";
hash = "sha256-p4L3sxSYfMSzwKrUDlEZpoJydbaK3Hcbvn90KlPHkic=";
})
];

postPatch =
lib.optionalString finalAttrs.doInstallCheck ''
# https://github.com/freebsd/atf/issues/61
substituteInPlace atf-c/check_test.c \
--replace-fail 'ATF_TP_ADD_TC(tp, build_cpp)' ""
substituteInPlace atf-c++/check_test.cpp \
--replace-fail 'ATF_ADD_TEST_CASE(tcs, build_cpp);' ""
# Can’t find `c_helpers` in the work folder.
substituteInPlace test-programs/Kyuafile \
--replace-fail 'atf_test_program{name="srcdir_test"}' ""
Expand Down

0 comments on commit a46cdac

Please sign in to comment.