Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856541 - app-portage/g-cpan: generated ebuild package version reference fixed in source code
Summary: app-portage/g-cpan: generated ebuild package version reference fixed in sourc...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-07-05 11:47 UTC by Ian Pickworth
Modified: 2022-07-06 06:34 UTC (History)
3 users (show)

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


Attachments
Patch to substitute packge version during src_prepare (g-cpan-ebuild-version.patch,572 bytes, patch)
2022-07-05 11:47 UTC, Ian Pickworth
Details | Diff
Patch to substitute packge version during src_prepare (g-cpan-ebuild-version.patch,638 bytes, patch)
2022-07-05 12:07 UTC, Ian Pickworth
Details | Diff

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