Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474646 - media-gfx/fbgrab-1.0-r2 - sed: -e expression #4, char 119: unknown option to `s'
Summary: media-gfx/fbgrab-1.0-r2 - sed: -e expression #4, char 119: unknown option to `s'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-06-24 23:58 UTC by Bertrand Jacquin
Modified: 2013-06-27 23:06 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,3.05 KB, text/plain)
2013-06-24 23:58 UTC, Bertrand Jacquin
Details
emerge --info (info.log,12.94 KB, text/plain)
2013-06-24 23:58 UTC, Bertrand Jacquin
Details
fbgrab-1.0-r2.ebuild-BJA-sed.patch (fbgrab-1.0-r2.ebuild-BJA-sed.diff,910 bytes, patch)
2013-06-25 00:04 UTC, Bertrand Jacquin
Details | Diff
fbgrab-1.0-r2.ebuild-BJA-sed.patch (fbgrab-1.0-r2.ebuild-BJA-sed.diff,649 bytes, patch)
2013-06-25 00:05 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2013-06-24 23:58:04 UTC
When trying to cross compile media-gfx/fbgrab-1.0-r2 sed in src_prepare() fail with the following error :

>>> Preparing source in /var/tmp/armv6jl-hardfloat-linux-gnueabi/portage/media-gfx/fbgrab-1.0-r2/work/fbgrab-1.0 ...
sed: -e expression #4, char 119: unknown option to `s'
 * ERROR: media-gfx/fbgrab-1.0-r2 failed (prepare phase):
 *   sed failed
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_prepare
 *   environment, line 2214:  Called die
 * The specific snippet of code:
 *       sed -i -e "s/gcc/\$(CC)/" -e "s/-g//" -e "s/splint/#splint/" -e "s/-Wall/-Wall ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}/" Makefile || die "sed failed";

The usage of '/' should be deprecated as in the current situation LDFLAGS can contain '/'

LDFLAGS="-L/usr/armv6jl-hardfloat-linux-gnueabi/lib -L/usr/armv6jl-hardfloat-linux-gnueabi/usr/lib"

Attached emerge --info and build.log

Reproducible: Always

Steps to Reproduce:
1. crossdev -t armv6jl-hardfloat-linux-gnueabi
2. armv6jl-hardfloat-linux-gnueabi-emerge -vat fbgrab
3.
Comment 1 Bertrand Jacquin 2013-06-24 23:58:48 UTC
Created attachment 351848 [details]
build.log
Comment 2 Bertrand Jacquin 2013-06-24 23:58:59 UTC
Created attachment 351850 [details]
emerge --info
Comment 3 Bertrand Jacquin 2013-06-25 00:04:21 UTC
Created attachment 351852 [details, diff]
fbgrab-1.0-r2.ebuild-BJA-sed.patch

patch proposal for ebuild.

This also remove more tabs than needed for epatch and fix $(CC) quoting to avoid the usage of '\'
Comment 4 Bertrand Jacquin 2013-06-25 00:05:52 UTC
Created attachment 351854 [details, diff]
fbgrab-1.0-r2.ebuild-BJA-sed.patch

patch proposal for ebuild.

This also remove more tabs than needed for epatch and fix $(CC) quoting to avoid the usage of '\'
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-25 12:37:18 UTC
Better yet, since you're fixing a Makefile, it is preferable to fix stuff by actually injecting new make variables instead of their values. This is already done in the first expression of the very same sed call.

Additionally, the 1.0-r0 ebuild actually used colons as sed's s command's separator. Why was this changed?
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2013-06-27 23:06:24 UTC
fixed in cvs.