Numerous packages are failing due to broken sed expressions. Only appears to exhibit on stage3 builds (1.4rc2). 19283 execve("/bin/sed", ["sed", "-e", "s/-O2/-pipe -O2 -g -mcpu=i686 -march=i686 -I/usr/local/include/g", "-e", "s:/usr/local::g", "Makefile.new"], [/* 131 vars */]) = 0 Notice the -I/usr/local/include in the expression. I don't yet know where this is coming from, but I have about six packages now that break. I've also found several listed bugs that appear to exhibit the same problems. I'll add dependancies in a moment. Suggestion: change the sed expression to use s|||g or s:::g instead of s///g.
Suspect bug added to list
In followup, I still haven't determined why a stage3 build wants to inject a -I/usr/local/include. I don't know where this came from or why it only shows up on stage 3. Further, Inspection of ebuilds reveals something of note. There are a -lot- of ebuilds like the following: james etc # find /usr/portage/ -type f -name '*ipta*' -exec grep "s/-O2/" {} \; -print sed -e "s/-O2/${CFLAGS}/g" -e "s:/usr/local::g" Makefile.new > Makefile /usr/portage/sys-apps/iptables/iptables-1.2.7a-r3.ebuild Note the use of forward slashes in the first expression. Any CFLAGS that have a path, i.e. -I or -L/path/to/location will break this expression. The very nature of gentoo placing everything in /usr prefix and nothing in /usr/local prefix has masked this problem until now. This is also evidenced by the complains of users in prior bugs noting they had -I/path or -L/path in their *FLAGS. Easily solved by my prior suggestion. use | or : instead of /
The following is a suggestive list some ebuilds that need updating. find /usr/portage/ -type f -exec grep -l "s/.*/\${CFLAGS}/" {} \; >/tmp/diff.list I've no idea if there are other ebuilds doing such dastardly things but I suspect there are a few lingering ebuilds :) diff.list is attached
Created attachment 7861 [details] List of ebuilds with broken sed expressions
all the ebuilds you listed are fixed in portage. Note, I did some other cleanups, and hopefully some space saving in the portage tree. If you get a chance, please see if there are any wrong sed expressions still remaining.