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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E934A159C96 for ; Thu, 25 Jul 2024 21:49:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11E112BC016; Thu, 25 Jul 2024 21:49:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E44A92BC016 for ; Thu, 25 Jul 2024 21:49:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA51833BEE8 for ; Thu, 25 Jul 2024 21:49:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2280D1AF1 for ; Thu, 25 Jul 2024 21:49:04 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1721944056.9690bfe5333ba0c1da42b58e4865aa607d3bf2d3.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-wine/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild X-VCS-Directories: app-eselect/eselect-wine/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 9690bfe5333ba0c1da42b58e4865aa607d3bf2d3 X-VCS-Branch: master Date: Thu, 25 Jul 2024 21:49:04 +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: e98c4477-6c88-4c98-8dc3-6dfbfe62b191 X-Archives-Hash: 71fe00bd0cd3ac06d11740309b4b315e commit: 9690bfe5333ba0c1da42b58e4865aa607d3bf2d3 Author: Ionen Wolkens gentoo org> AuthorDate: Thu Jul 25 21:33:29 2024 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Thu Jul 25 21:47:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9690bfe5 app-eselect/eselect-wine: make postinst warning more visible Kind of occasional but it confuse a user now and then, try to increase chances that it will be spotted on first merge. Also extend a bit given some shells (like fish) need special attention. Bug: https://bugs.gentoo.org/936641 Signed-off-by: Ionen Wolkens gentoo.org> .../eselect-wine/eselect-wine-2.0.2-r2.ebuild | 27 ++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild b/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild index da39532a82a4..3c19a046d3b2 100644 --- a/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild +++ b/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -69,23 +69,26 @@ pkg_postinst() { if [[ ! ${REPLACING_VERSIONS##* } ]] || ver_test ${REPLACING_VERSIONS##* } -lt 2; then elog - [[ ${REPLACING_VERSIONS} ]] && - elog "${PN} changed a bit, suggest reviewing 'eselect wine help' (and list)." - elog "Please run '. ${EROOT}/etc/profile' to update PATH in current shells" - elog "(PATH should have ':${EPREFIX}/etc/eselect/wine/bin'). Wine can otherwise" - elog "be executed directly from '${EPREFIX}/etc/eselect/wine/bin/wine'." + elog "Warning:" + elog + elog "Please either run '. ${EPREFIX}/etc/profile' to update PATH in current shells" + elog "or re-login, otherwise running e.g. 'wine' without the full path will fail." + elog "(PATH should have ':${EPREFIX}/etc/eselect/wine/bin'). If needed, selected" + elog "'wine' can be executed using '${EPREFIX}/etc/eselect/wine/bin/wine'." + elog + elog "If still have issues, verify that shell configurations in \$HOME are not" + elog "overriding PATH, also non-POSIX shells (e.g. fish) may need manual handling." + elog + # note: not using EROOT given it wouldn't make much sense to update configs + # using that path or source profile outside the ROOT fi if [[ ${REPLACING_VERSIONS##* } ]] && ver_test ${REPLACING_VERSIONS##* } -lt 2.0.2-r1; then - elog - elog "Be warned that >=${PN}-2.0.2-r1 no longer installs the" - elog "'${EPREFIX}/usr/bin/wine' symbolic link. wine(1) can still be found" + elog "Note that >=${PN}-2.0.2-r1 no longer installs the" + elog "'${EPREFIX}/usr/bin/wine' symbolic link. 'wine' can still be found" elog "in PATH but, if using the direct location for scripts and/or binfmt," elog "then please update these to use: '${EPREFIX}/etc/eselect/wine/bin/wine'" - elog - elog "If wine is not found in PATH, please ensure that not overriding the" - elog "default PATH value that should include ':${EPREFIX}/etc/eselect/wine/bin'" fi }