diff options
author | Fabian Groffen <grobian@gentoo.org> | 2022-07-17 17:49:34 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2022-07-17 17:50:13 +0200 |
commit | ea3a7d8ebed102d8856e00cc1e7014994d0f503d (patch) | |
tree | e7d6316e09c30039b7373a8a7c232890dcdfefb9 /sys-apps/baselayout | |
parent | dev-db/gigabase: EAPI 8, disable strict aliasing (diff) | |
download | gentoo-ea3a7d8ebed102d8856e00cc1e7014994d0f503d.tar.gz gentoo-ea3a7d8ebed102d8856e00cc1e7014994d0f503d.tar.bz2 gentoo-ea3a7d8ebed102d8856e00cc1e7014994d0f503d.zip |
sys-apps/baselayout-2.8-r2: provide runscript for prefix-guest installs
Closes: https://bugs.gentoo.org/858596
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'sys-apps/baselayout')
-rw-r--r-- | sys-apps/baselayout/baselayout-2.8-r2.ebuild (renamed from sys-apps/baselayout/baselayout-2.8-r1.ebuild) | 14 | ||||
-rw-r--r-- | sys-apps/baselayout/baselayout-9999.ebuild | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sys-apps/baselayout/baselayout-2.8-r1.ebuild b/sys-apps/baselayout/baselayout-2.8-r2.ebuild index c7096be3d978..c6296f1a6f94 100644 --- a/sys-apps/baselayout/baselayout-2.8-r1.ebuild +++ b/sys-apps/baselayout/baselayout-2.8-r2.ebuild @@ -273,6 +273,20 @@ src_install() { doins Makefile dodoc ChangeLog + + # bug 858596 + if use prefix-guest ; then + dodir sbin + cat > "${ED}"/sbin/runscript <<- EOF + #!/usr/bin/env sh + source "${EPREFIX}/lib/gentoo/functions.sh" + + eerror "runscript/openrc-run not supported by Gentoo Prefix Base System release ${PV}" 1>&2 + exit 1 + EOF + chmod 755 "${ED}"/sbin/runscript || die + cp "${ED}"/sbin/{runscript,openrc-run} || die + fi } pkg_postinst() { diff --git a/sys-apps/baselayout/baselayout-9999.ebuild b/sys-apps/baselayout/baselayout-9999.ebuild index c7096be3d978..c6296f1a6f94 100644 --- a/sys-apps/baselayout/baselayout-9999.ebuild +++ b/sys-apps/baselayout/baselayout-9999.ebuild @@ -273,6 +273,20 @@ src_install() { doins Makefile dodoc ChangeLog + + # bug 858596 + if use prefix-guest ; then + dodir sbin + cat > "${ED}"/sbin/runscript <<- EOF + #!/usr/bin/env sh + source "${EPREFIX}/lib/gentoo/functions.sh" + + eerror "runscript/openrc-run not supported by Gentoo Prefix Base System release ${PV}" 1>&2 + exit 1 + EOF + chmod 755 "${ED}"/sbin/runscript || die + cp "${ED}"/sbin/{runscript,openrc-run} || die + fi } pkg_postinst() { |