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 E2A6C158B20 for ; Sat, 01 Feb 2025 14:50:40 +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 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id CD5EF343144 for ; Sat, 01 Feb 2025 14:50:40 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 02EA311046F; Sat, 01 Feb 2025 14:50:37 +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 bobolink.gentoo.org (Postfix) with ESMTPS id EDB9311046F for ; Sat, 01 Feb 2025 14:50:36 +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 A0115343109 for ; Sat, 01 Feb 2025 14:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D41DA11A7 for ; Sat, 01 Feb 2025 14:50:34 +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: <1738421256.221c06cb6f3ecdaf8d965bb169d91d623f62502f.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/dateutils/, app-misc/dateutils/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/dateutils/dateutils-0.4.10.ebuild app-misc/dateutils/files/dateutils-4.10-gcc-14.patch X-VCS-Directories: app-misc/dateutils/ app-misc/dateutils/files/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 221c06cb6f3ecdaf8d965bb169d91d623f62502f X-VCS-Branch: master Date: Sat, 01 Feb 2025 14:50:34 +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: 66952a58-527d-49a0-b6dc-5bc4661b3296 X-Archives-Hash: a095efb7263d44069429f085cc3b83ff commit: 221c06cb6f3ecdaf8d965bb169d91d623f62502f Author: Ferenc Erki gmail com> AuthorDate: Sun Jan 26 17:06:13 2025 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Sat Feb 1 14:47:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=221c06cb app-misc/dateutils: fix build with gcc-14 Closes: https://bugs.gentoo.org/920453 Signed-off-by: Ferenc Erki gmail.com> Signed-off-by: Florian Schmaus gentoo.org> app-misc/dateutils/dateutils-0.4.10.ebuild | 2 ++ .../dateutils/files/dateutils-4.10-gcc-14.patch | 41 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/app-misc/dateutils/dateutils-0.4.10.ebuild b/app-misc/dateutils/dateutils-0.4.10.ebuild index 58b1ee2c92ef..1dab11f86473 100644 --- a/app-misc/dateutils/dateutils-0.4.10.ebuild +++ b/app-misc/dateutils/dateutils-0.4.10.ebuild @@ -22,6 +22,8 @@ SLOT="0" BDEPEND="app-arch/xz-utils" DEPEND="sys-libs/timezone-data" +PATCHES="${P}-gcc-14.patch" + # bug 429810 RDEPEND="${DEPEND} !sys-fabric/dapl" diff --git a/app-misc/dateutils/files/dateutils-4.10-gcc-14.patch b/app-misc/dateutils/files/dateutils-4.10-gcc-14.patch new file mode 100644 index 000000000000..c4c0c8ffeab1 --- /dev/null +++ b/app-misc/dateutils/files/dateutils-4.10-gcc-14.patch @@ -0,0 +1,41 @@ +From 51ac0e033cfb74e814d2ee282ef7ea94223e6915 Mon Sep 17 00:00:00 2001 +From: Sebastian Freundt +Date: Wed, 24 Jan 2024 07:55:15 +0000 +Subject: [PATCH] hygiene, satisfy gcc's idea of constant string arrays, + addresses issue 143 + +--- + src/strptime.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/strptime.c b/src/strptime.c +index 2f0c1fe5..001c2156 100644 +--- a/src/strptime.c ++++ b/src/strptime.c +@@ -54,7 +54,7 @@ const char *prog = "strptime"; + + + static int +-pars_line(struct tm *tm, const char *const *fmt, size_t nfmt, const char *line) ++pars_line(struct tm *tm, char *const *fmt, size_t nfmt, const char *line) + { + for (size_t i = 0; i < nfmt; i++) { + if (fmt[i] && strptime(line, fmt[i], tm) != NULL) { +@@ -75,7 +75,7 @@ prnt_line(const char *ofmt, struct tm *tm) + + static int + proc_line( +- const char *ln, const char *const *fmt, size_t nfmt, ++ const char *ln, char *const *fmt, size_t nfmt, + const char *ofmt, + int quietp) + { +@@ -94,7 +94,7 @@ proc_line( + } + + static int +-proc_lines(const char *const *fmt, size_t nfmt, const char *ofmt, int quietp) ++proc_lines(char *const *fmt, size_t nfmt, const char *ofmt, int quietp) + { + size_t lno = 0; + int rc = 0;