Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834495

Summary: packages.gentoo.org shows all versions of app-editors/emacs as package masked
Product: Websites Reporter: Ulrich Müller <ulm>
Component: PackagesAssignee: Gentoo Packages Website <gpackages>
Status: RESOLVED DUPLICATE    
Severity: major CC: gentoo, gnu-emacs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://packages.gentoo.org/packages/app-editors/emacs
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Screenshot
p.g.o/packages/app-editors/emacs screenshot

Description Ulrich Müller gentoo-dev 2022-03-02 17:21:36 UTC
Created attachment 766159 [details]
Screenshot

See URL and attached screenshot.

Obviously this is wrong. For reference, eshowkw outputs this:

$ eshowkw 
Keywords for app-editors/emacs:
                 |                             |   u        |  
                 | a   a     p s   a   r       |   n        |  
                 | m   r h   p p   l i i m m s | e u s      | r
                 | d a m p p c a x p a s 6 i 3 | a s l      | e
                 | 6 r 6 p p 6 r 8 h 6 c 8 p 9 | p e o      | p
                 | 4 m 4 a c 4 c 6 a 4 v k s 0 | i d t      | o
-----------------+-----------------------------+------------+-------
    [I]18.59-r14 | + o o o o o o + o o o o o o | 8 o 18     | gentoo
-----------------+-----------------------------+------------+-------
     [I]23.4-r21 | + + o ~ + + ~ + ~ ~ o o ~ o | 8 o 23     | gentoo
-----------------+-----------------------------+------------+-------
     [I]24.5-r11 | + + o ~ + ~ ~ + ~ ~ o o ~ o | 8 o 24     | gentoo
-----------------+-----------------------------+------------+-------
     [I]25.3-r11 | + + + ~ + + + + ~ ~ o ~ ~ o | 8 o 25     | gentoo
-----------------+-----------------------------+------------+-------
     [I]26.3-r6  | + + + ~ + + + + ~ ~ ~ o ~ o | 8 o 26     | gentoo
-----------------+-----------------------------+------------+-------
     [I]27.2-r5  | + + + + + + + + ~ ~ ~ ~ ~ o | 8 o 27     | gentoo
-----------------+-----------------------------+------------+-------
  [M]28.0.91     | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o | 8 o 28-vcs | gentoo
   28.0.9999-r1  | o o o o o o o o o o o o o o | 8 o        | gentoo
-----------------+-----------------------------+------------+-------
[I]29.0.9999     | o o o o o o o o o o o o o o | 8 o 29-vcs | gentoo
Comment 1 Ulrich Müller gentoo-dev 2022-03-02 17:42:54 UTC
Looks like p.g.o doesn't properly process the slot part of the mask.

After the following workaround it looks better:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b498ccdbfcdab86afd3c50d20d5dc6d603611506
Comment 2 Emily Rowlands 2022-03-02 17:43:04 UTC
Created attachment 766160 [details]
p.g.o/packages/app-editors/emacs screenshot

This has either fixed itself, or was an unusual temporary issue. See attached screenshot
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2022-03-02 18:35:23 UTC
(In reply to Emily Rowlands from comment #2)
> Created attachment 766160 [details]
> p.g.o/packages/app-editors/emacs screenshot
> 
> This has either fixed itself, or was an unusual temporary issue. See
> attached screenshot

Ulm said they made a masking change which is why its fixed now.

The underlying bug is likely present.

-A
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2022-03-02 18:38:42 UTC
https://gitweb.gentoo.org/sites/soko.git/tree/pkg/portage/repository/mask.go is the code.

It appears the result is that we ignore the slot and just mask all versions <28.0.1.9999. We should write a quick test case and then fix the bug.
Comment 5 Ulrich Müller gentoo-dev 2022-03-02 18:50:17 UTC
(In reply to Emily Rowlands from comment #2)
> This has either fixed itself, or was an unusual temporary issue. See
> attached screenshot

Definitely not a temporary issue, but I've worked around the problem by updating the mask as mentioned in comment #1:

-<app-editors/emacs-28.0.9999:28-vcs
+=app-editors/emacs-28.0.90:28-vcs
+=app-editors/emacs-28.0.91:28-vcs
+=app-editors/emacs-28.0.92:28-vcs
+=app-editors/emacs-28.0.93:28-vcs

Which is somewhat awkward and may require updating for later pretest versions, so I'd really like to revert to the previous atom.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-03 15:09:58 UTC

*** This bug has been marked as a duplicate of bug 832042 ***