Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/cpio/
Date: Sun, 30 Oct 2022 15:51:48
Message-Id: 1667145018.ee6a1856f04104e92fd1f45d28fa95c1a75c7b0e.sam@gentoo
1 commit: ee6a1856f04104e92fd1f45d28fa95c1a75c7b0e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 30 14:16:55 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 15:50:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee6a1856
7
8 app-arch/cpio: Use --program-prefix=g to avoid mv
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-arch/cpio/cpio-2.13-r3.ebuild | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
15
16 diff --git a/app-arch/cpio/cpio-2.13-r3.ebuild b/app-arch/cpio/cpio-2.13-r3.ebuild
17 index c2b24b09a8a5..beb67c3491d2 100644
18 --- a/app-arch/cpio/cpio-2.13-r3.ebuild
19 +++ b/app-arch/cpio/cpio-2.13-r3.ebuild
20 @@ -34,6 +34,8 @@ src_configure() {
21 $(use_enable nls)
22 --bindir="${EPREFIX}"/bin
23 --with-rmt="${EPREFIX}"/usr/sbin/rmt
24 + # install as gcpio for better compatibility with non-GNU userland
25 + --program-prefix=g
26 )
27
28 econf "${myeconfargs[@]}"
29 @@ -41,10 +43,8 @@ src_configure() {
30
31 src_install() {
32 default
33 - # install as gcpio for better compatibility with non-GNU userland
34 - # and make cpio as a symlink
35 - mv "${ED}"/bin/{,g}cpio || die
36 +
37 + # make cpio a symlink
38 dosym gcpio /bin/cpio
39 - mv "${ED}"/usr/share/man/man1/{,g}cpio.1 || die
40 dosym gcpio.1 /usr/share/man/man1/cpio.1
41 }