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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 44303158089 for ; Wed, 18 Oct 2023 15:56:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82D362BC0D2; Wed, 18 Oct 2023 15:56:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 6A5552BC0D2 for ; Wed, 18 Oct 2023 15:56:18 +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 AB2F5335CB7 for ; Wed, 18 Oct 2023 15:56:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5978F1288 for ; Wed, 18 Oct 2023 15:56:16 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1697644530.86be11692e59d41b3f6efbe86dfbf38202b1c9ad.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ninja/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/ninja/ninja-1.11.1-r3.ebuild X-VCS-Directories: dev-util/ninja/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 86be11692e59d41b3f6efbe86dfbf38202b1c9ad X-VCS-Branch: master Date: Wed, 18 Oct 2023 15:56:16 +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: 69334a2d-a9df-4a81-ba82-2089b08589ef X-Archives-Hash: eebf1f07ecf0307a242b80dc0f470699 commit: 86be11692e59d41b3f6efbe86dfbf38202b1c9ad Author: Violet Purcell inventati org> AuthorDate: Wed Oct 18 15:46:15 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Oct 18 15:55:30 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86be1169 dev-util/ninja: add pkg_postinst workaround for ninja symlink This commit adds a workaround in pkg_postinst similar to other packages covered by app-alternatives such as app-arch/tar. If the ninja symlink does not already exist in pkg_postinst, temporarily symlink ninja-reference to ensure there is no breakage between the update and the subsequent merge of app-alternatives/ninja. Signed-off-by: Violet Purcell inventati.org> Closes: https://github.com/gentoo/gentoo/pull/33396 Signed-off-by: Sam James gentoo.org> dev-util/ninja/ninja-1.11.1-r3.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-util/ninja/ninja-1.11.1-r3.ebuild b/dev-util/ninja/ninja-1.11.1-r3.ebuild index 4f8bdfff6267..c4874b6be066 100644 --- a/dev-util/ninja/ninja-1.11.1-r3.ebuild +++ b/dev-util/ninja/ninja-1.11.1-r3.ebuild @@ -121,6 +121,9 @@ src_install() { pkg_postinst() { use emacs && elisp-site-regen + if ! [[ -e "${EROOT}/usr/bin/ninja" ]]; then + ln -s ninja-reference "${EROOT}/usr/bin/ninja" || die + fi } pkg_postrm() {