On Fri, Jan 5, 2018 at 6:55 PM, Michał Górny <mgo...@gentoo.org> wrote:

> W dniu pią, 05.01.2018 o godzinie 23∶09 +0100, użytkownik Kristian
> Fiskerstrand napisał:
> > On 01/05/2018 10:28 PM, Aaron W. Swenson wrote:
> > > On 2018-01-05 15:16, William Hubbs wrote:
> > > > If we have a default expiration, it should be one year after the date
> > > > posted to go along with our current policy of not supporting things
> that
> > > > are older than a year.
> > > >
> > > > William
> > >
> > > I thought it was three years.
> > >
> > > At any rate, I think a year is too short.
> > >
> > > How about 18 months?
> > >
> >
> > I might sound like a broken CD here, but why define the expiration as
> > part of the news format instead of specifying it in the package manager
> > as a user defined variable? Various use cases requires different
> > treatment, so leaving it up to user seems more relevant to me, and we
> > could allow information to be presented as part of stages to give a hint
> > for what dates to look for?
> >
> To be honest, I kinda agree with Kristian here. I feel like this header
> isn't going to work well.
> While the idea may initially sound good, I'm afraid we'll have the usual
> developer split here: some developers will set very long times, some
> will set very short times, some will not care and just copy some random
> value (default, the value from some other news item). In the end, users
> will end up seeing very old news items from dev X, while newer items
> from dev Y will disappear.
> So yes, I think having a single predefined time is better,
> for consistency at least. And allowing user to adjust that time based
> on his own is certainly better than making it only dev-settable.

I'll swerve right then and say this:
antarus@nspawntest /var/lib/gentoo/news $ cat news-gentoo.unread

Here are my news items.

initramfs-required hits every Gentoo box, has 0 Display restrictions, and
will never ever ever go away => delete it.
gcc48_ssp: Display-If-Installed: >=sys-devel/gcc-4.8.3 (and it includes
basically every major arch.) It will also never ever ever ever go away.
Either delete it or cap the gcc version.
gcc_4_7: Same boat as above, either cap the gcc version or nuke it.
portage: display-If-Installed: sys-apps/portage, will display on ever box.
So cap that as well.
python-targets: has no Display-If Headers, it will display on every box.
Delete it or cap it.
openssh_weak_keys: Display-If-Installed: net-misc/openssh. This looks like
a bug (only people who were on < 7.0 care about it.
gcc-5: Display-If-Installed: >=sys-devel/gcc-5 => another uncapped news
l10n: Another news item with no Display-If-* headers, it too will live
new-17-profiles: another >=gcc-X, will never go away.

So 3 items have no display headers and are not fixable without adding a new
header. Many others can be fixed by capping Display-If-Installed versions.

-- Aside, I'm not totally convinced modifying the entries will work based
on a bug in portage-news. I'll poke the implementation more.


> --
> Best regards,
> Michał Górny

Reply via email to