Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311737 - devmanual should be more clear on usage of MY_PV
Summary: devmanual should be more clear on usage of MY_PV
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Devmanual (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Quality Assurance Team
URL: http://devmanual.gentoo.org/ebuild-wr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-28 11:38 UTC by Justin Lecher (RETIRED)
Modified: 2010-03-28 14:22 UTC (History)
1 user (show)

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


Attachments
0001-bug-311737.patch (0001-bug-311737.patch,2.21 KB, text/plain)
2010-03-28 13:32 UTC, Justin Lecher (RETIRED)
Details
0002-Reviewed-changes.patch (0002-Reviewed-changes.patch,1.25 KB, text/plain)
2010-03-28 13:53 UTC, Justin Lecher (RETIRED)
Details
0003-packge-package.patch (0003-packge-package.patch,1.26 KB, text/plain)
2010-03-28 13:58 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2010-03-28 11:38:37 UTC
The manual says

For example, what Gentoo calls foo-1.2.3b may be expecting a tarball named foo-1.2-3b.tar.bz2. Rather than hard coding version numbers, it is preferable to make a MY_PV variable and use that.

It might confuse, that it is _PV and has the complete P string in it.
Better subdivide that in MY_PN, MY_PV and MY_P.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2010-03-28 12:41:49 UTC
I don't see anything wrong with the text. MY_PV in the example will not have complete P in it. Would it help if the example code had SRC_URI too? If you want to suggest a patch yourself the sources are at:
git+ssh://git.gentoo.org/var/gitroot/devmanual.git
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2010-03-28 13:32:39 UTC
Created attachment 225565 [details]
0001-bug-311737.patch

I thought about something like this
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2010-03-28 13:46:00 UTC
(In reply to comment #2)
> Created an attachment (id=225565) [details]
> 0001-bug-311737.patch
> 
> I thought about something like this
> 

* I don't think the committer needs (jlec) as the email has it
* packge
* loose the a in: make a <c>MY_PN</c> 
* & --> and
* in general the content is ok by me
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-03-28 13:53:01 UTC
Created attachment 225567 [details]
0002-Reviewed-changes.patch

The changes proposed
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-03-28 13:54:07 UTC
(In reply to comment #3)
> * I don't think the committer needs (jlec) as the email has it
> * packge
??
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2010-03-28 13:58:10 UTC
Created attachment 225569 [details]
0003-packge-package.patch

Last fix
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2010-03-28 14:22:36 UTC
Pushed after combining commits and fixing redefing to redefining. Thanks for the contribution.