From bc42a3e1c3bd8b861936c63593fbbd525856a877 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 8 Jun 2021 07:51:50 +0000 Subject: sci-libs/scotch: fix toolchain sed for e.g. arm Closes: https://bugs.gentoo.org/577272 Signed-off-by: Sam James --- sci-libs/scotch/scotch-6.0.4-r2.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sci-libs') diff --git a/sci-libs/scotch/scotch-6.0.4-r2.ebuild b/sci-libs/scotch/scotch-6.0.4-r2.ebuild index 8af0ccfe611a..4a01b91e5ca2 100644 --- a/sci-libs/scotch/scotch-6.0.4-r2.ebuild +++ b/sci-libs/scotch/scotch-6.0.4-r2.ebuild @@ -64,10 +64,12 @@ src_prepare() { -e 's/ -DSCOTCH_PTHREAD//' \ src/Make.inc/Makefile.inc.i686_pc_linux3 || die fi - sed -e "s/gcc/$(tc-getCC)/" \ + + # Be careful with replacing here, bug #577272 + sed -e "s/= gcc$/= $(tc-getCC)/" \ -e "s/-O3/${CFLAGS} -pthread/" \ - -e "s/ ar/ $(tc-getAR)/" \ - -e "s/ranlib/$(tc-getRANLIB)/" \ + -e "s/= ar$/= $(tc-getAR)/" \ + -e "s/= ranlib$/= $(tc-getRANLIB)/" \ -e "s/LDFLAGS/LIBS/" \ src/Make.inc/Makefile.inc.i686_pc_linux3 > src/Makefile.inc || die } -- cgit v1.2.3-65-gdbad