Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431718 - sys-devel/binutils-2.22-r1 fails to build with <sys-devel/patch-2.6.1
Summary: sys-devel/binutils-2.22-r1 fails to build with <sys-devel/patch-2.6.1
Status: RESOLVED DUPLICATE of bug 391385
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-17 09:42 UTC by Seraphim Mellos
Modified: 2012-08-17 16:35 UTC (History)
0 users

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


Attachments
Patch output from the failed patch (66_all_binutils-2.22-warn-textrel.patch.out,9.30 KB, text/plain)
2012-08-17 09:43 UTC, Seraphim Mellos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Seraphim Mellos 2012-08-17 09:42:49 UTC
When trying to build sys-devel/binutils-2.22-r1 with =patch-1.5.9 installed the emerge fails when applying patch 66_all_binutils-2.22-warn-textrel.patch 

Emerging =patch-2.6.1 fixes the problem.

I guess one the way to handle this, would be for the binutils ebuild to depend on patch explicitly >=2.6.1 

Reproducible: Always

Steps to Reproduce:
1. Ensure that `patch --version` is < 2.6.1 
2. emerge =sys-devel/binutils-2.22-r1
Actual Results:  
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-devel/binutils-2.22-r1
>>> Failed to emerge sys-devel/binutils-2.22-r1, Log file:
>>>  '/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 1.96, 1.10, 1.03
 * Package:    sys-devel/binutils-2.22-r1
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE:        cxx elibc_glibc kernel_linux nls userland_GNU x86 zlib
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking binutils-2.22.tar.bz2 to /var/tmp/portage/sys-devel/binutils-2.22-r1/work
>>> Unpacking binutils-2.22-patches-1.5.tar.bz2 to /var/tmp/portage/sys-devel/binutils-2.22-r1/work
 * Applying various patches (bugfixes/updates) ...
 *   03_all_binutils-2.15.92.0.2-ppc64-pie.patch ...
 [ ok ]
 *   08_all_binutils-RPATH_ENVVAR-smack.patch ...
 [ ok ]
 *   10_all_binutils-2.22-ppc-textrels.patch ...
 [ ok ]
 *   12_all_sh-targets.patch ...
 [ ok ]
 *   20_all_ld-sysroot.patch ...
 [ ok ]
 *   30_all_binutils-2.22-flexible-tests.patch ...
 [ ok ]
 *   40_all_binutils-2.22-s390x-PIC.patch ...
 [ ok ]
 *   50_all_binutils-2.22-hppa-tls-pr13476.patch ...
 [ ok ]
 *   51_all_binutils-2.22-hppa-plt-pr13387.patch ...
 [ ok ]
 *   62_all_binutils-2.22-hardened-crtbegin.patch ...
 [ ok ]
 *   63_all_binutils-2.22-pt-pax-flags-20111121.patch ...
 [ ok ]
 *   66_all_binutils-2.22-warn-textrel.patch ...

 * Failed Patch: 66_all_binutils-2.22-warn-textrel.patch !
 *  ( /var/tmp/portage/sys-devel/binutils-2.22-r1/work/patch/66_all_binutils-2.22-warn-textrel.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/sys-devel/binutils-2.22-r1/temp/66_all_binutils-2.22-warn-textrel.patch.out

 * ERROR: sys-devel/binutils-2.22-r1 failed (unpack phase):
 *   Failed Patch: 66_all_binutils-2.22-warn-textrel.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 2975:  Called toolchain-binutils_src_unpack
 *   environment, line 3763:  Called tc-binutils_apply_patches
 *   environment, line 3072:  Called epatch
 *   environment, line 1508:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/binutils-2.22-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/binutils-2.22-r1'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22'
 * S: '/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22'

 * Messages for package sys-devel/binutils-2.22-r1:

 * Failed Patch: 66_all_binutils-2.22-warn-textrel.patch !
 *  ( /var/tmp/portage/sys-devel/binutils-2.22-r1/work/patch/66_all_binutils-2.22-warn-textrel.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/sys-devel/binutils-2.22-r1/temp/66_all_binutils-2.22-warn-textrel.patch.out
 * ERROR: sys-devel/binutils-2.22-r1 failed (unpack phase):
 *   Failed Patch: 66_all_binutils-2.22-warn-textrel.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 2975:  Called toolchain-binutils_src_unpack
 *   environment, line 3763:  Called tc-binutils_apply_patches
 *   environment, line 3072:  Called epatch
 *   environment, line 1508:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/binutils-2.22-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/binutils-2.22-r1'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/binutils-2.22-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22'
 * S: '/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22'

Expected Results:  
binutils emerge should complete 

Portage 2.1.11.10 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.11.3, 3.3.0-gentoo i686)
=================================================================
System uname: Linux-3.3.0-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Fri, 17 Aug 2012 08:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.5.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.11.3
Repositories: gentoo xen x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula dlj-1.1 AdobeFlash-10.1 Nero-EULA-US"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=10.0"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en el"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/xen /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl berkdb bzip2 cairo cli cracklib crypt cups cxx dbus dri fortran gdbm gpm iconv ipv6 jpeg modules mudflap ncurses nls nptl openmp pam pcre png pppd readline session ssl tcpd truetype unicode vim-syntax x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en el" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Seraphim Mellos 2012-08-17 09:43:49 UTC
Created attachment 321550 [details]
Patch output from the failed patch
Comment 2 SpanKY gentoo-dev 2012-08-17 16:35:13 UTC
patch-2.6 is required by @system now

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