| Summary: | dev-util/bloaty-0_p20170321 fails to build | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | darkdimius <darkdimius> |
| Component: | Current packages | Assignee: | Manuel Rüger (RETIRED) <mrueg> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | david, mgorny, qa |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
I just emerged dev-util/bloaty-0_p20170321 and it worked just fine. Could you run some of the sed command below to narrow down which substitution is failing? @David Hallas. It fails because I have AR set to `/usr/bin/gcc-ar` in make.conf. This sed line assumes that there are no slashes in AR location. So, simply changing the -e "s/ ar / $(tc-getAR) /" expression to -e "s# ar # $(tc-getAR) #" should fix the problem? Or just putting '$(AR)' make variable, and passing AR to make instead of sweeping issues under the carpet just to force bad ideas. Also, using patches instead of unreliable sed expressions. commit 77c8552e1c1d23172123080b8c9331cd81106c55 Author: Manuel Rüger <mrueg@gentoo.org> Date: Wed Jun 7 00:08:52 2017 +0200 dev-util/bloaty: Update snapshot Gentoo-Bug: #621046 Package-Manager: Portage-2.3.6, Repoman-2.3.2 Please test the new snapshot. Fixed now! Thanks for a swift resolution! |
emerge bloaty fails to build: >>> Preparing source in /var/tmp/portage/dev-util/bloaty-0_p20170321/work/bloaty-0_p20170321 ... sed: -e expression #2, char 12: unknown option to `s' * ERROR: dev-util/bloaty-0_p20170321::gentoo failed (prepare phase): * (no error message) * * Call stack: * ebuild.sh, line 115: Called src_prepare * environment, line 905: Called die * The specific snippet of code: * sed -i -e "s#\$(RE2_[AH])##" -e "s/ ar / $(tc-getAR) /" -e "s#-lpthread#-lre2 -lpthread#" -e "/^CXXFLAGS/ s#-I third_party/re2##" Makefile || die