Bug 1176420

Summary: RFE: Help should be patched to use right command name
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: ninja-buildAssignee: Ben Boeckel <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: adrian, avi.kivity, fedora, i
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-24 03:19:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1176277    
Attachments:
Description Flags
ninja-build for help output none

Description Raphael Groner 2014-12-21 15:58:33 UTC
Description of problem:
Help should be patched to use right command name: In Fedora, 'ninja-build' is used for both name the package and the command, instead of just 'ninja' as in the help output. So either rename package only or patch the help also. Hmm, there is the ninja IRC client that conflicts of course.

Version-Release number of selected component (if applicable):
ninja-build-1.4.0-1.fc20.x86_64
(Verified on Fedora 20, but I think this is also for Rawhide with v1.5.x)

How reproducible:
yes

Steps to Reproduce:
1. yum install -y ninja-build
2. ninja-build --help
3.

Actual results:
usage: ninja [options] [targets...]

Expected results:
usage: ninja-build [options] [targets...]
-or- do not rename command and just use 'ninja' as the original name.

Additional info:
A patch should be easy to do.

Comment 1 Raphael Groner 2014-12-21 15:59:23 UTC
CC to maintainer of ninja IRC.

Comment 2 Raphael Groner 2014-12-21 16:10:11 UTC
Created attachment 971746 [details]
ninja-build for help output

Comment 3 Adrian Reber 2014-12-21 16:47:46 UTC
This is somehow related to #1166135

Comment 4 Raphael Groner 2014-12-23 09:52:35 UTC
(In reply to Raphael Groner from comment #2)
> Created attachment 971746 [details]
> ninja-build for help output

Hmm, a good patch could be more tricky than expected:

Do not trust argv[0], http://www.lst.de/~okir/blackhats/node40.html

Comment 5 Jaroslav Reznik 2015-03-03 16:38:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 6 Raphael Groner 2015-03-03 21:14:36 UTC
Reverting back to rawhide. This is an issue with packaging. The binary name gets modified intentionally in spec file and independently from any version.

Comment 7 Raphael Groner 2015-03-31 16:13:27 UTC
ninja (jabber client) is orphaned and upstream of it seems to be dead.
Therefore, maybe consider to rename ninja-build back into ninja.

Comment 8 Christopher Meng 2015-04-01 04:47:51 UTC
(In reply to Raphael Groner from comment #7)
> ninja (jabber client) is orphaned and upstream of it seems to be dead.
> Therefore, maybe consider to rename ninja-build back into ninja.

Yes, as docker-io has been renamed to docker finally ;)

Comment 9 Raphael Groner 2015-11-15 16:13:44 UTC
Ping, any news here?

Comment 10 Ben Boeckel 2015-11-16 23:04:20 UTC
I have a patch to update the binary name, testing it with a local build now. As for renaming it, see Bug #1166135.

Comment 11 Ben Boeckel 2016-07-24 03:19:07 UTC
Was fixed in 1.6.0-3.