Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160326 - sys-libs/libixp fails due to sed expression error in ebuild
Summary: sys-libs/libixp fails due to sed expression error in ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: David Shakaryan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-05 14:17 UTC by Romain Iehl
Modified: 2007-01-17 00:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :)