Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442712 - sys-libs/glibc-2.16.0[hardened] - Failed Patch: glibc-2.12-hardened-pie.patch
Summary: sys-libs/glibc-2.16.0[hardened] - Failed Patch: glibc-2.12-hardened-pie.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-11 13:15 UTC by iGentoo
Modified: 2012-11-11 22:52 UTC (History)
1 user (show)

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


Attachments
glibc-2.16-hardened-pie.patch (glibc-2.16-hardened-pie.patch,1.52 KB, patch)
2012-11-11 13:17 UTC, iGentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iGentoo 2012-11-11 13:15:38 UTC
* glibc-2.16.0.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...              [ ok ]
 * glibc-ports-2.16.0.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...        [ ok ]
 * glibc-2.16.0-patches-7.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...   [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
make -j10 -s glibc-test 
make -j10 -s glibc-test 
>>> Unpacking source...
 * Checking gcc for __thread support ...                                 [ ok ]
 * Checking kernel version (3.6.6 >= 3.1.0) ...                          [ ok ]
 * Checking linux-headers version (3.6.0 >= 3.1.0) ...                   [ ok ]
>>> Unpacking glibc-2.16.0.tar.xz to /var/tmp/portage/sys-libs/glibc-2.16.0/work
>>> Unpacking glibc-ports-2.16.0.tar.xz to /var/tmp/portage/sys-libs/glibc-2.16.0/work/glibc-2.16.0
>>> Unpacking glibc-2.16.0-patches-7.tar.bz2 to /var/tmp/portage/sys-libs/glibc-2.16.0/work
 * Applying Gentoo Glibc Patchset 2.16.0-7 ...
 *   0020_all_glibc-tweak-rfc1918-lookup.patch ...                       [ ok ]
 *   0030_all_glibc-2.17-ppc-fcntl-updates.patch ...                     [ ok ]
 *   0040_all_glibc-2.16-no-libgcc_s.patch ...                           [ ok ]
 *   0052_all_glibc-2.14-resolv-hp-assert.patch ...                      [ ok ]
 *   0055_all_glibc-2.16-x32-malloc-align.patch ...                      [ ok ]
 *   0068_all_glibc-2.16-glibc-revert-fseek-on-fclose.patch ...          [ ok ]
 *   0070_all_glibc-2.16-sunrpc-bootstrap.patch ...                      [ ok ]
 *   0080_all_glibc-2.16-revert-x86_64-eagain-pthread_cond_wait.patch .. [ ok ]
 *   0085_all_glibc-disable-ldconfig.patch ...                           [ ok ]
 *   1005_all_glibc-sigaction.patch ...                                  [ ok ]
 *   1008_all_glibc-2.16-fortify.patch ...                               [ ok ]
 *   1040_all_2.3.3-localedef-fix-trampoline.patch ...                   [ ok ]
 *   1055_all_glibc-resolv-dynamic.patch ...                             [ ok ]
 *   1070_all_glibc-fadvise64_64.patch ...                               [ ok ]
 *   1095_all_glibc-2.14-assume-pipe2-dup3.patch ...                     [ ok ]
 *   1506_all_hppa-prlimit64.patch ...                                   [ ok ]
 *   3020_all_glibc-tests-sandbox-libdl-paths.patch ...                  [ ok ]
 *   5063_all_glibc-dont-build-timezone.patch ...                        [ ok ]
 *   6022_all_alpha-add-fdatasync-support.patch ...                      [ ok ]
 *   6230_all_arm-glibc-hardened.patch ...                               [ ok ]
 *   6250_all_glibc-2.14-arm-unaligned-reloc.patch ...                   [ ok ]
 *   6605_all_glibc-2.4-fpu-cw-mips.patch ...                            [ ok ]
 * Done with patching
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating scripts/config.sub                                         [ ok ]
 *   Updating scripts/config.guess                                       [ ok ]
 * Patching to get working PIE binaries on PIE (hardened) platforms
 * Applying glibc-2.12-hardened-pie.patch ...

 * Failed Patch: glibc-2.12-hardened-pie.patch !
 *  ( /usr/portage/sys-libs/glibc/files/2.12/glibc-2.12-hardened-pie.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/sys-libs/glibc-2.16.0/temp/glibc-2.12-hardened-pie.patch.out

 * ERROR: sys-libs/glibc-2.16.0 failed (unpack phase):
 *   Failed Patch: glibc-2.12-hardened-pie.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_unpack
 *   environment, line 3149:  Called eblit-run 'src_unpack'
 *   environment, line  826:  Called eblit-run-maybe 'eblit-src_unpack-post'
 *   environment, line  830:  Called eblit-src_unpack-post
 *   environment, line  837:  Called epatch '/usr/portage/sys-libs/glibc/files/2.12/glibc-2.12-hardened-pie.patch'
 *   environment, line 1372:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 


emerge --info
Portage 2.2.0_alpha142 (hardened/linux/amd64/selinux, gcc-4.7.2, glibc-2.16.0, 3.6.6-lto x86_64)
=================================================================
System uname: Linux-3.6.6-lto-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2
Timestamp of tree: Sun, 11 Nov 2012 12:15:01 +0000
ld GNU gold (GNU Binutils 2.23.0) 1.11
ccache version 3.1.8 [disabled]
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1, 3.3.0
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0::custom
Repositories: gentoo systemd hardened-dev gnome custom
Installed sets: @local-protected
ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
DISTDIR="/usr/local/portage/distfiles"
FCFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe"
LINGUAS="en en_US zh zh_CN"
MAKEOPTS="V=1 -j10"
PKGDIR="/usr/local/portage/packages-amd64"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9ef"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/hardened-development /var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://mirrors.ustc.edu.cn/gentoo-portage"
USE="X acl alsa amd64 audit bash-completion berkdb bzip2 c++0x cairo caps cli cracklib crypt custom-cflags cxx dbus dri ffmpeg gdbm gmp gnome gpm gtk gtk3 hardened iconv icu ipv6 jit jpeg jpeg2k justify lzma mmx modules mudflap multilib ncurses nls nptl open_perms opengl openmp orc pam pcre png pppd pulseaudio qt4 readline selinux session sse sse2 ssl svg systemd tcpd threads tiff udev unicode urandom vim-syntax xattr xinetd zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart btrfs caps dmsquash-live gensplash livenet lvm nfs ssh-client syslog systemd" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm mips64el x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, USE_PYTHON
Comment 1 iGentoo 2012-11-11 13:17:04 UTC
Created attachment 329202 [details, diff]
glibc-2.16-hardened-pie.patch
Comment 2 Magnus Granberg gentoo-dev 2012-11-11 15:28:58 UTC
Fixed in cvs, so it will take some time before it hit the mirrors.