Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355619 - app-portage/g-cpan should rename tarbals named like <MODULE>-v<VERSION>.tar.gz
Summary: app-portage/g-cpan should rename tarbals named like <MODULE>-v<VERSION>.tar.gz
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 20:49 UTC by Samuel B
Modified: 2014-07-14 11:50 UTC (History)
3 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 Samuel B 2011-02-19 20:49:38 UTC
g-cpan should repackage and rename module tarballs named <MODULE>-v<VERSION>.tar.gz (or other extension) to <MODULE>-<VERSION>.tar.gz, that is expected by emerge. Important is also to rename also directory inside tarball from <MODULE>-v<VERSION> to <MODULE>-<VERSION>.


Reproducible: Always

Steps to Reproduce:
1. g-cpan -g Alien::Tidyp
2. emerge Alien::Tidyp


Actual Results:  
- g-cpan generates correct Alien-Tidyp ebuild
- copies Alien-Tidyp-v1.4.5.tar.gz to /usr/portage/distfiles, that contains directory Alien-Tidyp-v1.4.5
- emerge succeeds, without actually installing anything



Expected Results:  
emerge expects Alien-Tidyp-1.4.5.tar.gz with directory Alien-Tidyp-1.4.5 (manual repackage makes emerge to work again)

>>> Emerging (1 of 1) perl-gcpan/Alien-Tidyp-1.4.5 from zugaina
 * Alien-Tidyp-1.4.5.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                        [ ok ]
 * Package:    perl-gcpan/Alien-Tidyp-1.4.5
 * Repository: zugaina
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
>>> Unpacking source...
>>> Unpacking Alien-Tidyp-1.4.5.tar.gz to /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/work
>>> Source unpacked in /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/work
>>> Preparing source in /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/work ...
/var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/temp/environment: line 276: pushd: /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/work/Alien-Tidyp-1.4.5: No such file or directory
/var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/temp/environment: line 308: popd: directory stack empty
find: `/var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/work/Alien-Tidyp-1.4.5': No such file or directory
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/work ...
 * No Make or Build file detected...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/work ...
>>> Source compiled.
>>> Test phase [not enabled]: perl-gcpan/Alien-Tidyp-1.4.5

>>> Install Alien-Tidyp-1.4.5 into /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/image/ category perl-gcpan
>>> Completed installing Alien-Tidyp-1.4.5 into /var/tmp/portage/perl-gcpan/Alien-Tidyp-1.4.5/image/


>>> Installing (1 of 1) perl-gcpan/Alien-Tidyp-1.4.5
Comment 1 Sergiy Borodych 2011-06-01 07:07:05 UTC
fix for this bug
https://github.com/gentoo-perl/g-cpan/pull/1
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2014-07-14 11:50:26 UTC
I missed this in my bug list for 0.16.5; I can confirm that the pull request was actioned and the fix is in this release. My apologies for the rather extreme delays here.