Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Mon Dec 11, 2017 8:19 pm Post subject: btrfs compression causing epatch to fail |
|
|
I started doing the 17.0 switch, and on one of my boxes but not the other the libtool rebuild failed right out of the gate.
The very last line of the error down below pointed me to the source — doing "btrfs property set /var/tmp/portage/ compression ''; rm -r /var/tmp/portage/*/" solved it. I'll post this here anyway in case it helps someone else with the same problem. But I'm still wondering why this happened to begin with, anyone know what went wrong?
Code: | >>> Unpacking source...
>>> Unpacking libtool-2.4.6.tar.xz to /var/tmp/portage/sys-devel/libtool-2.4.6-r4/work
>>> Source unpacked in /var/tmp/portage/sys-devel/libtool-2.4.6-r4/work
>>> Preparing source in /var/tmp/portage/sys-devel/libtool-2.4.6-r4/work/libtool-2.4.6 ...
* Applying libtool-2.4.3-use-linux-version-in-fbsd.patch ...
[ ok ]
* Applying libtool-2.4.6-link-specs.patch ...
* A dry-run of patch command succeeded, but actually
* applying the patch failed!
* Failed Patch: libtool-2.4.6-link-specs.patch !
* ( /var/tmp/portage/sys-devel/libtool-2.4.6-r4/files/libtool-2.4.6-link-specs.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/sys-devel/libtool-2.4.6-r4/temp/libtool-2.4.6-link-specs.patch.out
* ERROR: sys-devel/libtool-2.4.6-r4::gentoo failed (prepare phase):
* Failed Patch: libtool-2.4.6-link-specs.patch! |
/var/tmp/portage/sys-devel/libtool-2.4.6-r4/temp/libtool-2.4.6-link-specs.patch.out: | ***** libtool-2.4.6-link-specs.patch *****
PWD: /var/tmp/portage/sys-devel/libtool-2.4.6-r4/work/libtool-2.4.6
PATCH TOOL: patch -> /usr/bin/patch
VERSION INFO:
GNU patch 2.7.5
Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.
Copyright (C) 1988 Larry Wall
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Larry Wall and Paul Eggert
==========================================
PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch --dry-run -f < '/var/tmp/portage/sys-devel/libtool-2.4.6-r4/files/libtool-2.4.6-link-specs.patch'
==========================================
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 702a97fbb09bd7088a50f2b239016d1e32843c24 Mon Sep 17 00:00:00 2001
|From: Pavel Raiskup <praiskup@redhat.com>
|Date: Fri, 18 Sep 2015 10:36:43 +0200
|Subject: [PATCH] libtool: fix GCC linking with -specs=*
|
|References:
|https://bugzilla.redhat.com/show_bug.cgi?id=985592
|
|* build-aux/ltmain.in (func_mode_link): Pass -specs=*
|to the linker, Fedora uses this option for hardening.
|
|Signed-off-by: Pavel Raiskup <praiskup@redhat.com>
|---
| build-aux/ltmain.in | 4 +++-
| 1 file changed, 3 insertions(+), 1 deletion(-)
|
|diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
|index d5cf07a..0c40da0 100644
|--- a/build-aux/ltmain.in
|+++ b/build-aux/ltmain.in
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 41
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|patch the generated file too to keep help2man from generating man pages
|https://bugs.gentoo.org/556512
|
|--- a/build-aux/ltmain.sh
|+++ b/build-aux/ltmain.sh
--------------------------
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 --dry-run -f < '/var/tmp/portage/sys-devel/libtool-2.4.6-r4/files/libtool-2.4.6-link-specs.patch'
==========================================
checking file build-aux/ltmain.in
File build-aux/ltmain.sh is read-only; trying to patch anyway
checking file build-aux/ltmain.sh
Hunk #1 succeeded at 7272 (offset 1912 lines).
patch program exited with status 0
==========================================
ACTUALLY APPLYING libtool-2.4.6-link-specs.patch ...
PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/sys-devel/libtool-2.4.6-r4/files/libtool-2.4.6-link-specs.patch'
==========================================
patching file build-aux/ltmain.in
File build-aux/ltmain.sh is read-only; trying to patch anyway
patching file build-aux/ltmain.sh
Hunk #1 succeeded at 7272 (offset 1912 lines).
patch: setting attribute btrfs.compression for btrfs.compression: Permission denied
patch program exited with status 2 |
|
|