Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645240 - sys-apps/openrc-0.34.11 installs commands in /lib64 (was: eselect rc show - /usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found)
Summary: sys-apps/openrc-0.34.11 installs commands in /lib64 (was: eselect rc show - /...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
: 645244 (view as bug list)
Depends on:
Blocks: no-symlink-lib
  Show dependency tree
 
Reported: 2018-01-21 12:57 UTC by charles17
Modified: 2018-02-27 20:09 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge --info,6.16 KB, text/plain)
2018-01-21 12:57 UTC, charles17
Details
Patch for rc.eselect (rc.eselect.patch,522 bytes, patch)
2018-01-21 21:31 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description charles17 2018-01-21 12:57:03 UTC
Created attachment 515640 [details]
emerge --info

Running "rc-config show" gives following output:

Status of init scripts in runlevel "default"
/usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_stopped: command not found
  cupsd                     [stopped]
/usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_stopped: command not found
  dhcpcd                    [stopped]
/usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_stopped: command not found
  ip6tables                 [stopped]
/usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_stopped: command not found
  iptables                  [stopped]
/usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_stopped: command not found
  osclock                   [stopped]
/usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_stopped: command not found
  sysklogd                  [stopped]
/usr/share/eselect/modules/rc.eselect: line 70: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 70: service_stopped: command not found
  wpa_supplicant
Comment 1 Ulrich Müller gentoo-dev 2018-01-21 21:31:14 UTC
Created attachment 515786 [details, diff]
Patch for rc.eselect

Please test if attached patch fixes the problem.
Comment 2 Ulrich Müller gentoo-dev 2018-01-21 21:37:25 UTC
*** Bug 645244 has been marked as a duplicate of this bug. ***
Comment 3 Ulrich Müller gentoo-dev 2018-01-22 06:39:34 UTC
Thinking about it: These are commands, not libraries. So they should go to under /lib rather than /lib64.

The FHS doesn't say anything about commands in /lib, but it is quite clear about the corresponding paths in /usr; internal binaries should go to /usr/libexec and /usr/lib but not /usr/lib<qual>:

| /usr/libexec includes internal binaries that are not intended to be
| executed directly by users or shell scripts. Applications may use a single
| subdirectory under /usr/libexec.
|
| Applications which use /usr/libexec in this way must not also use /usr/lib
| to store internal binaries, though they may use /usr/lib for the other
| purposes documented here.
|
| Rationale
| Some previous versions of this document did not support /usr/libexec,
| despite it being standard practice in a number of environments. [26] To
| accomodate this restriction, it became common practice to use /usr/lib
| instead. Either practice is now acceptable, but each application must
| choose one way or the other to organize itself.

Reassigning to openrc.
Comment 4 Ulrich Müller gentoo-dev 2018-01-24 07:33:29 UTC
As discussed in #gentoo-dev:

<ulm> whubbs: any thoughts about bug 645240?
<willikins> ulm: https://bugs.gentoo.org/645240 "eselect rc show -
	    /usr/share/eselect/modules/rc.eselect: line 70: service_stopping:
	    command not found"; Gentoo Hosted Projects, OpenRC; CONF;
	    charles17:openrc
<ulm> /lib/rc/bin vs /lib64/rc/bin
<whubbs> ulm: /lib/rdc/bin but things in there are for openrc to run, not
	 eselect rc.
<whubbs> ulm:  /lib/rc/bin
<whubbs> ulm: the issue is there is no /libexec.
<whubbs> ulm: in Gentoo.
<ulm> whubbs: but apparently openrc installs these in /lib64/rc/bin?
<ulm> which I believe is wrong
<whubbs> ulm: you are correct, I'll take a look at that for 0.35.
<ulm> k
Comment 5 William Hubbs gentoo-dev 2018-02-27 20:09:30 UTC
This is fixed in the live ebuild which will be used for 0.35.