From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/dateutils/, app-misc/dateutils/files/
Date: Sat, 01 Feb 2025 14:50:34 +0000 (UTC) [thread overview]
Message-ID: <1738421256.221c06cb6f3ecdaf8d965bb169d91d623f62502f.flow@gentoo> (raw)
commit: 221c06cb6f3ecdaf8d965bb169d91d623f62502f
Author: Ferenc Erki <erkiferenc <AT> gmail <DOT> com>
AuthorDate: Sun Jan 26 17:06:13 2025 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> 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 <erkiferenc <AT> gmail.com>
Signed-off-by: Florian Schmaus <flow <AT> 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 <freundt@ga-group.nl>
+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";
+
+ \f
+ 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;
next reply other threads:[~2025-02-01 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-01 14:50 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-09 16:58 [gentoo-commits] repo/gentoo:master commit in: app-misc/dateutils/, app-misc/dateutils/files/ Florian Schmaus
2023-03-19 4:03 Sam James
2021-08-26 22:52 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1738421256.221c06cb6f3ecdaf8d965bb169d91d623f62502f.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox