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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F183015812D for ; Sat, 04 Jan 2025 23:43:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6132E076B; Sat, 04 Jan 2025 23:43:26 +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 B9928E076B for ; Sat, 04 Jan 2025 23:43:26 +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 AF307335DC0 for ; Sat, 04 Jan 2025 23:43:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C617AED for ; Sat, 04 Jan 2025 23:43:24 +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: <1736034141.a8d7a87420bc34c9c9caadf12b606f5c7313dfb5.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/beep/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/beep/beep-1.4.12-r1.ebuild app-misc/beep/beep-1.4.12-r2.ebuild X-VCS-Directories: app-misc/beep/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: a8d7a87420bc34c9c9caadf12b606f5c7313dfb5 X-VCS-Branch: master Date: Sat, 04 Jan 2025 23:43:24 +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: 2f1c4b79-c4fa-483c-a174-39acd24ba04a X-Archives-Hash: eff89751ad385e514b3bfe953d482e4d commit: a8d7a87420bc34c9c9caadf12b606f5c7313dfb5 Author: Ionen Wolkens gentoo org> AuthorDate: Sat Jan 4 23:21:19 2025 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Sat Jan 4 23:42:21 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8d7a874 app-misc/beep: fix fcaps usage & adjust further This does not run fcaps_pkg_postinst, so the array is never used. Also: 1. little reason to use arrays if going to immediately run fcaps_pkg_postinst on the next line (same for einstalldocs) 2. switch to 755 rather than 711, fcaps.eclass switched to allow world read in commit f8642f4a3ef06b7b82985c9f770e5cda862adb54 and I see no no reason to override that default here 3. drop fperms line, the Makefile does not set a suid-bit and defaults to 0755, so it's now redundant 4. use relative path for fcaps call, let eclass handle EROOT 5. fwiw drop INSTALL.md+PACKAGING.md, packager-intended docs are not interesting for users... also makes the line break at <80 chars :) Fixes: 01e878219667bf8ce1781f7b74758ecf40ecb80b Closes: https://bugs.gentoo.org/947505 Signed-off-by: Ionen Wolkens gentoo.org> .../{beep-1.4.12-r1.ebuild => beep-1.4.12-r2.ebuild} | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/app-misc/beep/beep-1.4.12-r1.ebuild b/app-misc/beep/beep-1.4.12-r2.ebuild similarity index 80% rename from app-misc/beep/beep-1.4.12-r1.ebuild rename to app-misc/beep/beep-1.4.12-r2.ebuild index 6615cc9f090a..723adb9759bc 100644 --- a/app-misc/beep/beep-1.4.12-r1.ebuild +++ b/app-misc/beep/beep-1.4.12-r2.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 @@ -34,20 +34,12 @@ src_prepare() { src_install() { dobin beep - doman "${PN}.1" - - fperms 0711 /usr/bin/beep - - local DOCS=( - CREDITS.md DEVELOPMENT.md INSTALL.md NEWS.md PACKAGING.md PERMISSIONS.md README.md - ) - einstalldocs + doman ${PN}.1 + dodoc CREDITS.md DEVELOPMENT.md NEWS.md PERMISSIONS.md README.md } pkg_postinst() { - FILECAPS=( - -m0711 cap_dac_override,cap_sys_tty_config "${EROOT}/usr/bin/beep" - ) + fcaps -m 0755 cap_dac_override,cap_sys_tty_config usr/bin/beep elog "Please note that for security reasons, beep will no longer allow" elog "to running w/ SUID or as root under sudo. You will need to give"