* Patching to get working PIE binaries on PIE (hardened) platforms * Applying glibc-2.5-hardened-pie.patch ... * Failed Patch: glibc-2.5-hardened-pie.patch ! * ( /usr/portage/sys-libs/glibc/files/2.5/glibc-2.5-hardened-pie.patch ) Reproducible: Always Steps to Reproduce: 1.emerge -uDN glibc Actual Results: * Done with patching * Patching to get working PIE binaries on PIE (hardened) platforms * Applying glibc-2.5-hardened-pie.patch ... * Failed Patch: glibc-2.5-hardened-pie.patch ! * ( /usr/portage/sys-libs/glibc/files/2.5/glibc-2.5-hardened-pie.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/sys-libs/glibc-2.5-r1/temp/glibc-2.5-hardened-pie.patch-12339.out !!! ERROR: sys-libs/glibc-2.5-r1 failed. Call stack: ebuild.sh, line 1614: Called dyn_unpack ebuild.sh, line 751: Called qa_call 'src_unpack' environment, line 4065: Called src_unpack glibc-2.5-r1.ebuild, line 1089: Called toolchain-glibc_src_unpack glibc-2.5-r1.ebuild, line 224: Called epatch '/usr/portage/sys-libs/glibc/files/2.5/glibc-2.5-hardened-pie.patch' eutils.eclass, line 341: Called die !!! Failed Patch: glibc-2.5-hardened-pie.patch! !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/log/portage/sys-libs:glibc-2.5-r1:20070313-125201.log'. # eix glibc [U] sys-libs/glibc Available versions: (2.2) [P]2.2.5-r10 [P]2.3.2-r12 2.3.5-r2 2.3.5-r3 2.3.6-r4 2.3.6-r5 2.4-r4 2.5 (~)2.5-r1 Installed versions: 2.5(2.2)(11:26:46 PM 02/22/2007)(-build -glibc-compat20 -glibc-omitfp hardened -multilib nls nptl nptlonly -profile -selinux) Homepage: http://www.gnu.org/software/libc/libc.html Description: GNU libc6 (also called glibc2) C library # emerge --info Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo-r2 i686) ================================================================= System uname: 2.6.20-gentoo-r2 i686 AMD Athlon(tm) XP Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 13 Mar 2007 12:30:06 +0000 dev-java/java-config: 1.3.7, 2.0.31-r4 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/" LANG="en_US.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/nx" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac accessability acl adns aiglx aim alsa apache2 arts audiofile bash-completion bcmath berkdb bidi bindinst bitmap-fonts browserplugin bzip2 cairo calendar caps cdr cli cracklib crypt cups curlwrappers dbus dedicated dga dio divx4linux dlloader dri dts dvd dvdr eds emacs emacs-w3 emboss encode erandom esd ethereal examples expat fam fastcgi fbcon firefox font fortran ftp gd gdbm gif glitz glut gnome gnusetup gnutls gpm gstreamer gtk gtkhtml hal hardened iconv imap immqt-bc inifile innodb ipv6 isdnlog ithreads java javascript jp2 jpeg jpeg2k kde kerberos krb4 ldap libcaca libclamv libg++ live lzo mad maildir mailwrapper midi mikmod milter mime ming mmap mmx mono motif mozbranding mp3 mpeg mpi msn musicbrainz ncurses nls nptl nptlonly nvidia oav objc ogg opengl oracle oscar oss pam pcre pdf perl php pic png portaudio posix ppds pppd python qt3 qt4 quicktime readline real realmedia reflection samba sdl session shared spell spl sqlite sse ssl symlink tcltktcpd tcpd test threads truetype truetype-fonts type1-fonts unicode urandom usb usepackagedmakefiles userlocales utempter vcd vhosts videos vorbis win32codecs wmf wxwindows x86 xcomposite xinerama xml xorg xpm xprint xrandr xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="cmpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 113166 [details] glibc-2.5-hardened-pie.patch-12339.out Here is /var/tmp/portage/sys-libs/glibc-2.5-r1/temp/glibc-2.5-hardened-pie.patch-12339.out
Created attachment 113169 [details] sys-libs:glibc-2.5-r1:20070313-125201.log Here is the log
*** Bug 170736 has been marked as a duplicate of this bug. ***
Thanks for the report; the patch will be fixed soon. On a related note, USE=hardened on glibc is only supported with hardened gcc. I've masked the combination in default-linux - if you sync up and merge again you should get the normal glibc just fine.
Fixed in CVS.