You are not logged in.
Hi there,
It came with the last perl update that I am no longer able to run stow.
I already reinstalled the package but it still fails with the following error:
Possible precedence issue with control flow operator at /usr/lib/perl5/vendor_perl/Stow.pm line 1736.
Does someone know how to fix this issue?
Thank you!
Offline
It looks like it's just a warning that doesn't actually affect how it runs. Anyway, I know almost nothing about Perl, but this patch silences the warning:
diff -x config.log -x config.status -ru lib/Stow.pm.in lib/Stow.pm.in
--- lib/Stow.pm.in 2012-02-18 20:33:34.000000000 +0000
+++ lib/Stow.pm.in 2014-06-08 22:46:03.420893651 +0100
@@ -1732,7 +1732,7 @@
}
elsif (-l $path) {
debug(4, " read_a_link($path): real link");
- return readlink $path
+ (return readlink $path)
or error("Could not read link: $path");
}
internal_error("read_a_link() passed a non link path: $path\n");
Last edited by jakobcreutzfeldt (2014-06-09 09:27:20)
Offline
@jakobcreutzfeldt
Thanks for the patch! You were right by the way. The stow command is acutally run successfully and not affected by the error message.
Should I post an Arch bug report with your suggested patch?
Offline
@jakobcreutzfeldt
Thanks for the patch! You were right by the way. The stow command is acutally run successfully and not affected by the error message.
Should I post an Arch bug report with your suggested patch?
Yes. You should probably also send a report to bug-stow@gnu.org.
Offline
I created the Arch bug report: https://bugs.archlinux.org/task/40767
I will wait for feedback there first before I will bother upstream.
Thanks again!
Offline
Found this when searching for perl problems. Just so you know, you have effectively turned off error reporting. Just kidding! It probably never worked anyways. Nothing after the or will ever be called, because return halts the execution (return has higher precedence). I think they meant something like this:
my $dest = readlink $path or error("readlink: $path: $!");
return $dest;
Offline