commit:     7bc52877d33171917fc155ef20aca5e9ec4b711c
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 27 18:45:51 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Feb 27 18:45:51 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bc52877

sys-apps/openrc: copy /libxx/rc to /lib/rc for non-linux systems

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sys-apps/openrc/openrc-9999.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys-apps/openrc/openrc-9999.ebuild 
b/sys-apps/openrc/openrc-9999.ebuild
index 50d119646c7..e261b2d39bd 100644
--- a/sys-apps/openrc/openrc-9999.ebuild
+++ b/sys-apps/openrc/openrc-9999.ebuild
@@ -300,6 +300,10 @@ pkg_postinst() {
                if [[ -d "${EROOT}$(get_libdir)"/rc ]]; then
                        cp -RPp "${EROOT}$(get_libdir)/rc" "${EROOT}"lib
                fi
+       elif ! use kernel_linux; then
+               if [[ -d "${EROOT}$(get_libdir)"/rc ]]; then
+                       cp -RPp "${EROOT}$(get_libdir)/rc" "${EROOT}"lib
+               fi
        fi
 
        # update the dependency tree after touching all files #224171

Reply via email to