Summary: | media-gfx/tachyon-0.99_beta6-r1 : * sed failed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Alexey Shvetsov <alexxy> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | frp.bissey, mjo, sci |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 685160 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 media-gfx:tachyon-0.99_beta6-r1:20200222-122348.log |
Description
Toralf Förster
2020-02-22 14:26:44 UTC
Created attachment 615106 [details]
emerge-info.txt
Created attachment 615108 [details]
emerge-history.txt
Created attachment 615110 [details]
environment
Created attachment 615112 [details]
etc.portage.tbz2
Created attachment 615114 [details]
logs.tbz2
Created attachment 615116 [details]
media-gfx:tachyon-0.99_beta6-r1:20200222-122348.log
It looks to me like https://gitweb.gentoo.org/repo/gentoo.git/tree/media-gfx/tachyon/tachyon-0.99_beta6-r1.ebuild#n97 should really be three "-e" lines. May be older versions of sed where tolerating this and not the latest one. Actually this was because Toralf has colons in his CFLAGS, CFLAGS="-O2 -pipe -march=native -fno-common -falign-functions=32:25:16" and because the failing sed command is (a) using double quotes, and (b) using colons as the pattern separator. This fixes it for me, by using single quotes and by delaying the expansion of CFLAGS until build-time: @@ -95,8 +95,8 @@ src_prepare() { fi sed -i \ -e "s:-O3::g;s:-g::g;s:-pg::g" \ - -e "s:-m32:${CFLAGS}:g" \ - -e "s:-m64:${CFLAGS}:g" \ + -e 's:-m32:$(CFLAGS):g' \ + -e 's:-m64:$(CFLAGS):g' \ -e "s:-ffast-math::g" \ -e "s:STRIP = strip:STRIP = touch:g" \ -e "s:CC = *cc:CC = $(tc-getCC):g" \ |