sed: -e expression #2, char 67: unknown option to `s' * ERROR: media-gfx/tachyon-0.99_beta6-r1::gentoo failed (prepare phase): * sed failed * * Call stack: * ebuild.sh, line 125: Called src_prepare ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_developer-20200221-195709 ------------------------------------------------------------------- Please see the tracker bug for details. gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * llvm: 9.0.1 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.6 [3] python3.7 (fallback) [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.14.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Sat, 22 Feb 2020 11:11:21 +0000 emerge -qpvO media-gfx/tachyon [ebuild N ] media-gfx/tachyon-0.99_beta6-r1 USE="jpeg opengl png -doc -examples -mpi -threads"
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" \