On Fri, 15 Jan 2016 00:00:02 +0100
Ulrich Mueller <[email protected]> wrote:

> >>>>> On Thu, 14 Jan 2016, Michał Górny wrote:  
> 
> > On Thu, 14 Jan 2016 07:28:43 -0500
> > Rich Freeman <[email protected]> wrote:  
> 
> >> One way to do this (and I'm certainly open to others) is a
> >> Display-If-Installable header which takes a keyword string and an
> >> atom (typically a specific PV).  The package manager would
> >> determine if a package with that keyword string and PV would be
> >> accepted or not based on the user's configuration, and if so
> >> display the news.  
> 
> > Based on your idea, this is how I'd do it:  
> 
> > 1. 'Display-If-Visible' that enables news items if given atom is
> > visible for PM (i.e. in repo, with right keywords and not masked).
> > I would avoid using 'Installable' as that could get confusing wrt
> > conflicts and so on.  
> 
> I had omitted the Display-If-Visible header (which has been discussed
> since 2007 at least) deliberately, because we want to get format 2.0
> done in a timely manner.

That doesn't really make sense to me. There is no real urgency in
getting the new format right now, and omitting the most important issue
is not really the solution here.

> The problem with any visibility filtering is that visibility depends
> on user configuration [1], and I don't know what changes in the
> package manager would be necessary to make this work correctly and
> efficiently. For example, how does portage's --autounmask-write option
> interact with it?

Leave solving this to Portage developers. Autounmasking is not
something you do often on stable systems, and we have better QA to
avoid issues that could require it.

What's most important right now is to have Portage process news items
after 'emerge --sync' (or any other emerge operation), check visibility
of packages (with current configuration) and enable news items that
apply.

We could also process changed news files on emerge start, and warn
verbosely that new news items start applying.

> [1] https://bugs.gentoo.org/show_bug.cgi?id=290038#c9

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

Attachment: pgpQ5KKiKwHwD.pgp
Description: OpenPGP digital signature

Reply via email to