commit: 4c46ec54d7dd7deadc5520fe18a20092af162df1 Author: Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com> AuthorDate: Sun Sep 7 18:27:47 2025 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Sat Sep 13 15:03:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c46ec54
net-analyzer/gvmd: Fix C23 build Closes: https://bugs.gentoo.org/962394 Signed-off-by: Giuseppe Foti <foti.giuseppe <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43705 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> .../gvmd/files/gvmd-25.2.1-fix-c23-build.patch | 25 ++++++++++++++++++++++ net-analyzer/gvmd/gvmd-25.2.1.ebuild | 5 +++++ 2 files changed, 30 insertions(+) diff --git a/net-analyzer/gvmd/files/gvmd-25.2.1-fix-c23-build.patch b/net-analyzer/gvmd/files/gvmd-25.2.1-fix-c23-build.patch new file mode 100644 index 000000000000..90ffc6c2d2ea --- /dev/null +++ b/net-analyzer/gvmd/files/gvmd-25.2.1-fix-c23-build.patch @@ -0,0 +1,25 @@ +# Complete two function prototypes to fix C23 build +# https://github.com/greenbone/gvmd/commit/37c5d9176cbb16c107f3ce2db34b1dcbb10a0c5e +# https://github.com/greenbone/gvmd/commit/760064291b66ac72ce9fc184f2c5770680ae239d +--- a/src/manage_sql_secinfo.h ++++ b/src/manage_sql_secinfo.h +@@ -181,7 +181,7 @@ + #define SECINFO_COMMIT_SIZE_DEFAULT 0 + + int +-secinfo_feed_version_status (); ++secinfo_feed_version_status (const char *); + + pid_t + manage_sync_scap (sigset_t *); +--- a/src/manage_sql_tickets.h ++++ b/src/manage_sql_tickets.h +@@ -50,7 +50,7 @@ void + empty_trashcan_tickets (); + + void +-check_tickets (); ++check_tickets (task_t); + + void + delete_tickets_user (user_t); diff --git a/net-analyzer/gvmd/gvmd-25.2.1.ebuild b/net-analyzer/gvmd/gvmd-25.2.1.ebuild index 7edfac7dfed4..2af0cf5ab2f9 100644 --- a/net-analyzer/gvmd/gvmd-25.2.1.ebuild +++ b/net-analyzer/gvmd/gvmd-25.2.1.ebuild @@ -50,6 +50,11 @@ BDEPEND=" test? ( dev-libs/cgreen ) " +PATCHES=( + # Closes #962394 + "${FILESDIR}/${P}-fix-c23-build.patch" +) + src_prepare() { cmake_src_prepare # QA-Fix | Use correct FHS/Gentoo policy paths for 9.0.0
