Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 683362 - dev-perl/File-RsyncP-0.740.0 fails to apply patch
Summary: dev-perl/File-RsyncP-0.740.0 fails to apply patch
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-15 06:08 UTC by Martin Wohlert
Modified: 2019-07-10 17:29 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,2.39 KB, text/x-log)
2019-04-15 06:08 UTC, Martin Wohlert
Details
File-RsyncP-0.700.0-make.patch.out (File-RsyncP-0.700.0-make.patch.out,2.12 KB, text/plain)
2019-04-15 06:09 UTC, Martin Wohlert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wohlert 2019-04-15 06:08:06 UTC
Created attachment 572854 [details]
build.log

Reproducable: always

 * Package:    dev-perl/File-RsyncP-0.740.0
 * Repository: gentoo
 * Maintainer: perl@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking File-RsyncP-0.74.tar.gz to /var/tmp/portage/dev-perl/File-RsyncP-0.740.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/File-RsyncP-0.740.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/File-RsyncP-0.740.0/work/File-RsyncP-0.74 ...
 * Applying File-RsyncP-0.700.0-make.patch ...

 * A dry-run of patch command succeeded, but actually
 * applying the patch failed!

 * Failed Patch: File-RsyncP-0.700.0-make.patch !
 *  ( /var/tmp/portage/dev-perl/File-RsyncP-0.740.0/files/File-RsyncP-0.700.0-make.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/dev-perl/File-RsyncP-0.740.0/temp/File-RsyncP-0.700.0-make.patch.out

 * ERROR: dev-perl/File-RsyncP-0.740.0::gentoo failed (prepare phase):
 *   Failed Patch: File-RsyncP-0.700.0-make.patch!
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_prepare
 *   environment, line 2468:  Called perl-module_src_prepare
 *   environment, line 1961:  Called epatch '/var/tmp/portage/dev-perl/File-RsyncP-0.740.0/files/File-RsyncP-0.700.0-make.patch'
 *   environment, line  730:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of `emerge --info '=dev-perl/File-RsyncP-0.740.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-perl/File-RsyncP-0.740.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-perl/File-RsyncP-0.740.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-perl/File-RsyncP-0.740.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-perl/File-RsyncP-0.740.0/work/File-RsyncP-0.74'
 * S: '/var/tmp/portage/dev-perl/File-RsyncP-0.740.0/work/File-RsyncP-0.74'
Comment 1 Martin Wohlert 2019-04-15 06:09:11 UTC
Created attachment 572856 [details]
File-RsyncP-0.700.0-make.patch.out
Comment 2 Martin Wohlert 2019-04-15 06:11:11 UTC
patch.out mentions the patch file is not found:

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch  --dry-run -f < '/var/tmp/portage/dev-perl/File-RsyncP-0.740.0/files/File-RsyncP-0.700.0-make.patch'

==========================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur File-RsyncP-0.68-orig/FileList/Makefile.PL File-RsyncP-0.68/FileList/Makefile.PL
|--- File-RsyncP-0.68-orig/FileList/Makefile.PL 2006-11-19 06:47:34.000000000 +0100
|+++ File-RsyncP-0.68/FileList/Makefile.PL      2009-03-15 12:25:52.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

patch program exited with status 1
Comment 3 Martin Wohlert 2019-04-15 06:13:53 UTC
the "files" directory where the patch is in is a symlink to "/usr/portage/dev-perl/File-RsyncP/files" ... so looks to me like the sandbox (or something different) rejects the the access outside of the build directory.
Comment 4 Martin Wohlert 2019-04-30 20:25:49 UTC
just wanted to mention that this problem prevents to emerge app-backup/backuppc because it's a dependency.
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-07-10 17:29:27 UTC
I'm unable to reproduce this issue :/ 

Given the nature of your problem, I'd doubt any package with patches would build.

Can you try again with a current portage and provide:

> emerge --info dev-perl/File-RsyncP 

As it is, I have no context other than pure guessing to work out how to proceed.

(Re-open if you can reproduce with said context)