1 |
commit: 592f652fd2387627411c99bdbb203bbe2339c587 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 17 07:15:54 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 17 07:15:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=592f652f |
7 |
|
8 |
sys-apps/coreutils: add back libstdbuf fixes, bug #647708 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/647708 |
11 |
Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6 |
12 |
|
13 |
sys-apps/coreutils/coreutils-8.29.ebuild | 17 +++++++++++++++++ |
14 |
1 file changed, 17 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/coreutils/coreutils-8.29.ebuild b/sys-apps/coreutils/coreutils-8.29.ebuild |
17 |
index fc62029cf3..bbbb8867ae 100644 |
18 |
--- a/sys-apps/coreutils/coreutils-8.29.ebuild |
19 |
+++ b/sys-apps/coreutils/coreutils-8.29.ebuild |
20 |
@@ -67,6 +67,23 @@ src_prepare() { |
21 |
eapply_user |
22 |
|
23 |
epatch "${FILESDIR}"/${PN}-8.22-mint.patch |
24 |
+ # fixup libstdbuf non-libtool stuff |
25 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
26 |
+ sed -i \ |
27 |
+ -e "/src_libstdbuf_so_LDFLAGS = -shared/s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/libexec/coreutils/libstdbuf.dylib:" \ |
28 |
+ Makefile.in \ |
29 |
+ || die |
30 |
+ elif use elibc_Cygwin ; then |
31 |
+ epatch "${FILESDIR}"/${P}-cygwin-8.26-3.patch |
32 |
+ sed -i -e 's|\(libstdbuf\.so\)$(EXEEXT)|\1|g' Makefile.in || die |
33 |
+ fi |
34 |
+ sed -i \ |
35 |
+ -e "s/libstdbuf\\.so/libstdbuf$(get_libname)/" \ |
36 |
+ src/stdbuf.c \ |
37 |
+ Makefile.in \ |
38 |
+ configure \ |
39 |
+ || die |
40 |
+ |
41 |
# Since we've patched many .c files, the make process will try to |
42 |
# re-build the manpages by running `./bin --help`. When doing a |
43 |
# cross-compile, we can't do that since 'bin' isn't a native bin. |