Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530090 - dev-libs/boost-1.55.0-r2 - Failed Patch: boost-1.52.0-threads.patch !
Summary: dev-libs/boost-1.55.0-r2 - Failed Patch: boost-1.52.0-threads.patch !
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-22 00:06 UTC by mbarnes
Modified: 2014-12-09 15:51 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 mbarnes 2014-11-22 00:06:49 UTC
While emerging dev-libs/boost-1.55.0-r2 I get an error while patching: 
Code:

>>> Preparing source in /var/tmp/portage/dev-libs/boost-1.55.0-r2/work/boost_1_55_0 ... 
 * Applying boost-1.51.0-respect_python-buildid.patch ...                [ ok ] 
 * Applying boost-1.51.0-support_dots_in_python-buildid.patch ...        [ ok ] 
 * Applying boost-1.48.0-no_strict_aliasing_python2.patch ...            [ ok ] 
 * Applying boost-1.48.0-disable_libboost_python3.patch ...              [ ok ] 
 * Applying boost-1.48.0-python_linking.patch ...                        [ ok ] 
 * Applying boost-1.48.0-disable_icu_rpath.patch ...                     [ ok ] 
 * Applying boost-1.55.0-context-x32.patch ...                           [ ok ] 
 * Applying boost-1.55.0-tools-c98-compat.patch ...                      [ ok ] 
 * Applying boost-1.52.0-threads.patch ... 

 * Failed Patch: boost-1.52.0-threads.patch ! 
 *  ( /usr/portage/dev-libs/boost/files/boost-1.52.0-threads.patch ) 
 * 
 * Include in your bugreport the contents of: 
 * 
 *   /var/tmp/portage/dev-libs/boost-1.55.0-r2/temp/boost-1.52.0-threads.patch.out 

 * ERROR: dev-libs/boost-1.55.0-r2::gentoo failed (prepare phase): 
 *   Failed Patch: boost-1.52.0-threads.patch! 


the relevant part of /var/tmp/portage/dev-libs/boost-1.55.0-r2/temp/boost-1.52.0-threads.patch.out seems to be: 
Code:

***** boost-1.52.0-threads.patch ***** 
PWD: /var/tmp/portage/dev-libs/boost-1.55.0-r2/work/boost_1_55_0 

NOTE: skipping -p0 due to absolute paths in patch: 
3:--- /trunk/boostcpp.jam       (revision 79301)^M 
4:+++ /trunk/boostcpp.jam       (revision 81000)^M 
====================================== 

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dev-libs/boost/files/boost-1.52.0-threads.patch' 

====================================== 
can't find file to patch at input line 5 
Perhaps you used the wrong -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|Index: /trunk/boostcpp.jam^M 
|===================================================================^M 
|--- /trunk/boostcpp.jam        (revision 79301)^M 
|+++ /trunk/boostcpp.jam        (revision 81000)^M 
-------------------------- 
No file to patch.  Skipping patch. 
3 out of 3 hunks ignored 

patch program exited with status 1 
====================================== 

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dev-libs/boost/files/boost-1.52.0-threads.patch' 

====================================== 
patching file boostcpp.jam 
Hunk #1 FAILED at 210. 
Hunk #2 FAILED at 277. 
Hunk #3 FAILED at 284. 
3 out of 3 hunks FAILED -- saving rejects to file boostcpp.jam.rej 

patch program exited with status 1 
====================================== 

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dev-libs/boost/files/boost-1.52.0-threads.patch' 

====================================== 
missing header for unified diff at line 5 of patch 
can't find file to patch at input line 5 
Perhaps you used the wrong -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|Index: /trunk/boostcpp.jam^M 
|===================================================================^M 
|--- /trunk/boostcpp.jam        (revision 79301)^M 
|+++ /trunk/boostcpp.jam        (revision 81000)^M 
-------------------------- 
No file to patch.  Skipping patch. 
3 out of 3 hunks ignored 

patch program exited with status 1 
====================================== 

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch  < '/usr/portage/dev-libs/boost/files/boost-1.52.0-threads.patch' 

