>>> Emerging (1 of 366) sci-electronics/gplcver-2.12a to /
* gplcver-2.12a.src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...
[ ok ]
* checking ebuild checksums ;-) ...
[ ok ]
* checking auxfile checksums ;-) ...
[ ok ]
* checking miscfile checksums ;-) ...
[ ok ]
* checking gplcver-2.12a.src.tar.bz2 ;-) ...
[ ok ]
>>> Unpacking source...
>>> Unpacking gplcver-2.12a.src.tar.bz2 to /var/tmp/portage/sci-electronics/gplcver-2.12a/work
*
* ERROR: sci-electronics/gplcver-2.12a failed.
* Call stack:
* ebuild.sh, line 46: Called src_unpack
* environment, line 141: Called die
* The specific snippet of code:
* sed -i -e "s/^CFLAGS/#CFLAGS/" -e "s/(CFLAGS)/(INCS) \$(CFLAGS)/" -e
"s/(LFLAGS)/(LFLAGS) \$(LDFLAGS)/" src/makefile.* | die "sed failed";
* The die message:
* sed failed
*
* If you need support, post the topmost build error, and the call stack if
relevant.
* A complete build log is located at
'/var/log/portage/sci-electronics:gplcver-2.12a:20080212-210135.log'.
* The ebuild environment file is located at
'/var/tmp/portage/sci-electronics/gplcver-2.12a/temp/environment'.
*
Looks like someone put | (pipe) instead of || (or).
Here's a patch:
--- gplcver-2.12a.ebuild~ 2008-02-13 07:22:48.000000000 +1000
+++ gplcver-2.12a.ebuild 2008-02-13 07:23:11.000000000 +1000
@@ -20,11 +20,11 @@
-e "s/^CFLAGS/#CFLAGS/" \
-e "s/(CFLAGS)/(INCS) \$(CFLAGS)/" \
-e "s/(LFLAGS)/(LFLAGS) \$(LDFLAGS)/" \
- src/makefile.* | die "sed failed"
+ src/makefile.* || die "sed failed"
sed -i \
-e "s/^CFLAGS/#CFLAGS/" \
-e "s/(OPTFLGS) vcddiff.o/(LDFLAGS) vcddiff.o/" \
- vcddiff.dir/src/makefile.* | die "sed failed"
+ vcddiff.dir/src/makefile.* || die "sed failed"
}
src_compile(){
After updating the ebuild as above, emerging succeeds.