diff options
author | William Hubbs <william.hubbs@sony.com> | 2019-02-13 18:42:03 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2019-02-13 18:43:52 -0600 |
commit | 17396129fb1b0d449d623f8519efc511ba0b97bf (patch) | |
tree | f50911ff5055ca64e3c10b92aea0d090976d6710 | |
parent | mail-client/geary: add missing intltool dep (diff) | |
download | gentoo-17396129fb1b0d449d623f8519efc511ba0b97bf.tar.gz gentoo-17396129fb1b0d449d623f8519efc511ba0b97bf.tar.bz2 gentoo-17396129fb1b0d449d623f8519efc511ba0b97bf.zip |
sys-apps/openrc: Add bash use flag
This experimentally allows service scripts to be written so that their
internal code is in bash. However, the OpenRC base code will stay in
posix sh, so it must be interfaced with using posix conventions.
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh@gentoo.org>
-rw-r--r-- | sys-apps/openrc/metadata.xml | 3 | ||||
-rw-r--r-- | sys-apps/openrc/openrc-9999.ebuild | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sys-apps/openrc/metadata.xml b/sys-apps/openrc/metadata.xml index def837205561..74ac5c680da1 100644 --- a/sys-apps/openrc/metadata.xml +++ b/sys-apps/openrc/metadata.xml @@ -6,6 +6,9 @@ <name>Gentoo OpenRC Project</name> </maintainer> <use> + <flag name="bash"> + enable the use of bash in service scripts (experimental) + </flag> <flag name="netifrc">enable Gentoo's network stack (net.* scripts)</flag> <flag name="newnet">enable the new network stack (experimental)</flag> </use> diff --git a/sys-apps/openrc/openrc-9999.ebuild b/sys-apps/openrc/openrc-9999.ebuild index 60351506941e..1ad60296587a 100644 --- a/sys-apps/openrc/openrc-9999.ebuild +++ b/sys-apps/openrc/openrc-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -18,7 +18,7 @@ fi LICENSE="BSD-2" SLOT="0" -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs +IUSE="audit bash debug ncurses pam newnet prefix +netifrc selinux static-libs unicode kernel_linux kernel_FreeBSD" COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) ) @@ -40,6 +40,7 @@ COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-proc !<sys-fs/udev-init-scripts-27" DEPEND="${COMMON_DEPEND} virtual/os-headers + bash? ( app-shells/bash ) ncurses? ( virtual/pkgconfig )" RDEPEND="${COMMON_DEPEND} !prefix? ( @@ -79,7 +80,8 @@ src_compile() { MKAUDIT=$(usex audit) MKPAM=$(usev pam) MKSTATICLIBS=$(usex static-libs) - MKZSHCOMP=yes" + MKZSHCOMP=yes + SH=$(usex bash /bin/bash /bin/sh)" local brand="Unknown" if use kernel_linux ; then |