Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494220 - OpenRC: rename /sbin/runscript due to naming conflict with minicom
Summary: OpenRC: rename /sbin/runscript due to naming conflict with minicom
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 481182
  Show dependency tree
 
Reported: 2013-12-14 03:09 UTC by Benda Xu
Modified: 2017-04-18 15:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2013-12-14 03:09:18 UTC
I've heard from the WilliamH on the IRC that /sbin/openrc --runscript could be an alternative. Let's track the issue here.

Reproducible: Always
Comment 1 Benda Xu gentoo-dev 2013-12-14 03:10:49 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".
Comment 2 Benda Xu gentoo-dev 2013-12-14 03:12:33 UTC
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
Comment 3 William Hubbs gentoo-dev 2013-12-14 05:22:58 UTC
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.
Comment 4 Benda Xu gentoo-dev 2013-12-14 07:11:07 UTC
(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.
Comment 5 William Hubbs gentoo-dev 2013-12-19 00:31:49 UTC
I actually got a suggestion for another name that is better, openrc-run.
That is what I will be using instead.

William
Comment 6 Benda Xu gentoo-dev 2013-12-27 11:42:56 UTC
(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?
Comment 7 William Hubbs gentoo-dev 2013-12-30 05:29:59 UTC
This has been completed in commit 3470eda, and will be included in
OpenRC-0.13.
Comment 8 Benda Xu gentoo-dev 2013-12-30 08:39:34 UTC
Thanks William.

Hope I could roll out a name collision free OpenRC for Debian by the end of 2013.