Hi, i noticed that SDLcam uses multi line string literals and so gcc 3.3 won't compile it any more. i fixed the ebuild bye adding the following code (applysed is a utility function dosed _seems_ to do something different,is there sth. like applysed in portage? if not,why?): applysed() { local e="$1" shift local tmpfile=`mktemp` for x in "$@"; do if [ -w "$x" ]; then cp -f "$x" "$tmpfile" sed -e "$e" "$tmpfile" > "$x" fi done rm -f "$tmpfile" } src_unpack() { unpack ${A} #gcc 3.3 compile fix applysed '36,81 s/$/\\n\\/' ${S}/filter/Absdiff.c }
a patch would be better imo than sed ...
sed needs less space and i was more in the mood to do some bash and sed stuff ;-)
if you're going to use sed, skip the whole mktemp mess and use sed -i
i grabbed the current c file from cvs and made a patch from that fixed in cvs, thanks for your sed ;)