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

Bug 856541

Summary: app-portage/g-cpan: generated ebuild package version reference fixed in source code
Product: Gentoo Linux Reporter: Ian Pickworth <ian>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: UNCONFIRMED ---    
Severity: normal CC: ostroffjh, perl, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to substitute packge version during src_prepare
Patch to substitute packge version during src_prepare

Description Ian Pickworth 2022-07-05 11:47:44 UTC
Created attachment 790166 [details, diff]
Patch to substitute packge version during src_prepare

g-cpan generated package files include a line that references the package version - for example:
  # This ebuild generated by g-cpan 0.17.0

This version number is hard coded in the lib/App/gcpan.pm source file, for example:
  our $VERSION = '0.17.0';

This bug report presents a patch to the g-cpan ebuild that edits this line during the src_prepare() phase, so that it matches the full package version.
Comment 1 Ian Pickworth 2022-07-05 11:50:21 UTC
This issue was raised while addressing https://bugs.gentoo.org/819513
Comment 2 Ian Pickworth 2022-07-05 12:07:02 UTC
Created attachment 790169 [details, diff]
Patch to substitute packge version during src_prepare

Initial patch substituted ${PVR}.
However, the $VERSION variable has to be numeric only - so patch changed to only use ${PV}