* [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/osmctools/, sci-geosciences/osmctools/files/
@ 2025-02-18 21:24 Conrad Kostecki
0 siblings, 0 replies; only message in thread
From: Conrad Kostecki @ 2025-02-18 21:24 UTC (permalink / raw
To: gentoo-commits
commit: ede63d98ff02f01c0f0eab8633c915c0f76e33c4
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 18 21:23:11 2025 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Feb 18 21:24:02 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ede63d98
sci-geosciences/osmctools: add gcc15 patch
Closes: https://bugs.gentoo.org/944867
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
.../osmctools/files/osmctools-0.9-gcc15.patch | 56 ++++++++++++++++++++++
sci-geosciences/osmctools/osmctools-0.9-r2.ebuild | 4 +-
2 files changed, 59 insertions(+), 1 deletion(-)
diff --git a/sci-geosciences/osmctools/files/osmctools-0.9-gcc15.patch b/sci-geosciences/osmctools/files/osmctools-0.9-gcc15.patch
new file mode 100644
index 000000000000..a8a4f2a693c2
--- /dev/null
+++ b/sci-geosciences/osmctools/files/osmctools-0.9-gcc15.patch
@@ -0,0 +1,56 @@
+diff -durN a/src/osmconvert.c b/src/osmconvert.c
+--- a/src/osmconvert.c
++++ b/src/osmconvert.c
+@@ -464,6 +464,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
++#include <stdbool.h>
+ #include <locale.h>
+ #include <time.h>
+ #include <ctype.h>
+@@ -471,7 +472,6 @@
+ #include <fcntl.h>
+ #include <signal.h>
+
+-typedef enum {false= 0,true= 1} bool;
+ typedef uint8_t byte;
+ typedef unsigned int uint;
+ #define isdig(x) isdigit((unsigned char)(x))
+diff -durN a/src/osmfilter.c b/src/osmfilter.c
+--- a/src/osmfilter.c
++++ b/src/osmfilter.c
+@@ -377,13 +377,13 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
++#include <stdbool.h>
+ #include <time.h>
+ #include <ctype.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <signal.h>
+
+-typedef enum {false= 0,true= 1} bool;
+ typedef uint8_t byte;
+ typedef unsigned int uint;
+ #define isdig(x) isdigit((unsigned char)(x))
+diff -durN a/src/osmupdate.c b/src/osmupdate.c
+--- a/src/osmupdate.c
++++ b/src/osmupdate.c
+@@ -172,6 +172,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
++#include <stdbool.h>
+ #include <errno.h>
+ #include <time.h>
+ #include <ctype.h>
+@@ -180,7 +181,6 @@
+ #include <signal.h>
+ #include <sys/stat.h>
+
+-typedef enum {false= 0,true= 1} bool;
+ typedef uint8_t byte;
+ typedef unsigned int uint;
+ #define isdig(x) isdigit((unsigned char)(x))
diff --git a/sci-geosciences/osmctools/osmctools-0.9-r2.ebuild b/sci-geosciences/osmctools/osmctools-0.9-r2.ebuild
index e096bec36d61..7fbb789ed233 100644
--- a/sci-geosciences/osmctools/osmctools-0.9-r2.ebuild
+++ b/sci-geosciences/osmctools/osmctools-0.9-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -16,6 +16,8 @@ KEYWORDS="amd64 ~x86"
DEPEND="sys-libs/zlib"
RDEPEND="${DEPEND}"
+PATCHES=( "${FILESDIR}/${PN}-0.9-gcc15.patch" )
+
src_prepare() {
default
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-18 21:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-18 21:24 [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/osmctools/, sci-geosciences/osmctools/files/ Conrad Kostecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox