Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710818 - sys-fs/zerofree-1.0.4 : sed: -e expression #1, char 104: unknown option to s
Summary: sys-fs/zerofree-1.0.4 : sed: -e expression #1, char 104: 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: Joshua Kinard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: colon-in-CFLAGS
  Show dependency tree
 
Reported: 2020-02-25 18:45 UTC by Toralf Förster
Modified: 2020-02-27 03:25 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.24 KB, text/plain)
2020-02-25 18:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,148.77 KB, text/plain)
2020-02-25 18:45 UTC, Toralf Förster
Details
environment (environment,72.98 KB, text/plain)
2020-02-25 18:45 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,40.46 KB, application/x-bzip)
2020-02-25 18:45 UTC, Toralf Förster
Details
sys-fs:zerofree-1.0.4:20200225-045942.log (sys-fs:zerofree-1.0.4:20200225-045942.log,1.67 KB, text/plain)
2020-02-25 18:45 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,17.65 KB, application/x-bzip)
2020-02-25 18:45 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-02-25 18:45:38 UTC
>>> Source unpacked in /var/tmp/portage/sys-fs/zerofree-1.0.4/work
>>> Preparing source in /var/tmp/portage/sys-fs/zerofree-1.0.4/work/zerofree-1.0.4 ...
sed: -e expression #1, char 104: unknown option to `s'
 * ERROR: sys-fs/zerofree-1.0.4::gentoo failed (prepare phase):
 *   Failed to sed the Makefile
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-20200221-171645

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.0 *
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
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 25 Feb 2020 03:07:18 +0000

emerge -qpvO sys-fs/zerofree
[ebuild  N    ] sys-fs/zerofree-1.0.4
Comment 1 Toralf Förster gentoo-dev 2020-02-25 18:45:41 UTC
Created attachment 615828 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-25 18:45:44 UTC
Created attachment 615830 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-25 18:45:47 UTC
Created attachment 615832 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-25 18:45:50 UTC
Created attachment 615834 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-25 18:45:53 UTC
Created attachment 615836 [details]
sys-fs:zerofree-1.0.4:20200225-045942.log
Comment 6 Toralf Förster gentoo-dev 2020-02-25 18:45:56 UTC
Created attachment 615838 [details]
temp.tbz2
Comment 7 Joshua Kinard gentoo-dev 2020-02-26 03:57:54 UTC
Seems to work for me:
# ebuild /usr/portage/sys-fs/zerofree/zerofree-1.0.4.ebuild clean unpack prepare
 * zerofree-1.0.4.tgz BLAKE2B SHA512 size ;-) ...                                                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking zerofree-1.0.4.tgz to /ramfs/portage/sys-fs/zerofree-1.0.4/work
>>> Source unpacked in /ramfs/portage/sys-fs/zerofree-1.0.4/work
>>> Checking zerofree-1.0.4.tgz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> It appears that 'pretend' has already executed for 'zerofree-1.0.4'; skipping.
>>> Remove '/ramfs/portage/sys-fs/zerofree-1.0.4/.pretended' to force pretend.
>>> It appears that 'setup' has already executed for 'zerofree-1.0.4'; skipping.
>>> Remove '/ramfs/portage/sys-fs/zerofree-1.0.4/.setuped' to force setup.
>>> It appears that 'unpack' has already executed for 'zerofree-1.0.4'; skipping.
>>> Remove '/ramfs/portage/sys-fs/zerofree-1.0.4/.unpacked' to force unpack.
>>> Preparing source in /ramfs/portage/sys-fs/zerofree-1.0.4/work/zerofree-1.0.4 ...
>>> Source prepared.


What version is your `sed'?  I have:
# sed --version
sed (GNU sed) 4.8
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Comment 8 Toralf Förster gentoo-dev 2020-02-26 17:00:39 UTC
(In reply to Joshua Kinard from comment #7)
> What version is your `sed'?  I have:
> # sed --version
> sed (GNU sed) 4.8

nothing special here:

mr-fox ~ # sed --version
sed (GNU sed) 4.8
Copyright (C) 2020 Free Software Foundation, Inc.


Maybe USE flags related?
Comment 9 Joshua Kinard gentoo-dev 2020-02-27 02:49:02 UTC
(In reply to Toralf Förster from comment #8)
> (In reply to Joshua Kinard from comment #7)
> > What version is your `sed'?  I have:
> > # sed --version
> > sed (GNU sed) 4.8
> 
> nothing special here:
> 
> mr-fox ~ # sed --version
> sed (GNU sed) 4.8
> Copyright (C) 2020 Free Software Foundation, Inc.
> 
> 
> Maybe USE flags related?

From your environemnt:
declare -x USE="abi_x86_64 amd64 elibc_glibc kernel_linux split-usr userland_GNU"

From my amd64 machine:
declare -x USE="abi_x86_64 amd64 elibc_glibc kernel_linux split-usr userland_GNU"

So nope, not USE related.  I even tried symlinking /bin/sed to /bin/busybox to see if that was the sed that failed, but it, too, runs src_prepare() just fine.

I'll add an ebuild for zerofree-1.1.1 tonight.  Can you try again with that?  Also maybe try running the ebuild phases manually outside of the tinderbox environment?
Comment 10 Joshua Kinard gentoo-dev 2020-02-27 02:51:08 UTC
(In reply to Joshua Kinard from comment #9)
> (In reply to Toralf Förster from comment #8)
> > (In reply to Joshua Kinard from comment #7)
> > > What version is your `sed'?  I have:
> > > # sed --version
> > > sed (GNU sed) 4.8
> > 
> > nothing special here:
> > 
> > mr-fox ~ # sed --version
> > sed (GNU sed) 4.8
> > Copyright (C) 2020 Free Software Foundation, Inc.
> > 
> > 
> > Maybe USE flags related?
> 
> From your environemnt:
> declare -x USE="abi_x86_64 amd64 elibc_glibc kernel_linux split-usr
> userland_GNU"
> 
> From my amd64 machine:
> declare -x USE="abi_x86_64 amd64 elibc_glibc kernel_linux split-usr
> userland_GNU"
> 
> So nope, not USE related.  I even tried symlinking /bin/sed to /bin/busybox
> to see if that was the sed that failed, but it, too, runs src_prepare() just
> fine.
> 
> I'll add an ebuild for zerofree-1.1.1 tonight.  Can you try again with that?
> Also maybe try running the ebuild phases manually outside of the tinderbox
> environment?

Okay, I figured it out.  I didn't realize this bug was a blocker to the "colon-in-gcc" bug.  I don't use the CFLAG "-falign-functions=32:25:16".  Thus my attempts were working fine.  If I add that CFLAG, *then* I can reproduce the breakage.
Comment 11 Joshua Kinard gentoo-dev 2020-02-27 03:05:58 UTC
(In reply to Joshua Kinard from comment #10)
> 
> Okay, I figured it out.  I didn't realize this bug was a blocker to the
> "colon-in-gcc" bug.  I don't use the CFLAG "-falign-functions=32:25:16". 
> Thus my attempts were working fine.  If I add that CFLAG, *then* I can
> reproduce the breakage.

So the colon-as-delimiter may need to be reconciled with this bit from the devmanual:

Note: When using sed with CFLAGS or LDFLAGS, it is not safe to use a comma or a slash as a delimiter. The recommended character is a colon.

https://devmanual.gentoo.org/ebuild-writing/functions/src_compile/building/index.html

For now, it looks like using a pipe character as the sed delimiter works.
Comment 12 Joshua Kinard gentoo-dev 2020-02-27 03:25:21 UTC
Pushed a fix to the tree.  Wish I knew how to get Larry the Git Cow to handle the bug closing, but this should be fixed now.  Reopen if it isn't.  Thanks!