Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/shadow/
Date: Mon, 08 Oct 2018 17:37:05
Message-Id: 1539020174.af38adc81699981fefe31decceaeae3a4aba1f55.floppym@gentoo
1 commit: af38adc81699981fefe31decceaeae3a4aba1f55
2 Author: Sargun Dhillon <sargun <AT> sargun <DOT> me>
3 AuthorDate: Mon Oct 8 06:52:07 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 8 17:36:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af38adc8
7
8 sys-apps/shadow: Ensure /bin is present before moving file into it
9
10 When building with a new prefix, sometimes the /bin directory
11 does not exist at install time. Therefore, we need to create it
12 before using it.
13
14 You can recreate if you try to run:
15 emerge --prefix=/test shadow
16
17 Closes: https://github.com/gentoo/gentoo/pull/10107
18 Signed-off-by: Sargun Dhillon <sargun <AT> sargun.me>
19 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
20
21 sys-apps/shadow/shadow-4.6.ebuild | 1 +
22 1 file changed, 1 insertion(+)
23
24 diff --git a/sys-apps/shadow/shadow-4.6.ebuild b/sys-apps/shadow/shadow-4.6.ebuild
25 index 2c4f91f2ecd..6c3e7bef5d7 100644
26 --- a/sys-apps/shadow/shadow-4.6.ebuild
27 +++ b/sys-apps/shadow/shadow-4.6.ebuild
28 @@ -110,6 +110,7 @@ src_install() {
29 doins "${FILESDIR}"/default/useradd
30
31 # move passwd to / to help recover broke systems #64441
32 + dodir /bin
33 mv "${ED%/}"/usr/bin/passwd "${ED%/}"/bin/ || die
34 dosym ../../bin/passwd /usr/bin/passwd