Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sci-libs/ogdi: Fix C99 errors #36095

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions 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

3 changes: 2 additions & 1 deletion 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
Expand Down Expand Up @@ -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() {
Expand Down