Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170736 - sys-libs/glibc-2.5-r1 failed with USE="hardened" flag enabled
Summary: sys-libs/glibc-2.5-r1 failed with USE="hardened" flag enabled
Status: RESOLVED DUPLICATE of bug 170731
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-13 14:30 UTC by Panagiotis Christopoulos (RETIRED)
Modified: 2007-03-13 14:35 UTC (History)
0 users

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


Attachments
the working glibc-2.5-hardened-pie.patch (glibc-2.5-hardened-pie.patch,1.43 KB, patch)
2007-03-13 14:34 UTC, Panagiotis Christopoulos (RETIRED)
Details | Diff
The fixed ebuild (glibc-2.5-r1.ebuild,37.69 KB, text/plain)
2007-03-13 14:35 UTC, Panagiotis Christopoulos (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-03-13 14:30:51 UTC
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.
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-03-13 14:34:00 UTC
Created attachment 113176 [details, diff]
the working glibc-2.5-hardened-pie.patch
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-03-13 14:35:01 UTC
Created attachment 113178 [details]
The fixed ebuild
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-13 14:35:58 UTC

*** This bug has been marked as a duplicate of bug 170731 ***