Description of problem: In a up-to-date Mageia 7, run ranger and the result is the following: $ uname -a Linux marte 5.10.14-desktop-1.mga7 #1 SMP Sun Feb 7 19:36:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux $ ranger Unknown option: - usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. $ head -n 1 $(which ranger) #!/usr/bin/python3 -s -O Removing the one or both parameters (-s -O) from /usr/bin/ranger solves the issue but both parameters seem valid (at least, according to "python3 -h") so I don't actually understand what is the cause. System: Mageia 7, x86_64, Intel CPU. Version-Release number of selected component (if applicable): $ rpm -q ranger ranger-1.9.2-2.mga7 How reproducible: Always. Steps to Reproduce: 1. Installed ranger in a Mageia 7 up-to-date system. 2. Run ranger. 3. See "Unknown option: - " message.
Confirmed. $ ranger Unknown option: - usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. $ head -n 1 /usr/bin/ranger #!/usr/bin/python3 -s -O Strange thing is that running "/usr/bin/python3 -s -O /usr/bin/ranger" from the command line does work.
CC: (none) => davidwhodgins
And it works in Mageia 8 which has 1.9.3-3 Assigning to all packagers as there is no dedicated maintainer. Adding shlomif to cc list as the last person to change it in Mageia 8.
Assignee: bugsquad => pkg-bugsCC: (none) => shlomif
Should be fixed with ranger-1.9.2-2.1.mga7 and ranger-1.9.2-3.1.mga8 in Core/Updates_testing repo!
CC: (none) => geiger.david68210
Installed and tested without issues. System: Mageia 7, x86_64, Intel CPU. $ uname -a Linux marte 5.10.14-desktop-1.mga7 #1 SMP Sun Feb 7 19:36:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux $ rpm -q ranger ranger-1.9.2-2.1.mga7 $ head -n 1 /usr/bin/ranger #!/usr/bin/python3 -s
Whiteboard: (none) => MGA7-64-OK
Assigning to QA now, Advisory: ======================== Our current ranger package doesn't launch because of a wrong python shebang option, so this update fixes this issue. ======================== Packages in 8/core/updates_testing: ======================== ranger-1.9.3-3.1.mga8.noarch.rpm Packages in 7/core/updates_testing: ======================== ranger-1.9.2-2.1.mga7.noarch.rpm Source RPM: ======================== ranger-1.9.3-3.1.mga8.src.rpm ranger-1.9.2-2.1.mga7.src.rpm
Assignee: pkg-bugs => qa-bugs
Whiteboard: MGA7-64-OK => MGA7TOO MGA7-64-OKVersion: 7 => 8
Confirmed working in both Mageia 7 and 8. Validating the update.
Keywords: (none) => validated_updateWhiteboard: MGA7TOO MGA7-64-OK => MGA7TOO MGA7-64-OK MGA8-64-OKCC: (none) => sysadmin-bugs
Advisory committed to svn.
Keywords: (none) => advisory
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2021-0028.html
Status: NEW => RESOLVEDResolution: (none) => FIXED