Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641370 - egl USE flag missing on https://packages.gentoo.org/packages/x11-libs/libva
Summary: egl USE flag missing on https://packages.gentoo.org/packages/x11-libs/libva
Status: RESOLVED OBSOLETE
Alias: None
Product: Websites
Classification: Unclassified
Component: Packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Packages Website
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-16 13:42 UTC by Antonio Rosella
Modified: 2020-05-16 02:34 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 Antonio Rosella 2017-12-16 13:42:11 UTC
According to https://packages.gentoo.org/useflags/egl

this flag enable egl support for package x11-libs/libva

But in https://packages.gentoo.org/packages/x11-libs/libva

there is no egl flag, neither local or global

???
Comment 1 Craig Andrews gentoo-dev 2017-12-17 01:49:09 UTC
<x11-libs/libva-2.0.0 has an egl use flag.
>=x11-libs/libva-2.0.0 does not because upstream dropped egl support (which, as far as I can tell, nothing in tree uses anyways): https://github.com/01org/libva/releases/tag/2.0.0

So what is the issue?
Comment 2 Antonio Rosella 2017-12-17 22:00:58 UTC
The pages make reference to different version of the package ?

AFAIKU, 
- if latest release lead, x11-libs/libva should be removed from https://packages.gentoo.org/useflags/egl; 

- if not, https://packages.gentoo.org/packages/x11-libs/libva should add egl flag;

Or maybe should be added somehow the reference release on both pages...
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2018-02-26 02:04:13 UTC
The data model says we care about what is in metadata.xml

Metadata.xml for libva lists 'egl' which is why its listed in: https://packages.gentoo.org/useflags/egl

The question is why does https://packages.gentoo.org/packages/x11-libs/libva not list it? It should be using the same data model.
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2018-02-26 02:16:54 UTC
(In reply to Alec Warner from comment #3)
> The data model says we care about what is in metadata.xml
> 
> Metadata.xml for libva lists 'egl' which is why its listed in:
> https://packages.gentoo.org/useflags/egl
> 
> The question is why does https://packages.gentoo.org/packages/x11-libs/libva
> not list it? It should be using the same data model.

the answer is we double store the same data with two different data models and it entirely depends on which package instance is used to render the package page.
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2018-03-02 13:30:26 UTC
(In reply to Alec Warner from comment #4)
> (In reply to Alec Warner from comment #3)
> > The data model says we care about what is in metadata.xml
> > 
> > Metadata.xml for libva lists 'egl' which is why its listed in:
> > https://packages.gentoo.org/useflags/egl
> > 
> > The question is why does https://packages.gentoo.org/packages/x11-libs/libva
> > not list it? It should be using the same data model.
> 
> the answer is we double store the same data with two different data models
> and it entirely depends on which package instance is used to render the
> package page.

So I think ultimately we store in the useflags index, a mapping of useflag => package. So in theory we could write a query:

Useflag.search(
query: {
  bool: {
    term: { match_all: { package: atom } }
  }
})

This would, for a given package, pull the use flags from the Useflag index. We can then display these on the package overview, and avoid the double model problem. This means that users may try to enable a flag listed on p.g.o that is not relevant because it was dropped in a later ebuild version. I'm not sure there is anything p.g.o should do about this; this is a result of the confusing choices the distro made in data modelling.
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2020-05-16 02:34:55 UTC
We rewrote the entire application.