Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731246 - man ebuild(5) has incorrect example of $P and $PN
Summary: man ebuild(5) has incorrect example of $P and $PN
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL: https://github.com/gentoo/portage/pul...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 733180
  Show dependency tree
 
Reported: 2020-07-07 09:41 UTC by Florian Schmaus
Modified: 2020-09-18 18:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schmaus gentoo-dev 2020-07-07 09:41:20 UTC
With 84b9b5c2a ("man/ebuild.5: Improvements to the ebuild(5) man page") the examples of the P and PN variables now incorrectly show that the variable value includes the package's category, which is not the case.

Reproducible: Always
Comment 1 Florian Schmaus gentoo-dev 2020-07-07 09:50:03 UTC
Pull request: https://github.com/gentoo/portage/pull/567
Comment 2 Larry the Git Cow gentoo-dev 2020-07-07 20:15:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=0b391cd238dd5db84268d3002a56154a10e9e32a

commit 0b391cd238dd5db84268d3002a56154a10e9e32a
Author:     Florian Schmaus <flo@geekplace.eu>
AuthorDate: 2020-07-07 09:31:36 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-07-07 20:12:59 +0000

    man/ebuild.5: Fix $P and $PN example
    
    Both variables do *not* include the package's category. So $PN,
    instead of
    
    x11-base/xorg-server
    
    returns
    
    xorg-server
    
    Same goes for $P.
    
    This commit fixes the error which was introduced by
    84b9b5c2a ("man/ebuild.5: Improvements to the ebuild(5) man page").
    
    Bug: https://bugs.gentoo.org/731246
    Closes: https://github.com/gentoo/portage/pull/567
    Signed-off-by: Florian Schmaus <flo@geekplace.eu>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 man/ebuild.5 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Zac Medico gentoo-dev 2020-07-07 20:16:10 UTC
Thanks!
Comment 4 Larry the Git Cow gentoo-dev 2020-07-19 05:45:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb3180edb5d310d5382bb3c0772c06be0b354806

commit bb3180edb5d310d5382bb3c0772c06be0b354806
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-07-19 05:18:41 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-07-19 05:37:48 +0000

    sys-apps/portage: Bump to version 3.0.0
    
     #703698 Improve repos.conf handling of boolean settings
     #721516 ecompress complains about compressed files that have
             been excluded by docompress -x
     #729852 Set XTerm titles for konsole
     #731114 Drop support for python2.7
     #731246 man ebuild(5) has incorrect example of $P and $PN
     #732378 Use lru_cache for use_reduce, vercmp, and catpkgsplit
     #733154 List of ignored warnings in .desktop files should be
             updated for compatibility with >=desktop-file-utils-0.25
    
    Bug: https://bugs.gentoo.org/733180
    Bug: https://bugs.gentoo.org/703698
    Bug: https://bugs.gentoo.org/721516
    Bug: https://bugs.gentoo.org/729852
    Bug: https://bugs.gentoo.org/731114
    Bug: https://bugs.gentoo.org/731246
    Bug: https://bugs.gentoo.org/732378
    Bug: https://bugs.gentoo.org/733154
    Package-Manager: Portage-3.0.0, Repoman-2.3.23
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest             |   1 +
 sys-apps/portage/portage-3.0.0.ebuild | 263 ++++++++++++++++++++++++++++++++++
 2 files changed, 264 insertions(+)