You are not logged in.

#1 2014-06-08 19:12:29

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[stow] perl problem: Possible precedence issue

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

#2 2014-06-08 21:50:49

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,031

Re: [stow] perl problem: Possible precedence issue

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

#3 2014-06-09 07:02:22

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [stow] perl problem: Possible precedence issue

@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

#4 2014-06-09 09:27:05

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,031

Re: [stow] perl problem: Possible precedence issue

orschiro wrote:

@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

#5 2014-06-09 09:56:57

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [stow] perl problem: Possible precedence issue

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

#6 2014-06-10 22:58:39

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: [stow] perl problem: Possible precedence issue

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

Board footer

Powered by FluxBB