Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669912 - app-portage/g-cpan generates wrong ebuild for packages using "v" version prefix
Summary: app-portage/g-cpan generates wrong ebuild for packages using "v" version prefix
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Robin Johnson
URL: https://github.com/gentoo-perl/g-cpan...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-29 09:10 UTC by Giorgio Premi
Modified: 2020-08-03 03:54 UTC (History)
4 users (show)

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


Attachments
patch to handle 'v' versions (gcpan-v-version.patch,1.75 KB, patch)
2020-08-03 03:54 UTC, Stephen Cavilia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.