Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693670 - app-portage/portpeek-2.1.27 says installed package is not installed
Summary: app-portage/portpeek-2.1.27 says installed package is not installed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-07 11:36 UTC by Erik Quaeghebeur
Modified: 2020-05-20 18:32 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 Erik Quaeghebeur 2019-09-07 11:36:02 UTC
app-portage/portpeek-2.1.27 says that an installed package is not installed.

This is in the package.accept_keywords section of the output, for a package for which a revision (-r1) is installed and for which in an atom starting with a tilde is present.

Reproducible: Always

Steps to Reproduce:
1. portpeek -qa

Actual Results:  
Excerpt from output:

~sci-libs/gsl-2.5: Not Installed : /etc/portage/package.accept_keywords/newblaslapack

Installed: ~sci-libs/gsl-2.5  Keywords ['~amd64']

Expected Results:  
Installed: ~sci-libs/gsl-2.5  Keywords ['~amd64']

# eix -I gsl
[I] sci-libs/gsl
Available versions:  1.16 ~2.4(0/23) 2.5(0/23) (~)2.5-r1(0/23) {cblas-external +deprecated static-libs}
Installed versions:  2.5-r1(0/23)(12:59:50 10-07-19)(deprecated -cblas-external -static-libs)
Homepage:            https://www.gnu.org/software/gsl/
Description:         The GNU Scientific Library

# grep -r gsl /etc/portage/package.accept_keywords/
/etc/portage/package.accept_keywords/newblaslapack:~sci-libs/gsl-2.5
Comment 1 Mike Pagano gentoo-dev 2020-05-20 18:26:42 UTC
Ok, the bug was that portpeek should have ignored the line since 't' (handle tilde) was not indicated in the command line parameters.

I'm going to push out a version today that addresses that.

$ cat /etc/portage/package_accept.keywords
~sci-libs/gsl-2.5

$ portpeek -qa

< empty >

$ portpeek -qat

package.accept_keywords:
sci-libs/gsl-2.5 has no masked versions : /etc/portage/package.accept_keywords/default

package.unmask:

package.mask:

package.use:

Remove entries from files [y/n] 


Removing from: /etc/portage/package.accept_keywords/default: ~sci-libs/gsl-2.5
Comment 2 Mike Pagano gentoo-dev 2020-05-20 18:32:20 UTC
commit c479f99ede8a49914cb0b2411bfed094c340e4e4 (HEAD -> master, origin/master, origin/HEAD)
Author: Mike Pagano <mpagano@gentoo.org>
Date:   Wed May 20 14:31:09 2020 -0400

    app-portage/portpeek: ignore tilde package when cmd not specified
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>