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 E24141581C1 for ; Mon, 8 Jul 2024 03:19:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDBBC2BC03F; Mon, 8 Jul 2024 03:19:09 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 C4D8D2BC03F for ; Mon, 8 Jul 2024 03:19:09 +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 F1B5534302C for ; Mon, 8 Jul 2024 03:19:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1603D1DF8 for ; Mon, 8 Jul 2024 03:19:06 +0000 (UTC) From: "Eli Schwartz" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eli Schwartz" Message-ID: <1720408720.e940cb1186e1d25ab604cad4b3e02cb7a324b30e.eschwartz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/opendnssec/, net-dns/opendnssec/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch net-dns/opendnssec/opendnssec-2.1.13-r1.ebuild net-dns/opendnssec/opendnssec-2.1.13.ebuild X-VCS-Directories: net-dns/opendnssec/ net-dns/opendnssec/files/ X-VCS-Committer: eschwartz X-VCS-Committer-Name: Eli Schwartz X-VCS-Revision: e940cb1186e1d25ab604cad4b3e02cb7a324b30e X-VCS-Branch: master Date: Mon, 8 Jul 2024 03:19:06 +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: 1735a69f-6255-4518-b35e-9f68243966fd X-Archives-Hash: e0296262d249cb5a8c15954fe7432e9a commit: e940cb1186e1d25ab604cad4b3e02cb7a324b30e Author: Eli Schwartz gentoo org> AuthorDate: Mon Jul 8 03:13:00 2024 +0000 Commit: Eli Schwartz gentoo org> CommitDate: Mon Jul 8 03:18:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e940cb11 net-dns/opendnssec: add patch to build with gcc 14 Upstream's website appears to be having... issues. I did find a bug reporting link but it led to a subdomain with broken SSL. Unclear how to progress further. The sum totality of the issues is a lot of missing headers. Not only did this affect both configure checks as well as the installable artifacts, but it also triggered LTO type mismatch errors when the missing stdlib headers resulted in fake guessed prototypes that then mismatched libc. Killing two birds with one stone! Closes: https://bugs.gentoo.org/871294 Closes: https://bugs.gentoo.org/879727 Closes: https://bugs.gentoo.org/924367 Closes: https://bugs.gentoo.org/927176 Signed-off-by: Eli Schwartz gentoo.org> ...s-of-headers-to-pass-the-basic-c99-sniff-.patch | 89 ++++++++++++++++++++++ ...c-2.1.13.ebuild => opendnssec-2.1.13-r1.ebuild} | 4 + 2 files changed, 93 insertions(+) diff --git a/net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch b/net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch new file mode 100644 index 000000000000..3d0f1b8e73ef --- /dev/null +++ b/net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch @@ -0,0 +1,89 @@ +From cd5e920572eabc54dc7350c41ca172b49e48ac1a Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Sun, 7 Jul 2024 21:38:29 -0400 +Subject: [PATCH] include lots of headers to pass the basic c99 sniff test + +Including configure checks, which currently emit broken results. + +And in one case, include config.h early enough to do something. +--- + common/scheduler/task.c | 1 + + enforcer/src/daemon/time_leap_cmd.c | 2 +- + enforcer/src/utils/kaspcheck.c | 1 + + enforcer/src/utils/kc_helper.c | 1 + + m4/acx_broken_setres.m4 | 2 ++ + 5 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/common/scheduler/task.c b/common/scheduler/task.c +index 4dcf9e9..0dfa496 100644 +--- a/common/scheduler/task.c ++++ b/common/scheduler/task.c +@@ -40,6 +40,7 @@ + #include "duration.h" + #include "file.h" + #include "log.h" ++#include "utilities.h" + + static const char* task_str = "task"; + static pthread_mutex_t worklock = PTHREAD_MUTEX_INITIALIZER; +diff --git a/enforcer/src/daemon/time_leap_cmd.c b/enforcer/src/daemon/time_leap_cmd.c +index af41c8d..b17773c 100644 +--- a/enforcer/src/daemon/time_leap_cmd.c ++++ b/enforcer/src/daemon/time_leap_cmd.c +@@ -26,8 +26,8 @@ + * + */ + +-#include + #include "config.h" ++#include + + #include "file.h" + #include "duration.h" +diff --git a/enforcer/src/utils/kaspcheck.c b/enforcer/src/utils/kaspcheck.c +index 9bac3b7..fcdb36d 100644 +--- a/enforcer/src/utils/kaspcheck.c ++++ b/enforcer/src/utils/kaspcheck.c +@@ -25,6 +25,7 @@ + + #define _GNU_SOURCE + #include ++#include + #include + #include + #include +diff --git a/enforcer/src/utils/kc_helper.c b/enforcer/src/utils/kc_helper.c +index 72d181f..7f1278e 100644 +--- a/enforcer/src/utils/kc_helper.c ++++ b/enforcer/src/utils/kc_helper.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/m4/acx_broken_setres.m4 b/m4/acx_broken_setres.m4 +index 374cee0..c9eda46 100644 +--- a/m4/acx_broken_setres.m4 ++++ b/m4/acx_broken_setres.m4 +@@ -4,6 +4,7 @@ AC_DEFUN([ACX_BROKEN_SETRES],[ + AC_MSG_CHECKING(if setresuid seems to work) + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ ++#include + #include + #include + int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} +@@ -20,6 +21,7 @@ int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} + AC_MSG_CHECKING(if setresgid seems to work) + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ ++#include + #include + #include + int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} +-- +2.44.2 + diff --git a/net-dns/opendnssec/opendnssec-2.1.13.ebuild b/net-dns/opendnssec/opendnssec-2.1.13-r1.ebuild similarity index 96% rename from net-dns/opendnssec/opendnssec-2.1.13.ebuild rename to net-dns/opendnssec/opendnssec-2.1.13-r1.ebuild index 36ea2b040912..7ae289d49c92 100644 --- a/net-dns/opendnssec/opendnssec-2.1.13.ebuild +++ b/net-dns/opendnssec/opendnssec-2.1.13-r1.ebuild @@ -59,6 +59,10 @@ PATCHES=( "${FILESDIR}/${PN}-fix-run-dir-2.1.x.patch" "${FILESDIR}/${PN}-use-system-trang.patch" "${FILESDIR}/${PN}-fix-mysql.patch" + # fix some modern C errors due to missing includes. Not forwarded upstream, + # since upstream's website appears to be in a state of disarray and the + # "Bug Reporting" link doesn't work. + "${FILESDIR}"/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch ) DOCS=( MIGRATION NEWS )