From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A527A158200 for ; Sun, 14 Sep 2025 10:39:58 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 399A4340FB3 for ; Sun, 14 Sep 2025 10:39:58 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 61705110571; Sun, 14 Sep 2025 10:39:56 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 55DD0110571 for ; Sun, 14 Sep 2025 10:39:56 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D2F95340F31 for ; Sun, 14 Sep 2025 10:39:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6794D2E6E for ; Sun, 14 Sep 2025 10:39:54 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1757846367.ccd5546d74d0f1e5787b6daaa0f2d4d41226670c.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gvmd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/gvmd/gvmd-24.1.0.ebuild net-analyzer/gvmd/gvmd-25.2.1.ebuild X-VCS-Directories: net-analyzer/gvmd/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: ccd5546d74d0f1e5787b6daaa0f2d4d41226670c X-VCS-Branch: master Date: Sun, 14 Sep 2025 10:39:54 +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: 889df3a3-ba88-42aa-bb03-7ef31208f37d X-Archives-Hash: a08c94553f5640e271bdfc4c5c5794c0 commit: ccd5546d74d0f1e5787b6daaa0f2d4d41226670c Author: Giuseppe Foti gmail com> AuthorDate: Sun Sep 14 09:56:40 2025 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Sun Sep 14 10:39:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccd5546d net-analyzer/gvmd: fix C23 build on 24.1.0, only show update instructions on update Closes: https://bugs.gentoo.org/946583 Signed-off-by: Giuseppe Foti gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43780 Closes: https://github.com/gentoo/gentoo/pull/43780 Signed-off-by: Florian Schmaus gentoo.org> net-analyzer/gvmd/gvmd-24.1.0.ebuild | 18 ++++++++++++------ net-analyzer/gvmd/gvmd-25.2.1.ebuild | 14 ++++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/net-analyzer/gvmd/gvmd-24.1.0.ebuild b/net-analyzer/gvmd/gvmd-24.1.0.ebuild index 39db42e8767d..2f43e4d1c19c 100644 --- a/net-analyzer/gvmd/gvmd-24.1.0.ebuild +++ b/net-analyzer/gvmd/gvmd-24.1.0.ebuild @@ -49,6 +49,10 @@ BDEPEND=" ) test? ( dev-libs/cgreen ) " +PATCHES=( + # Closes #946583 + "${FILESDIR}/gvmd-25.2.1-fix-c23-build.patch" +) src_prepare() { cmake_src_prepare @@ -120,10 +124,12 @@ src_install() { } pkg_postinst() { - elog "If you are upgrading from a previous version, you need to update the database version." - elog "Please, create the running directory and give write permission to the database user" - elog "then run gvmd as the gvm user with --migrate option:" - elog "~# mkdir /run/gvmd" - elog "~# setfacl -m u:gvm:rwx /run/gvmd/" - elog "~# sudo -u gvm gvmd --migrate" + if [[ ${REPLACING_VERSIONS} ]]; then + elog "If you are upgrading from a previous version, you need to update the database version." + elog "Please, create the running directory and give write permission to the database user" + elog "then run gvmd as the gvm user with --migrate option:" + elog "~# mkdir /run/gvmd" + elog "~# setfacl -m u:gvm:rwx /run/gvmd/" + elog "~# sudo -u gvm gvmd --migrate" + fi } diff --git a/net-analyzer/gvmd/gvmd-25.2.1.ebuild b/net-analyzer/gvmd/gvmd-25.2.1.ebuild index 2af0cf5ab2f9..fcd4efa11f93 100644 --- a/net-analyzer/gvmd/gvmd-25.2.1.ebuild +++ b/net-analyzer/gvmd/gvmd-25.2.1.ebuild @@ -125,10 +125,12 @@ src_install() { } pkg_postinst() { - elog "If you are upgrading from a previous version, you need to update the database version." - elog "Please, create the running directory and give write permission to the database user" - elog "then run gvmd as the gvm user with --migrate option:" - elog "~# mkdir /run/gvmd" - elog "~# setfacl -m u:gvm:rwx /run/gvmd/" - elog "~# sudo -u gvm gvmd --migrate" + if [[ ${REPLACING_VERSIONS} ]]; then + elog "If you are upgrading from a previous version, you need to update the database version." + elog "Please, create the running directory and give write permission to the database user" + elog "then run gvmd as the gvm user with --migrate option:" + elog "~# mkdir /run/gvmd" + elog "~# setfacl -m u:gvm:rwx /run/gvmd/" + elog "~# sudo -u gvm gvmd --migrate" + fi }