commit:     f05911cd1a46ac7b974ddcd9d09fec1a911373ac
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Thu Apr  4 12:12:37 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Apr  5 07:39:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f05911cd

sci-libs/ogdi: Fix C99 errors

Closes: https://bugs.gentoo.org/886460
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36095
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../ogdi/files/ogdi-4.1.0-c99-conversions.patch     | 21 +++++++++++++++++++++
 sci-libs/ogdi/ogdi-4.1.0-r1.ebuild                  |  3 ++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/sci-libs/ogdi/files/ogdi-4.1.0-c99-conversions.patch 
b/sci-libs/ogdi/files/ogdi-4.1.0-c99-conversions.patch
new file mode 100644
index 000000000000..476f77b938ef
--- /dev/null
+++ b/sci-libs/ogdi/files/ogdi-4.1.0-c99-conversions.patch
@@ -0,0 +1,21 @@
+--- a/vpflib/vpfprop.c 2024-04-04 12:03:43.682864289 +0000
++++ b/vpflib/vpfprop.c 2024-04-04 12:07:30.498441728 +0000
+@@ -840,7 +840,8 @@
+ #endif
+ 
+ {
+-  int32 ncov,i,j,k,n;
++  char ncov;
++  int32 i,j,k,n;
+   char path[255];
+   char **ptr, **coverages, **subset, **fcnames=(char **)NULL;
+ 
+@@ -1447,7 +1447,7 @@
+                  int32 *nfc )
+ #else
+    char **coverage_feature_class_names (library_path, coverage, nfc)
+-      char *library_path, coverage;
++      char *library_path, *coverage;
+       int32 *nfc;
+ #endif
+ 

diff --git a/sci-libs/ogdi/ogdi-4.1.0-r1.ebuild 
b/sci-libs/ogdi/ogdi-4.1.0-r1.ebuild
index e449cbd2f7e3..c0eb8f3c5dff 100644
--- a/sci-libs/ogdi/ogdi-4.1.0-r1.ebuild
+++ b/sci-libs/ogdi/ogdi-4.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -26,6 +26,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-3.2.0-endianess.patch
        "${FILESDIR}"/${PN}-3.2.0-optimisation.patch
        "${FILESDIR}"/${PN}-3.2.0-tcl.patch
+       "${FILESDIR}"/${P}-c99-conversions.patch
 )
 
 src_prepare() {

Reply via email to