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 BC3B415802F for ; Fri, 10 Mar 2023 03:53:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73AC2E086A; Fri, 10 Mar 2023 03:53:58 +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 5A80DE086A for ; Fri, 10 Mar 2023 03:53:58 +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 4B39D340688 for ; Fri, 10 Mar 2023 03:53:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 930BC88F for ; Fri, 10 Mar 2023 03:53:55 +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: <1678420374.43a474eb12b0ff14f18688fcfcea48fae915be7b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/nftables/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-firewall/nftables/nftables-1.0.6.ebuild net-firewall/nftables/nftables-9999.ebuild X-VCS-Directories: net-firewall/nftables/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 43a474eb12b0ff14f18688fcfcea48fae915be7b X-VCS-Branch: master Date: Fri, 10 Mar 2023 03:53:55 +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: 8a0fac81-1fde-4a71-97ae-d52fadd52e8d X-Archives-Hash: ea87e36b350ecffaeb708a7341537eea commit: 43a474eb12b0ff14f18688fcfcea48fae915be7b Author: Sam James gentoo org> AuthorDate: Fri Mar 10 03:52:54 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Mar 10 03:52:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43a474eb net-firewall/nftables: add commentary re pkg_preinst check Signed-off-by: Sam James gentoo.org> net-firewall/nftables/nftables-1.0.6.ebuild | 2 ++ net-firewall/nftables/nftables-9999.ebuild | 2 ++ 2 files changed, 4 insertions(+) diff --git a/net-firewall/nftables/nftables-1.0.6.ebuild b/net-firewall/nftables/nftables-1.0.6.ebuild index 69e3d6988f20..bd4f23708a7e 100644 --- a/net-firewall/nftables/nftables-1.0.6.ebuild +++ b/net-firewall/nftables/nftables-1.0.6.ebuild @@ -169,6 +169,8 @@ src_install() { pkg_preinst() { local stderr + # There's a history of regressions with nftables upgrades. Add a safety + # check to help us spot them earlier. if [[ -d /sys/module/nf_tables ]] && [[ -x /sbin/nft ]] && [[ -z ${ROOT} ]]; then # Check the current loaded ruleset, if any, using the newly # built instance of nft(8). diff --git a/net-firewall/nftables/nftables-9999.ebuild b/net-firewall/nftables/nftables-9999.ebuild index 2ef025795e56..f60144b1a850 100644 --- a/net-firewall/nftables/nftables-9999.ebuild +++ b/net-firewall/nftables/nftables-9999.ebuild @@ -167,6 +167,8 @@ src_install() { } pkg_preinst() { + # There's a history of regressions with nftables upgrades. Add a safety + # check to help us spot them earlier. if [[ -d /sys/module/nf_tables ]] && [[ -x /sbin/nft ]] && [[ -z ${ROOT} ]]; then if ! /sbin/nft -t list ruleset | "${ED}"/sbin/nft -c -f -; then eerror "Your currently loaded ruleset cannot be parsed by the newly built instance of"