Bug 198335 - sys-libs/glibc-2.7 fails to apply hardened patches
Bug#: 198335 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: toolchain@gentoo.org Reported By: phreak@gentoo.org
Component: Core system
URL: 
Summary: sys-libs/glibc-2.7 fails to apply hardened patches
Keywords:  
Status Whiteboard: 
Opened: 2007-11-07 08:48 0000
Description:   Opened: 2007-11-07 08:48 0000
* Done with patching
 * Patching to get working PIE binaries on PIE (hardened) platforms
 * Applying glibc-2.5-hardened-pie.patch ...                                   
                                                                               
                [ ok ]
 * Applying glibc-2.5-hardened-configure-picdefault.patch ...                  
                                                                               
                [ ok ]
 * Applying glibc-2.6-hardened-inittls-nosysenter.patch ...

 * Failed Patch: glibc-2.6-hardened-inittls-nosysenter.patch !
 *  (
/usr/portage/sys-libs/glibc/files/2.6/glibc-2.6-hardened-inittls-nosysenter.patch
)
 *
 * Include in your bugreport the contents of:
 *
 *  
/var/tmp/portage/sys-libs/glibc-2.7/temp/glibc-2.6-hardened-inittls-nosysenter.patch-10264.out

------- Comment #1 From Christian Heim (RETIRED) 2007-11-07 08:48:43 0000 -------
Created an attachment (id=135409) [details]
glibc-2.6-hardened-inittls-nosysenter.patch-10264.out

------- Comment #2 From Ewgenij Starostin 2007-11-08 16:15:00 0000 -------
Created an attachment (id=135499) [details]
Patch to patch the patch which didn’t patch.

A change in csu/libc-start.c from 2.6 to 2.7 confuses patch(1), so here’s a
patch to put the changes into the patch. With this change (and the patch from
bug 196926) glibc-2.7 compiles on my machine.

------- Comment #3 From Ewgenij Starostin 2007-11-10 21:51:21 0000 -------
…Oh, and I should mention that it works, too.

------- Comment #4 From SpanKY 2007-11-11 20:12:00 0000 -------
fixed in cvs