Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 669912

Summary: app-portage/g-cpan generates wrong ebuild for packages using "v" version prefix
Product: Gentoo Linux Reporter: Giorgio Premi <giosh94mhz>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: CONFIRMED ---    
Severity: normal CC: ostroffjh, perl, sac, Sergiy.Borodych
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/gentoo-perl/g-cpan/issues/44
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to handle 'v' versions

Description Giorgio Premi 2018-10-29 09:10:46 UTC
I'm generating the ebuild for Alien-SVN using g-cpan but the resulting ebuild failed to build.

The problem is that the generated ebuild use version `1.8.11.0` but the cpan module use `v1.8.11.0`, so the resulting SRC_URI and extracted path are differents.

To workaround this issue, I simply changed 

Reproducible: Always

Steps to Reproduce:
1. g-cpan --install SVN::Client # fails
2. # fetch fails
3. replace MODULE_VERSION="1.8.11.0" with MODULE_VERSION="v1.8.11.0"
4. # fetch ok
Actual Results:  
Modules fetch fails

Expected Results:  
Modules fetches sources and start compiling

The compilation is running right now, still don't know if it compiles ok in the end.
Comment 1 Stephen Cavilia 2020-08-03 03:54:31 UTC
Created attachment 652448 [details, diff]
patch to handle 'v' versions

Came up with a patch that preserves the CPAN version if it includes the v prefix and uses this for MODULE_VERSION instead of the portage-modified version. Also created a github PR.