Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 160326

Summary: sys-libs/libixp fails due to sed expression error in ebuild
Product: Gentoo Linux Reporter: Romain Iehl <romain.iehl>
Component: New packagesAssignee: David Shakaryan (RETIRED) <omp>
Status: RESOLVED FIXED    
Severity: normal CC: radek
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Romain Iehl 2007-01-05 14:17:21 UTC
in sys-libs/libixp/libixp-0.2.ebuild is the following sed expression :

	sed -i \
		-e "/^PREFIX/s/=.*/= \/usr/" \
		-e "/^CFLAGS/s/= -Os/+=/" \
		-e "/^LDFLAGS/s/=/+=/" \
		-e "/^AR/s/=.*/= $(tc-getAR) cr/" \
		-e "/^CC/s/=.*/= $(tc-getCC)/" \
		-e "/^RANLIB/s/=.*/= $(tc-getRANLIB)/" \
		config.mk || die "sed failed"

On my system $(tc-getCC) is evaluated to /usr/share/cache/bin/gcc

The '/' characters make the sed expression fail, a dirty workaround is to replace :
-e "/^CC/s/=.*/= $(tc-getCC)/" \
by :
-e "/^CC/s\\=.*\\= $(tc-getCC)\\" \
Comment 1 David Shakaryan (RETIRED) gentoo-dev 2007-01-17 00:18:27 UTC
Should be fixed. Thank you for the bug report. :)