From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E63E138334 for ; Sun, 3 Mar 2019 05:45:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98A3AE0935; Sun, 3 Mar 2019 05:45:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73463E0935 for ; Sun, 3 Mar 2019 05:45:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D0599335CF4 for ; Sun, 3 Mar 2019 05:45:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7890152B for ; Sun, 3 Mar 2019 05:45:37 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1551591923.78925d7a2cdac37e74219558419b862d81e6a9c5.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-apps/xinit/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-apps/xinit/xinit-1.4.0-r1.ebuild X-VCS-Directories: x11-apps/xinit/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 78925d7a2cdac37e74219558419b862d81e6a9c5 X-VCS-Branch: master Date: Sun, 3 Mar 2019 05:45:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 03ce9251-a8d9-4376-9b30-83de9e7df870 X-Archives-Hash: 744587597d49b431d83ef6dbf13f2f7d commit: 78925d7a2cdac37e74219558419b862d81e6a9c5 Author: Matt Turner gentoo org> AuthorDate: Sun Mar 3 05:44:12 2019 +0000 Commit: Matt Turner gentoo org> CommitDate: Sun Mar 3 05:45:23 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78925d7a x11-apps/xinit: Only print postinst messages first time Closes: https://bugs.gentoo.org/440454 Signed-off-by: Matt Turner gentoo.org> x11-apps/xinit/xinit-1.4.0-r1.ebuild | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/x11-apps/xinit/xinit-1.4.0-r1.ebuild b/x11-apps/xinit/xinit-1.4.0-r1.ebuild index a8b0150bc16..f8dedbb1ce7 100644 --- a/x11-apps/xinit/xinit-1.4.0-r1.ebuild +++ b/x11-apps/xinit/xinit-1.4.0-r1.ebuild @@ -56,12 +56,15 @@ src_install() { pkg_postinst() { xorg-2_pkg_postinst - ewarn "If you use startx to start X instead of a login manager like gdm/kdm," - ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or" - ewarn "any executable. When you run startx, it will run this as the login session." - ewarn "You can set this in a file in /etc/env.d/ for the entire system," - ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)." - ewarn "Here's an example of setting it for the whole system:" - ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession" - ewarn " env-update && source /etc/profile" + + if ! has_version 'x11-apps/xinit'; then + ewarn "If you use startx to start X instead of a login manager like gdm/kdm," + ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or" + ewarn "any executable. When you run startx, it will run this as the login session." + ewarn "You can set this in a file in /etc/env.d/ for the entire system," + ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)." + ewarn "Here's an example of setting it for the whole system:" + ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession" + ewarn " env-update && source /etc/profile" + fi }