Today, I made some experiments, and tried to upgrade from glibc-2.5 to glibc-2.5-r1 with USE="hardened", in a chrooted, I've got in my laptop(I inform you, because you will say that I'm crazy if you see my emerge --info output:p). The whole emerge procedure, stopped twice because of syntax errors inside two files. The first errors are in file /usr/portage/sys-libs/glibc/files/2.5/glibc-2.5-hardened-pie.patch There where wrong diff lines(the guy who created the patch, I suppose, he had modified the original Makeconfig when he tried to create it). The patch that follows is ok. The second error is inside the glibc-2.5-r1.ebuild, in line 229: cp -f "${FILESDIR}"/2.5/glibc-2.4-gentoo-stack_chk_fail.c \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Inside 2.5 dir of /usr/portage/sys-libs/glibc/files, there is a glibc-2.5-gentoo-stack_chk_fail.c file instead. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ If someone fix these issues,the emerge procedure continues just fine. I checked it in my portage overlay, and: lady of lorien glibc # emerge -pv glibc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-libs/glibc-2.5-r1 USE="hardened nls nptl nptlonly -build -debug -glibc-compat20 -glibc-omitfp (-multilib) -profile (-selinux)" 0 kB [5] Total: 1 package (1 reinstall), Size of downloads: 0 kB Portage overlays: [1] /usr/portage/local/layman/toolchain [2] /usr/local/portage [3] /usr/local/portage/eleos/xeffects/trunk [4] /usr/local/portage/eleos/xeffects/experimental [5] /usr/local/portage/portage lady of lorien glibc # my patched, follow Reproducible: Always Steps to Reproduce: 1.emerge glibc 2. 3.
Created attachment 113176 [details, diff] the working glibc-2.5-hardened-pie.patch
Created attachment 113178 [details] The fixed ebuild
*** This bug has been marked as a duplicate of bug 170731 ***