From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1072108-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 26010138334 for <garchives@archives.gentoo.org>; Thu, 14 Feb 2019 00:44:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A75CE0898; Thu, 14 Feb 2019 00:44:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D12E6E0898 for <gentoo-commits@lists.gentoo.org>; Thu, 14 Feb 2019 00:44:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 211EE335D49 for <gentoo-commits@lists.gentoo.org>; Thu, 14 Feb 2019 00:44:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A711541 for <gentoo-commits@lists.gentoo.org>; Thu, 14 Feb 2019 00:44:09 +0000 (UTC) From: "William Hubbs" <williamh@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" <williamh@gentoo.org> Message-ID: <1550105032.17396129fb1b0d449d623f8519efc511ba0b97bf.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/openrc/metadata.xml sys-apps/openrc/openrc-9999.ebuild X-VCS-Directories: sys-apps/openrc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 17396129fb1b0d449d623f8519efc511ba0b97bf X-VCS-Branch: master Date: Thu, 14 Feb 2019 00:44:09 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 38b5c2cf-814b-439e-9901-4129eb7e4812 X-Archives-Hash: 2adba7c2d845fe94c29504c3ca4c27dc commit: 17396129fb1b0d449d623f8519efc511ba0b97bf Author: William Hubbs <william.hubbs <AT> sony <DOT> com> AuthorDate: Thu Feb 14 00:42:03 2019 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Thu Feb 14 00:43:52 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17396129 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 <AT> gentoo.org> sys-apps/openrc/metadata.xml | 3 +++ 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 def83720556..74ac5c680da 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 60351506941..1ad60296587 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