public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [RFC] Gentoo news extension: Display-If-Visible
Date: Wed, 24 May 2017 19:29:17 +0200	[thread overview]
Message-ID: <1495646957.25250.2.camel@gentoo.org> (raw)
In-Reply-To: <CAJ0EP40+BvHt71sU9BrAMCniUn5ps__EQt7S9P4Ae66zFrR47A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1556 bytes --]

On śro, 2017-05-24 at 13:13 -0400, Mike Gilbert wrote:
> Many news items are only relevant when upgrading a package from one
> version to another. For fresh installs, the user does not need to take
> any action. A good example of this is the recent gcc upgrade from 4.9
> to 5.
> 
> In this context, it is often desirable to inform the user of a major
> change in a package before they upgrade it. This would give them time
> to prepare, and allow to skip the upgrade until they are ready.
> 
> This is technically possible with the current news item format by
> using a Display-If-Installed header. However, this has a few problems
> depending on how you format the dependency spec.
> 
> Display-If-Installed: cat/pkg
> This will be displayed to too many users.
> 
> Display-If-Installed: >=cat/pkg-ver
> This will be displayed to users only after they have upgraded.
> 
> Display-If-Installed: <cat/pkg-ver
> This targets the right people, but the message will be displayed too
> early for stable users.
> 
> I would like to introduce a new header "Display-If-Visible". This
> would restrict display of the news item to users for which the given
> dependency is visible according to their ACCEPT_KEYWORDS and
> package.accept_keywords settings.
> 
> Example usage:
> 
> Display-If-Installed: <sys-devel/gcc-5
> Display-If-Visible: >=sys-devel/gcc-5
> 
> Comments?
> 

https://archives.gentoo.org/gentoo-dev/message/7f5ff2c0a844050f846516a6af39bb06

(and the replies to that)

-- 
Best regards,
Michał Górny

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 988 bytes --]

  reply	other threads:[~2017-05-24 17:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-24 17:13 [gentoo-dev] [RFC] Gentoo news extension: Display-If-Visible Mike Gilbert
2017-05-24 17:29 ` Michał Górny [this message]
2017-05-24 17:33   ` Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1495646957.25250.2.camel@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox