Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608966 - can't upgrade dev-lang/perl (to 5.22 or 5.24) cpanplus_definstalldirs.diff epatch fails
Summary: can't upgrade dev-lang/perl (to 5.22 or 5.24) cpanplus_definstalldirs.diff ep...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-11 15:26 UTC by Dennis Nezic
Modified: 2017-02-21 18:04 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 Dennis Nezic 2017-02-11 15:26:12 UTC
* Applying patches from perl-5.24.1-RC4-2 ...
 *   gentoo/hints_hpux.diff ...[ ok ]
 *   gentoo/aix_soname.diff ...[ ok ]
 *   gentoo/EUMM-RUNPATH.diff ...[ ok ]
 *   gentoo/config_over.diff ...[ ok ]
 *   gentoo/opensolaris_headers.diff ...[ ok ]
 *   gentoo/patchlevel.diff ...[ ok ]
 *   gentoo/cpanplus_definstalldirs.diff ...

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

 * Failed Patch: cpanplus_definstalldirs.diff !
 *  ( /var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/patches/gentoo/cpanplus_definstalldirs.diff )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/dev-lang/perl-5.24.1_rc4/temp/cpanplus_definstalldirs.diff.out

....
========================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch -p1 --dry-run -f < '/var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/patches/gentoo/cpanplus_definstalldirs.diff'

========================================
checking file cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm

patch program exited with status 0
========================================

ACTUALLY APPLYING cpanplus_definstalldirs.diff ...
PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch -p1 < '/var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/patches/gentoo/cpanplus_definstalldirs.diff'

========================================
patch: **** Can't create temporary file cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm.o6KAhZF : No such file or directory

patch program exited with status 2

....
/var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/perl-5.24.1-RC4/cpan/CPANPLUS
 is empty
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-11 15:32:30 UTC

(In reply to Dennis New from comment #0)
> * Applying patches from perl-5.24.1-RC4-2 ...
>  *   gentoo/hints_hpux.diff ...[ ok ]
>  *   gentoo/aix_soname.diff ...[ ok ]
>  *   gentoo/EUMM-RUNPATH.diff ...[ ok ]
>  *   gentoo/config_over.diff ...[ ok ]
>  *   gentoo/opensolaris_headers.diff ...[ ok ]
>  *   gentoo/patchlevel.diff ...[ ok ]
>  *   gentoo/cpanplus_definstalldirs.diff ...
> 
>  * A dry-run of patch command succeeded, but actually
>  * applying the patch failed!
> 
>  * Failed Patch: cpanplus_definstalldirs.diff !
>  *  (
> /var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/patches/gentoo/
> cpanplus_definstalldirs.diff )
>  * 
>  * Include in your bugreport the contents of:
>  * 
>  *  
> /var/tmp/portage/dev-lang/perl-5.24.1_rc4/temp/cpanplus_definstalldirs.diff.
> out
> 
> ....
> ========================================
> 
> PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch -p1 --dry-run -f <
> '/var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/patches/gentoo/
> cpanplus_definstalldirs.diff'
> 
> ========================================
> checking file cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm
> 
> patch program exited with status 0
> ========================================
> 
> ACTUALLY APPLYING cpanplus_definstalldirs.diff ...
> PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch -p1 <
> '/var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/patches/gentoo/
> cpanplus_definstalldirs.diff'
> 
> ========================================
> patch: **** Can't create temporary file
> cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm.o6KAhZF : No such file or
> directory
> 

Did something fail while unpacking? Is your disk full?
Comment 2 Dennis Nezic 2017-02-11 15:39:40 UTC
Nope. I Even removed all my perl packages (I only have dev-lang/perl-5.20.2-r1 installed now), to avoid potential dependency weirdness. Still fails.
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-11 16:28:33 UTC
Actually, it might be permissions related.

This path exists: cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm

But for some reason, this path can't be created:

This path exists: cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm.o6KAhZF 

Why exactly that is is not sure, but I'd be surprised if its the only place its happening.

please give emerge --info ( are you on hardened, etc? )
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-11 16:47:35 UTC
Also, if you can dump the output from:

 find /var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/perl-5.24.1-RC4/cpan/CPANPLUS -ls
Comment 5 Dennis Nezic 2017-02-11 16:51:50 UTC
# find  /var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/perl-5.24.1-RC4/cpan/CPANPLUS/ -ls
11194705    0 drwxr-xr-x   2 portage  portage        48 Feb 11 10:19 /var/tmp/portage/dev-lang/perl-5.24.1_rc4/work/perl-5.24.1-RC4/cpan/CPANPLUS/

(It is empty)
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-11 17:20:48 UTC
OH!. Right. 

CPANPLUS was nixed in 5.20, so the patches still applying in most cases is just hiding the bug. 

For some reason, for everyone else, the patches blindly reconstruct the file :|

Will get this fixed asap. The only question is why epatch has started failing for you.
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-12 09:03:06 UTC
I've shipped 5.24.1 with fixes for this issue included.

Please test and see how things go.

commit:  e9992a8ed2cce6c4564cc1507ec2e68b7bfc2f78
author:  2017-02-11 20:44:59 +0000 Kent Fredric <kentnl@gentoo.org>
commit:  2017-02-12 08:52:05 +0000 Kent Fredric <kentnl@gentoo.org>
gpg-key: E854324B1366A820

    dev-lang/perl,virtual/perl-Module-CoreList: Bump to Perl v5.24.1 (final)

    - Patches reworked slightly to give better `perl -V` output and apply
      cleanly with `git am`
    - base.pm changes from 5.24.1-RC4 carried on, despite removal
      upstream in 5.24.1-RC5/Final ( For testing, as this change is
      likely to come back in 5.24.2 )
    - Temporarily disable zlib tests affected by bug #606374
    - Remove bad patch causing bug #608966
    - Upgrade to perl-cross 1.1.3
    
    Bug: https://bugs.gentoo.org/606374
    Bug: https://bugs.gentoo.org/608966
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1
Comment 8 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-21 18:04:52 UTC
Also fixed in 5.22.3

commit f7f55098218de72848fed8ab450b5d895efc02eb
Author: Kent Fredric <kentnl@gentoo.org>
Date:   Wed Feb 22 05:56:13 2017 +1300

    dev-lang/perl,virtual/perl-Module-CoreList: Bump to 5.22.3 Final
    
    - Fix bug with patching now-missing CPANPLUS code #608966
    - Update cross-perl to 1.1.4
    - Fix cross-compile bugs
    - Fix GCC6 + lto bugs #583532
    - Backport fixes from Compress-Raw-Zlib 2.074 for zlib 1.2.9+
      #606374
    
    Bug: https://bugs.gentoo.org/608966
    Bug: https://bugs.gentoo.org/583532
    Bug: https://bugs.gentoo.org/606374
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-lang/perl/perl-5.22.3.ebuild | 550 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 550 insertions(+)