Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445502 - app-portage/portpeek-2.1.1 would remove ~ entry from package.unmask of an installed, would-be-masked package
Summary: app-portage/portpeek-2.1.1 would remove ~ entry from package.unmask of an ins...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on: 447406
Blocks:
  Show dependency tree
 
Reported: 2012-12-01 18:16 UTC by Andreas Sturmlechner
Modified: 2013-01-12 01:04 UTC (History)
0 users

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


Attachments
portpeek error log on ~dev-libs/libsigc++-2.2.11 (portpeek-error.txt,2.09 KB, text/plain)
2012-12-15 16:50 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2012-12-01 18:16:07 UTC
This line is found inside file `/etc/portage/package.unmask/gcc-forward`:

~sys-devel/gcc-4.7.2

# portpeek -ruq

No masked versions of ~net-misc/mediatomb-0.12.1 found. Tagged for removal.
No masked versions of ~sys-devel/gcc-4.7.2 found. Tagged for removal.


Now, of those two packages, with mediatomb it is right - but as of 2012-12-01, sys-devel/gcc-4.7* still remains hardmasked:

!!! The following installed packages are masked:
- sys-devel/gcc-4.7.2::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Ryan Hill <dirtyepic@gentoo.org> (02 Apr 2011)
# Masked for testing


Changing the line to 

=sys-devel/gcc-4.7.2

solves it. But that can't be intentional behaviour?
Comment 1 Mike Pagano gentoo-dev 2012-12-14 15:22:13 UTC
That's not correct. I will take a look
Comment 2 Mike Pagano gentoo-dev 2012-12-15 01:59:22 UTC
Can you try portpeek-2.1.3 when it hits the tree and let me know if this solves your issue?
Comment 3 Andreas Sturmlechner gentoo-dev 2012-12-15 10:33:17 UTC
Same result with 2.1.3!
Comment 4 Mike Pagano gentoo-dev 2012-12-15 15:10:51 UTC
Ok, the problem is that is has a tilde.

I want to fix this, but if you did this:


10:09:10-root@kiowa{chroot}:/ #cat /etc/portage/package.unmask/gcc-forward 
~sys-devel/gcc-4.7.2

10:09:20-root@kiowa{chroot}:/ #portpeek -ruqt

package.unmask:
10:09:27-root@kiowa{chroot}:/ #


Then it works. I should ignore the tilde lines if 't' is not specified.
Comment 5 Andreas Sturmlechner gentoo-dev 2012-12-15 16:47:46 UTC
True, it works with -t. However, that reveals two new issues with tilde and unusual package names:

# grep + /etc/portage/package.keywords/stabletransition
~dev-libs/libsigc++-2.2.11
~x11-libs/gtk+-2.24.13

The first one makes portpeek crash when tracing the line (will attach log).

The second is incorrectly detected as 'not installed':

x11-libs/gtk+-2.24.13: Not Installed : /etc/portage/package.keywords/stabletransition

...while
# equery l -ip gtk+:2
 * Searching for gtk+:2 ...
[-P-] [  ] x11-libs/gtk+-2.24.12:2
[IP-] [  ] x11-libs/gtk+-2.24.13-r1:2
[-P-] [ ~] x11-libs/gtk+-2.24.14:2


Again, no problems when changing the lines to:
=dev-libs/libsigc++-2.2.11*
=x11-libs/gtk+-2.24.13*
Comment 6 Andreas Sturmlechner gentoo-dev 2012-12-15 16:50:44 UTC
Created attachment 332380 [details]
portpeek error log on ~dev-libs/libsigc++-2.2.11

After issuing the following command:

# portpeek -rkqt
Comment 7 Mike Pagano gentoo-dev 2012-12-16 01:01:39 UTC
This looks like a gentoolkit bug. I plan on opening one as I was able to create a 20 line program that shows the issue.
Comment 8 Andreas Sturmlechner gentoo-dev 2012-12-29 11:33:12 UTC
The initial issue seems to be fixed in 2.1.4. :)
Comment 9 Mike Pagano gentoo-dev 2013-01-12 01:04:46 UTC
great