====================================== 
missing header for unified diff at line 5 of patch 
can't find file to patch at input line 5 
Perhaps you used the wrong -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|Index: /trunk/boostcpp.jam^M 
|===================================================================^M 
|--- /trunk/boostcpp.jam        (revision 79301)^M 
|+++ /trunk/boostcpp.jam        (revision 81000)^M 
-------------------------- 
No file to patch.  Skipping patch. 
3 out of 3 hunks ignored 

patch program exited with status 1 


The obligatory build info: 
Code:

emerge --info '=dev-libs/boost-1.55.0-r2::gentoo' 
Portage 2.2.8-r2 (hardened/linux/amd64/selinux, gcc-4.8.3, glibc-2.12.2, 3.0.4-hardened-r4 x86_64) 
================================================================= 
                        System Settings 
================================================================= 
System uname: Linux-3.0.4-hardened-r4-x86_64-AMD_FX-tm-8120_Eight-Core_Processor-with-gentoo-2.0.3 
KiB Mem:     8164724 total,   3558640 free 
KiB Swap:   31218684 total,  31211912 free 
Timestamp of tree: Wed, 19 Nov 2014 05:15:01 +0000 
ld GNU ld (GNU Binutils) 2.20.1.20100303 
app-shells/bash:          4.2_p50 
dev-java/java-config:     2.2.0 
dev-lang/perl:            5.18.2-r1 
dev-lang/python:          2.7.7, 3.1.3-r1, 3.3.5-r1 
dev-util/cmake:           2.8.12.2-r1 
dev-util/pkgconfig:       0.28-r1 
sys-apps/baselayout:      2.0.3 
sys-apps/openrc:          0.8.3 
sys-apps/sandbox:         2.6-r1 
sys-devel/autoconf:       2.69 
sys-devel/automake:       1.11.1, 1.13.4 
sys-devel/binutils:       2.20.1-r1 
sys-devel/gcc:            4.4.5, 4.5.3-r1, 4.8.3 
sys-devel/gcc-config:     1.7.3 
sys-devel/libtool:        2.4.2-r1 
sys-devel/make:           3.82 
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) 
sys-libs/glibc:           2.12.2 
Repositories: gentoo 
ACCEPT_KEYWORDS="amd64" 
ACCEPT_LICENSE="* -@EULA" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=k8 -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" 
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" 
CXXFLAGS="-march=k8 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FCFLAGS="-O2 -pipe" 
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" 
FFLAGS="-O2 -pipe" 
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://mirror.usu.edu/mirrors/gentoo/" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
MAKEOPTS="-j1" 
PKGDIR="/usr/portage/packages" 
PORTAGE_CONFIGROOT="/" 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="" 
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" 
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify mmx modules multilib ncurses nls nptl open_perms openmp pam pax_kernel pcre readline selinux session sse sse2 ssl tcpd unconfined unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 author" 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 ublox 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Help would be greatly appreciated. Thank you in advance!

More info may be at (if anyone ever responds):
https://forums.gentoo.org/viewtopic-p-7654806.html#7654806
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-22 10:28:42 UTC
Please attach the entire build log to this bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-22 10:31:41 UTC
Also, post the output of `emerge -vpq sys-devel/patch'.
Also, why is your system so outdated?
Comment 3 Pierre 2014-12-03 12:52:59 UTC
I have the same issue.
Comment 4 Sergey Popov (RETIRED) gentoo-dev 2014-12-03 13:53:24 UTC
(In reply to Pierre from comment #3)
> I have the same issue.

As said earlier: what's your version of sys-devel/patch ?
And as usual - post your emerge --info
Comment 5 Pierre 2014-12-04 09:21:08 UTC
upgrading sys-devel/patch solved the problem for me.
Comment 6 Sergey Popov (RETIRED) gentoo-dev 2014-12-04 10:49:55 UTC
Ok, then, problem was in too old system
Comment 7 Pierre 2014-12-09 00:28:39 UTC
maybe you could add a check for this?
Comment 8 Sergey Popov (RETIRED) gentoo-dev 2014-12-09 09:45:58 UTC
(In reply to Pierre from comment #7)
> maybe you could add a check for this?

There are too much problems that could lead to broken things if you have outdated system and new userland.

If you encounter such problems - basic solution is:

emerge -u @system

Checks for patch version in such cases should be added only for base-system packages