Summary: | OpenRC: rename /sbin/runscript due to naming conflict with minicom | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Benda Xu <heroxbd> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | esigra |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 481182 |
Description
Benda Xu
2013-12-14 03:09:18 UTC
<WilliamH> Ouch, #!/sbin/openrc --runscript is not going to work because of how shebangs are handled.. [03:36] Could you paste some details on how it fails? We could make it shorter as "/sbin/openrc --script" or just "/sbin/openrc -s". FYI, the triggering issue is that minicom[1] distributes a binary called runscript in PATH, conflicting with /sbin/runscript in OpenRC. 1. http://en.wikipedia.org/wiki/Minicom The problem isn't the length of the name, but the fact that both openrc and runscript have command line arguments. If I make --runscript a command line argument to openrc, I have to then combine both sets of switches. I am working on this patch; I think I am going to just create another symlink, called openrcscript instead of runscript. I will keep the runscript symlink for a while for compatibility, but print a deprecation warning if it is used. That means that scripts will work as they are, but OpenRC will recommend changing the shebang line. (In reply to William Hubbs from comment #3) > The problem isn't the length of the name, but the fact that both openrc > and runscript have command line arguments. If I make --runscript a > command line argument to openrc, I have to then combine both sets of > switches. > > I am working on this patch; I think I am going to just create another > symlink, called openrcscript instead of runscript. > I will keep the runscript symlink for a while for compatibility, but > print a deprecation warning if it is used. > > That means that scripts will work as they are, but OpenRC will > recommend changing the shebang line. Nice. I'm fine with this idea. I actually got a suggestion for another name that is better, openrc-run. That is what I will be using instead. William (In reply to William Hubbs from comment #5) > I actually got a suggestion for another name that is better, openrc-run. > That is what I will be using instead. Thanks William, will it be in the git repo soon? This has been completed in commit 3470eda, and will be included in OpenRC-0.13. Thanks William. Hope I could roll out a name collision free OpenRC for Debian by the end of 2013. |