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