Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440454 - x11-apps/xinit-1.3.2: some elog messages should only be shown for the first install.
Summary: x11-apps/xinit-1.3.2: some elog messages should only be shown for the first i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: first-time-messages
  Show dependency tree
 
Reported: 2012-10-31 10:58 UTC by poletti.marco
Modified: 2019-03-03 05:45 UTC (History)
1 user (show)

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 poletti.marco 2012-10-31 10:58:54 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package x11-apps/xinit-1.3.2, the following elog messages are displayed:

 * If you use startx to start X instead of a login manager like gdm/kdm,
 * you can set the XSESSION variable to anything in /etc/X11/Sessions/ or
 * any executable. When you run startx, it will run this as the login session.
 * You can set this in a file in /etc/env.d/ for the entire system,
 * or set it per-user in ~/.bash_profile (or similar for other shells).
 * Here's an example of setting it for the whole system:
 *     echo XSESSION="Gnome" > /etc/env.d/90xsession
 *     env-update && source /etc/profile

Such messages should only be displayed when the package is a new install.
These situations can be checked in the ebuild as follows:

if ! has_version 'x11-apps/xinit'; then

See the tracker bug 440214 for more details.
Comment 1 Pacho Ramos gentoo-dev 2013-10-06 17:35:31 UTC
You can also use readme.gentoo.eclass for this, if you prefer, I can do the work for you
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-01-19 19:47:28 UTC
(In reply to Pacho Ramos from comment #1)
> You can also use readme.gentoo.eclass for this, if you prefer, I can do the
> work for you

+1
Comment 3 Larry the Git Cow gentoo-dev 2019-03-03 05:45:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78925d7a2cdac37e74219558419b862d81e6a9c5

commit 78925d7a2cdac37e74219558419b862d81e6a9c5
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-03-03 05:44:12 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-03-03 05:45:23 +0000

    x11-apps/xinit: Only print postinst messages first time
    
    Closes: https://bugs.gentoo.org/440454
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-apps/xinit/xinit-1.4.0-r1.ebuild | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)