Bug 1227622

Summary: stow warning after latest upgrade
Product: [openSUSE] openSUSE Tumbleweed Reporter: Peter Sütterlin <P.Suetterlin>
Component: OtherAssignee: Wolfgang Frisch <wolfgang.frisch>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: suse, wolfgang.frisch
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Peter Sütterlin 2024-07-10 11:44:15 UTC
I just upgraded my Tumbleweed to 20240708.
Since this update (which updated several perl packages) usage of stow gives a warning:

woodstock:/usr/local/stow # stow redux-20240710/
Possible precedence issue with control flow operator (exit) at /usr/bin/stow line 839, <DATA> line 23.

operation is not affected, stow seems to work normally.
Comment 1 Wolfgang Frisch 2024-07-11 08:09:40 UTC
Thanks for the report!

The reason for this warning is Perl 5.40.0, which extended the scope of the precedence warning to include ternary operators:
https://perldoc.perl.org/5.40.0/perldelta

Pull request and temporary patch for openSUSE:
https://github.com/aspiers/stow/pull/113
https://build.opensuse.org/request/show/1186782
Comment 2 Adam Spiers 2024-07-13 16:09:58 UTC
Thanks a lot for the PR and temporary patch!  This is merged and will be in the next release when I get time for that.  I'm just back from holiday so have a lot to catch up first 😱