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 (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 241FC15813A for ; Tue, 07 Jan 2025 20:54:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37461E079C; Tue, 07 Jan 2025 20:54:43 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C60DE079C for ; Tue, 07 Jan 2025 20:54:43 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4DD43340C9C for ; Tue, 07 Jan 2025 20:54:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5ACC1870 for ; Tue, 07 Jan 2025 20:54:40 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1736283275.4ce86a9a07ee8d1ad5db85c5c8909ad4c04471b2.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/emacs/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/emacs/emacs-18.59-r15.ebuild app-editors/emacs/emacs-26.3-r21.ebuild app-editors/emacs/emacs-27.2-r19.ebuild app-editors/emacs/emacs-28.2-r15.ebuild app-editors/emacs/emacs-29.4-r1.ebuild app-editors/emacs/emacs-30.0.91.ebuild app-editors/emacs/emacs-30.0.92.ebuild app-editors/emacs/emacs-30.0.93.ebuild X-VCS-Directories: app-editors/emacs/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 4ce86a9a07ee8d1ad5db85c5c8909ad4c04471b2 X-VCS-Branch: master Date: Tue, 07 Jan 2025 20:54:40 +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: 86c6a32c-601e-434a-a932-10061c36972b X-Archives-Hash: 9a9e0a56c0d6e93759111c08220fa078 commit: 4ce86a9a07ee8d1ad5db85c5c8909ad4c04471b2 Author: Ulrich Müller gentoo org> AuthorDate: Tue Jan 7 20:51:35 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Tue Jan 7 20:54:35 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ce86a9a app-editors/emacs: Call eselect with the --root option eselect uses the path specified either by the --root option or by the ROOT environment variable as the target root filesystem for its operations. Make this explicit and future-proof by calling it with the --root option (supported since eselect-1.4.20), rather than relying on ROOT being exported to the environment. Signed-off-by: Ulrich Müller gentoo.org> app-editors/emacs/emacs-18.59-r15.ebuild | 6 +++--- app-editors/emacs/emacs-26.3-r21.ebuild | 15 ++++++--------- app-editors/emacs/emacs-27.2-r19.ebuild | 15 ++++++--------- app-editors/emacs/emacs-28.2-r15.ebuild | 15 ++++++--------- app-editors/emacs/emacs-29.4-r1.ebuild | 15 ++++++--------- app-editors/emacs/emacs-30.0.91.ebuild | 15 ++++++--------- app-editors/emacs/emacs-30.0.92.ebuild | 15 ++++++--------- app-editors/emacs/emacs-30.0.93.ebuild | 15 ++++++--------- 8 files changed, 45 insertions(+), 66 deletions(-) diff --git a/app-editors/emacs/emacs-18.59-r15.ebuild b/app-editors/emacs/emacs-18.59-r15.ebuild index 7e73a99d9984..4fe9c8340b7f 100644 --- a/app-editors/emacs/emacs-18.59-r15.ebuild +++ b/app-editors/emacs/emacs-18.59-r15.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -154,9 +154,9 @@ pkg_preinst() { } pkg_postinst() { - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } pkg_postrm() { - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } diff --git a/app-editors/emacs/emacs-26.3-r21.ebuild b/app-editors/emacs/emacs-26.3-r21.ebuild index 7a019f707cab..3b621cf0a6ff 100644 --- a/app-editors/emacs/emacs-26.3-r21.ebuild +++ b/app-editors/emacs/emacs-26.3-r21.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -365,16 +365,13 @@ pkg_postinst() { elisp-site-regen readme.gentoo_print_elog - if use livecd; then - # force an update of the emacs symlink for the livecd/dvd, - # because some microemacs packages set it with USE=livecd - eselect emacs update - else - eselect emacs update ifunset - fi + # Force an update of the emacs symlink for the livecd/dvd, + # because some microemacs packages set it with USE=livecd. + # Otherwise, create it only when it is not yet set. + eselect --root="${ROOT}" emacs update $(usev !livecd ifunset) } pkg_postrm() { elisp-site-regen - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } diff --git a/app-editors/emacs/emacs-27.2-r19.ebuild b/app-editors/emacs/emacs-27.2-r19.ebuild index 38117bed7e91..d734cfda28c5 100644 --- a/app-editors/emacs/emacs-27.2-r19.ebuild +++ b/app-editors/emacs/emacs-27.2-r19.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -438,16 +438,13 @@ pkg_postinst() { elisp-site-regen readme.gentoo_print_elog - if use livecd; then - # force an update of the emacs symlink for the livecd/dvd, - # because some microemacs packages set it with USE=livecd - eselect emacs update - else - eselect emacs update ifunset - fi + # Force an update of the emacs symlink for the livecd/dvd, + # because some microemacs packages set it with USE=livecd. + # Otherwise, create it only when it is not yet set. + eselect --root="${ROOT}" emacs update $(usev !livecd ifunset) } pkg_postrm() { elisp-site-regen - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } diff --git a/app-editors/emacs/emacs-28.2-r15.ebuild b/app-editors/emacs/emacs-28.2-r15.ebuild index 2c7d3a1e56dd..68d0d669a24c 100644 --- a/app-editors/emacs/emacs-28.2-r15.ebuild +++ b/app-editors/emacs/emacs-28.2-r15.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -544,16 +544,13 @@ pkg_postinst() { elisp-site-regen readme.gentoo_print_elog - if use livecd; then - # force an update of the emacs symlink for the livecd/dvd, - # because some microemacs packages set it with USE=livecd - eselect emacs update - else - eselect emacs update ifunset - fi + # Force an update of the emacs symlink for the livecd/dvd, + # because some microemacs packages set it with USE=livecd. + # Otherwise, create it only when it is not yet set. + eselect --root="${ROOT}" emacs update $(usev !livecd ifunset) } pkg_postrm() { elisp-site-regen - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } diff --git a/app-editors/emacs/emacs-29.4-r1.ebuild b/app-editors/emacs/emacs-29.4-r1.ebuild index 6fb6a878891e..ddf4d41eeb38 100644 --- a/app-editors/emacs/emacs-29.4-r1.ebuild +++ b/app-editors/emacs/emacs-29.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -634,16 +634,13 @@ pkg_postinst() { elisp-site-regen readme.gentoo_print_elog - if use livecd; then - # force an update of the emacs symlink for the livecd/dvd, - # because some microemacs packages set it with USE=livecd - eselect emacs update - else - eselect emacs update ifunset - fi + # Force an update of the emacs symlink for the livecd/dvd, + # because some microemacs packages set it with USE=livecd. + # Otherwise, create it only when it is not yet set. + eselect --root="${ROOT}" emacs update $(usev !livecd ifunset) } pkg_postrm() { elisp-site-regen - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } diff --git a/app-editors/emacs/emacs-30.0.91.ebuild b/app-editors/emacs/emacs-30.0.91.ebuild index dd6905d7ea65..ca6c6fc30c30 100644 --- a/app-editors/emacs/emacs-30.0.91.ebuild +++ b/app-editors/emacs/emacs-30.0.91.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -621,16 +621,13 @@ pkg_postinst() { elisp-site-regen readme.gentoo_print_elog - if use livecd; then - # force an update of the emacs symlink for the livecd/dvd, - # because some microemacs packages set it with USE=livecd - eselect emacs update - else - eselect emacs update ifunset - fi + # Force an update of the emacs symlink for the livecd/dvd, + # because some microemacs packages set it with USE=livecd. + # Otherwise, create it only when it is not yet set. + eselect --root="${ROOT}" emacs update $(usev !livecd ifunset) } pkg_postrm() { elisp-site-regen - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } diff --git a/app-editors/emacs/emacs-30.0.92.ebuild b/app-editors/emacs/emacs-30.0.92.ebuild index dd6905d7ea65..ca6c6fc30c30 100644 --- a/app-editors/emacs/emacs-30.0.92.ebuild +++ b/app-editors/emacs/emacs-30.0.92.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -621,16 +621,13 @@ pkg_postinst() { elisp-site-regen readme.gentoo_print_elog - if use livecd; then - # force an update of the emacs symlink for the livecd/dvd, - # because some microemacs packages set it with USE=livecd - eselect emacs update - else - eselect emacs update ifunset - fi + # Force an update of the emacs symlink for the livecd/dvd, + # because some microemacs packages set it with USE=livecd. + # Otherwise, create it only when it is not yet set. + eselect --root="${ROOT}" emacs update $(usev !livecd ifunset) } pkg_postrm() { elisp-site-regen - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset } diff --git a/app-editors/emacs/emacs-30.0.93.ebuild b/app-editors/emacs/emacs-30.0.93.ebuild index dd6905d7ea65..ca6c6fc30c30 100644 --- a/app-editors/emacs/emacs-30.0.93.ebuild +++ b/app-editors/emacs/emacs-30.0.93.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -621,16 +621,13 @@ pkg_postinst() { elisp-site-regen readme.gentoo_print_elog - if use livecd; then - # force an update of the emacs symlink for the livecd/dvd, - # because some microemacs packages set it with USE=livecd - eselect emacs update - else - eselect emacs update ifunset - fi + # Force an update of the emacs symlink for the livecd/dvd, + # because some microemacs packages set it with USE=livecd. + # Otherwise, create it only when it is not yet set. + eselect --root="${ROOT}" emacs update $(usev !livecd ifunset) } pkg_postrm() { elisp-site-regen - eselect emacs update ifunset + eselect --root="${ROOT}" emacs update ifunset }