Good morning. filter-flags seems to fail filtering -pie from LDFLAGS which i set as follows in /etc/make.conf: LDFLAGS="${LDFLAGS} -pie" The packages reproducably affected are for example ncurses and glibc, altough ncurses-5.4-r1 is actively filtering -pie - well, supposed to. When removing the LDFLAGS entry, the build completes fine. Machines this was tested on: - Fresh experimental stage1 spp pie install (ncurses fails on scripts/bootstrap-2.6.sh) - Relatively new (~1 week) install with standard stage3, completely up to date - cluckj's machine (#gentoo-hardened) The errors (don't want to clobber up this bug): - Fresh stage1: http://ceed.de/~ceed/ncurses-error.txt http://ceed.de/~ceed/ncurses-emerge-info.txt - cluckj: http://ceed.de/~ceed/ncurses-cluckj.txt Thanks, Christian Rubbert
Does this not work for you? --- /usr/portage/sys-libs/ncurses/ncurses-5.4-r1.ebuild 2004-03-03 13:34:55.000000000 -0500 +++ ncurses-5.4-r1.ebuild 2004-03-11 19:28:55.663034328 -0500 @@ -33,6 +33,7 @@ # Shared objects are compiled properly with -fPIC, but # standard libs also require this. 64-bit && append-flags -fPIC + filter-flags -pie # Detect mips systems use mips && gnuconfig_update
That's already in standard portage and does not help, the same error crops up.
lets try this then. - filter-flags -pie + LDFLAGS="${LDFLAGS/-pie/-nopie}" http://dev.gentoo.org/~solar/pie-20040314/ncurses-5.4-r1.ebuild.patch
Created attachment 27483 [details, diff] Patch to introduce filter-ldflags into flag-o-matic.eclass
Created attachment 27484 [details, diff] ncurses-5.4-r1.ebuild: make use of filter-ldflags to strip -pie
Created attachment 27485 [details, diff] glibc-2.3.3_pre20040207.ebuild: make use of filter-ldflags to strip -pie
I added filter-ldflags to /usr/portage/eclass/flag-o-matic.eclass, and changed the ncurses and glibc ebuilds accordingly. This works for me, and should for everyone :) See posted diffs.
Now thats the stuff dreams are made of. Thanks ceed I'll merge these shortly.
filter-ldflags() {} added to flag-o-matic filter-ldflags -pie added to ncurses filter-ldflags -pie added to glibc