Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517884 - x11-libs/cairo-9999 - Failed Patch: cairo-1.12.16-lto-optional.patch !
Summary: x11-libs/cairo-9999 - Failed Patch: cairo-1.12.16-lto-optional.patch !
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-23 16:33 UTC by Perfect Gentleman
Modified: 2014-08-19 21:01 UTC (History)
4 users (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 Perfect Gentleman 2014-07-23 16:33:26 UTC
* Messages for package x11-libs/cairo-9999:

 * Failed Patch: cairo-1.12.16-lto-optional.patch !
 *  ( /usr/portage/x11-libs/cairo/files/cairo-1.12.16-lto-optional.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /tmp/portage/x11-libs/cairo-9999/temp/cairo-1.12.16-lto-optional.patch.out
 * ERROR: x11-libs/cairo-9999::gentoo failed (prepare phase):
 *   Failed Patch: cairo-1.12.16-lto-optional.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_prepare
 *   environment, line 4684:  Called epatch '/usr/portage/x11-libs/cairo/files/cairo-1.12.16-lto-optional.patch'
 *   environment, line 2055:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=x11-libs/cairo-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/cairo-9999::gentoo'`.
 * The complete build log is located at '/tmp/portage/x11-libs/cairo-9999/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/x11-libs/cairo-9999/temp/environment'.
 * Working directory: '/tmp/portage/x11-libs/cairo-9999/work/cairo-9999'
 * S: '/tmp/portage/x11-libs/cairo-9999/work/cairo-9999'
Comment 1 Perfect Gentleman 2014-07-23 16:35:00 UTC
***** cairo-1.12.16-lto-optional.patch *****
PWD: /tmp/portage/x11-libs/cairo-9999/work/cairo-9999

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

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch  < '/usr/portage/x11-libs/cairo/files/cairo-1.12.16-lto-optional.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:
--------------------------
|diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
|index f984eb2..15b3da2 100644
|--- a/build/configure.ac.warnings
|+++ b/build/configure.ac.warnings
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

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

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch  < '/usr/portage/x11-libs/cairo/files/cairo-1.12.16-lto-optional.patch'

============================================
checking file build/configure.ac.warnings
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED

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

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch  < '/usr/portage/x11-libs/cairo/files/cairo-1.12.16-lto-optional.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:
--------------------------
|diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
|index f984eb2..15b3da2 100644
|--- a/build/configure.ac.warnings
|+++ b/build/configure.ac.warnings
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

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

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch  < '/usr/portage/x11-libs/cairo/files/cairo-1.12.16-lto-optional.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:
--------------------------
|diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
|index f984eb2..15b3da2 100644
|--- a/build/configure.ac.warnings
|+++ b/build/configure.ac.warnings
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

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

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch  < '/usr/portage/x11-libs/cairo/files/cairo-1.12.16-lto-optional.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:
--------------------------
|diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
|index f984eb2..15b3da2 100644
|--- a/build/configure.ac.warnings
|+++ b/build/configure.ac.warnings
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
Comment 2 Perfect Gentleman 2014-07-25 10:31:47 UTC
it's building ok without that patch and with USE="lto"
Comment 3 jospezial 2014-08-15 16:15:51 UTC
from:
http://cgit.freedesktop.org/cairo/commit/?id=c7ff9bb32e20679d6da4e8a2856be716e5bd9e12

Remove LTO support
This just never worked too well and caused too many issues. I don't think anyone will miss this. As mentioned in the below bug report, proper LTO support also requires using special versions of ranlib, nm and ar which support the LTO object files. Otherwise, calling the normal ranlib on an .a library breaks the list of exported symbols and thus completely breaks the static library. This (partly) reverts the following commits: c3645d97ebd24c6f7ad850785d585aebc706a11c configure.ac: Add a --disable-lto configure option d486ea30f1a58640a1178de74f705a73845b1cda configure: Conditionally include -flto 0870c6fb5b39dcc04fa376123848adde2d06d2ce gcc-4.5 warnings and optimisation flags. (The last commit is the one which brought us -flto in the first place even though it doesn't talk about this. It's also the one which is only reverted partly.) Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=77060
Comment 4 Matt Turner gentoo-dev 2014-08-19 21:01:23 UTC
I've dropped this patch and USE=lto from cairo-9999.