stow: patch that removes warning for 2.2.0, closes #8513
commit62921384e059fcfb09755e4e98442c99a10f8d90
authorProfpatsch <mail@profpatsch.de>
dateFri 26 Jun 2015, 04:28 (11 years ago)
parent8c4fcc8
pkgs/tools/misc/stow/default.nix+2
@@ -10,6 +10,8 @@ stdenv.mkDerivation {
1010
1111 buildInputs = [ perl perlPackages.TestOutput ];
1212
13+ patches = [ ./precedence-issue.patch ];
14+
1315 doCheck = true;
1416
1517 meta = {
pkgs/tools/misc/stow/precedence-issue.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git a/lib/Stow.pm.in b/lib/Stow.pm.in
2+index 101a422..f80b1ac 100755
3+--- a/lib/Stow.pm.in
4++++ b/lib/Stow.pm.in
5+@@ -1732,8 +1732,8 @@ sub read_a_link {
6+ }
7+ elsif (-l $path) {
8+ debug(4, " read_a_link($path): real link");
9+- return readlink $path
10+- or error("Could not read link: $path");
11++ my $target = readlink $path or error("Could not read link: $path ($!)");
12++ return $target;
13+ }
14+ internal_error("read_a_link() passed a non link path: $path\n");
15+ }