Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313135 - sys-devel/binutils-2.20.1 fails to apply 78_all_use-relro.patch correctly
Summary: sys-devel/binutils-2.20.1 fails to apply 78_all_use-relro.patch correctly
Status: RESOLVED DUPLICATE of bug 310279
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-04 21:04 UTC by Anthony Basile
Modified: 2010-04-04 22:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2010-04-04 21:04:10 UTC
When emerging binutils-2.20.1 on a mips uclibc system, 78_all_use-relro.patch fails to apply correctly.  If you remove all occurrences of --hash-style=sysv flag from the patch, then it succeeds and the package builds and installs correctly.

Reproducible: Always

Steps to Reproduce:
1. Unmask binutils-2.20.1
2. emerge =sys-devel/binutils-2.20.1


Actual Results:  
* Failed Patch: 78_all_use-relro.patch !
*  ( /var/tmp/portage/sys-devel/binutils-2.20.1/work/patch/78_all_use-relro.patch )



cat /var/tmp/portage/sys-devel/binutils-2.20.1/temp/78_all_use-relro.patch.out gives



***** 78_all_use-relro.patch *****

==================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/sys-devel/binutils-2.20.1/work/patch/78_all_use-relro.patch'

==================================
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|background:
|http://www.airs.com/blog/archives/189
|
|--- binutils/ld/ldmain.c
|+++ binutils/ld/ldmain.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|many tests rely on order of symbols and the relro option changes that.
|so to avoid having to constantly thrash in the test files, use the normal
|relro option that everyone tests against.
|
|--- binutils/ld/testsuite/lib/ld-lib.exp
|+++ binutils/ld/testsuite/lib/ld-lib.exp
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
==================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/sys-devel/binutils-2.20.1/work/patch/78_all_use-relro.patch'

==================================
patching file ld/ldmain.c
Hunk #1 succeeded at 266 (offset -27 lines).
patching file ld/testsuite/lib/ld-lib.exp
Hunk #1 FAILED at 84.
Hunk #2 FAILED at 158.
Hunk #3 FAILED at 189.
3 out of 3 hunks FAILED -- saving rejects to file ld/testsuite/lib/ld-lib.exp.rej
==================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/sys-devel/binutils-2.20.1/work/patch/78_all_use-relro.patch'

==================================
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|background:
|http://www.airs.com/blog/archives/189
|
|--- binutils/ld/ldmain.c
|+++ binutils/ld/ldmain.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|many tests rely on order of symbols and the relro option changes that.
|so to avoid having to constantly thrash in the test files, use the normal
|relro option that everyone tests against.
|
|--- binutils/ld/testsuite/lib/ld-lib.exp
|+++ binutils/ld/testsuite/lib/ld-lib.exp
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
==================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/sys-devel/binutils-2.20.1/work/patch/78_all_use-relro.patch'

==================================
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|background:
|http://www.airs.com/blog/archives/189
|
|--- binutils/ld/ldmain.c
|+++ binutils/ld/ldmain.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|many tests rely on order of symbols and the relro option changes that.
|so to avoid having to constantly thrash in the test files, use the normal
|relro option that everyone tests against.
|
|--- binutils/ld/testsuite/lib/ld-lib.exp
|+++ binutils/ld/testsuite/lib/ld-lib.exp
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
==================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/sys-devel/binutils-2.20.1/work/patch/78_all_use-relro.patch'

==================================
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|background:
|http://www.airs.com/blog/archives/189
|
|--- binutils/ld/ldmain.c
|+++ binutils/ld/ldmain.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|many tests rely on order of symbols and the relro option changes that.
|so to avoid having to constantly thrash in the test files, use the normal
|relro option that everyone tests against.
|
|--- binutils/ld/testsuite/lib/ld-lib.exp
|+++ binutils/ld/testsuite/lib/ld-lib.exp
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
Comment 1 Anthony Basile gentoo-dev 2010-04-04 21:06:13 UTC
emerge --info gives the following.  Note: binutils = binutils-2.20.1 because I hacked up the patch and removed --hash-style=sysv.


Portage 2.1.8.3 (uclibc/mips, gcc-4.3.4, uclibc-0.9.30.1-r1, 2.6.32.9 mips)
=================================================================
System uname: Linux-2.6.32.9-mips-MIPS_24Kc_V7.4-with-gentoo-2.0.1
Timestamp of tree: Sun, 04 Apr 2010 08:00:01 +0000
app-shells/bash:     4.1_p2-r1
dev-lang/python:     2.6.4-r1, 3.1.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="mips-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="mips-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests autoconfig distlocks fixpackages news nodoc noinfo noman parallel-fetch protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://192.168.3.1/pub/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.3.1/portage"
USE="cli cracklib crypt cxx dri mbox mips modules mudflap ncurses openmp pcre perl python readline reflection server session spl ssl ssp tcpd uclibc uclibc-compat wordexp xorg zlib" 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 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" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 2 Andreas K. Hüttel archtester gentoo-dev 2010-04-04 22:01:13 UTC

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