diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2024-04-25 15:12:22 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 15:12:22 -0300 |
commit | db1d084a0a36b2c3433a1683fbdae2c149e4d9bc (patch) | |
tree | 18b7688eb61151b4cfba7d851e2a123727297263 /pkgs/tools | |
parent | 89476df30ef919c25e9f495adbacb5b04a1b31b6 (diff) | |
parent | 470a0888fc2648d6d0103143eddbedbbc6275d46 (diff) |
Merge pull request #306723 from alyssais/patchutils-musl
pkgsMusl.patchutils_0_4_2: fix build
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/patchutils/0.4.2.nix | 1 | ||||
-rw-r--r-- | pkgs/tools/text/patchutils/Revert-Fix-grepdiff-test.patch | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/text/patchutils/0.4.2.nix b/pkgs/tools/text/patchutils/0.4.2.nix index 1b2c0d6b1f3ec..d3d26c11481d6 100644 --- a/pkgs/tools/text/patchutils/0.4.2.nix +++ b/pkgs/tools/text/patchutils/0.4.2.nix @@ -5,4 +5,5 @@ callPackage ./generic.nix (args // { sha256 = "sha256-iHWwll/jPeYriQ9s15O+f6/kGk5VLtv2QfH+1eu/Re0="; # for gitdiff extraBuildInputs = [ python3 ]; + patches = [ ./Revert-Fix-grepdiff-test.patch ]; }) diff --git a/pkgs/tools/text/patchutils/Revert-Fix-grepdiff-test.patch b/pkgs/tools/text/patchutils/Revert-Fix-grepdiff-test.patch new file mode 100644 index 0000000000000..434378a219ac4 --- /dev/null +++ b/pkgs/tools/text/patchutils/Revert-Fix-grepdiff-test.patch @@ -0,0 +1,38 @@ +From 13672e53371ea9593130bdca178f3b8b2e174032 Mon Sep 17 00:00:00 2001 +From: Alyssa Ross <hi@alyssa.is> +Date: Thu, 25 Apr 2024 09:10:54 +0200 +Subject: [PATCH] Revert "Fix grepdiff test" +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This reverts commit a6538753a51db973a05c9034ed78f2dd946453db. + +There's no need for an escape here, because POSIX regexes don't treat +'+' specially if it's at the start of the experssion. musl rejects +the version with the backslash. + +I'm still not clear why this change was made in the first place, but +reverting it seems to make the test pass on both glibc and musl… + +Link: https://github.com/twaugh/patchutils/issues/61 +--- + tests/grepdiff1/run-test | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/grepdiff1/run-test b/tests/grepdiff1/run-test +index c4311f8..c3cebdd 100755 +--- a/tests/grepdiff1/run-test ++++ b/tests/grepdiff1/run-test +@@ -20,7 +20,7 @@ cat << EOF > diff + +b + EOF + +-${GREPDIFF} '\+a' diff 2>errors >index || exit 1 ++${GREPDIFF} '+a' diff 2>errors >index || exit 1 + [ -s errors ] && exit 1 + + cat << EOF | cmp - index || exit 1 +-- +2.44.0 + |