forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support to set lksh as /bin/sh which preferred /bin/sh for mksh according to upstream. Using mksh as /bin/sh is only POSIX on 32-bit systems, but some may still prefer it as POSIX requires some undefined behavior which is respected with lksh. Closes: gentoo#20787 Signed-off-by: orbea <[email protected]> Closes: gentoo#27615 Signed-off-by: Michał Górny <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION="Manages the /bin/sh (POSIX shell) symlink" | ||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" | ||
SRC_URI="" | ||
S=${WORKDIR} | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" | ||
IUSE="" | ||
|
||
RDEPEND="app-eselect/eselect-lib-bin-symlink" | ||
|
||
src_install() { | ||
insinto /usr/share/eselect/modules | ||
newins "${FILESDIR}"/sh.eselect-${PV} sh.eselect | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
DESCRIPTION="Manage /bin/sh (POSIX shell) implementations" | ||
MAINTAINER="[email protected]" | ||
VERSION="0.5.0" | ||
|
||
SYMLINK_PATH=/bin/sh | ||
SYMLINK_TARGETS=( bash dash lksh mksh ) | ||
SYMLINK_DESCRIPTION='POSIX shell' | ||
SYMLINK_CRUCIAL=1 | ||
|
||
inherit bin-symlink |