diff options
author | Sam James <sam@gentoo.org> | 2024-11-06 10:30:41 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-06 10:46:50 +0000 |
commit | 0d56ef08f79c8719746939bc4cc0f54852774d69 (patch) | |
tree | 67e5e1167a127952a229f903b80c8505d779b494 /sci-geosciences | |
parent | app-admin/rex: Update dependencies (diff) | |
download | gentoo-0d56ef08f79c8719746939bc4cc0f54852774d69.tar.gz gentoo-0d56ef08f79c8719746939bc4cc0f54852774d69.tar.bz2 gentoo-0d56ef08f79c8719746939bc4cc0f54852774d69.zip |
sci-geosciences/liblas: fix modern C issue
Closes: https://bugs.gentoo.org/933089
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r-- | sci-geosciences/liblas/files/liblas-1.8.1-c99.patch | 22 | ||||
-rw-r--r-- | sci-geosciences/liblas/liblas-1.8.1-r4.ebuild (renamed from sci-geosciences/liblas/liblas-1.8.1-r3.ebuild) | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/sci-geosciences/liblas/files/liblas-1.8.1-c99.patch b/sci-geosciences/liblas/files/liblas-1.8.1-c99.patch new file mode 100644 index 000000000000..71ef666010a2 --- /dev/null +++ b/sci-geosciences/liblas/files/liblas-1.8.1-c99.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/933089 +https://github.com/libLAS/libLAS/commit/e789d43df4500da0c12d2f6d3ac1d031ed835493 + +From e789d43df4500da0c12d2f6d3ac1d031ed835493 Mon Sep 17 00:00:00 2001 +From: Ben Boeckel <ben.boeckel@kitware.com> +Date: Wed, 31 Oct 2018 11:38:19 -0400 +Subject: [PATCH] las2col: use fflush for FILE* + +The `fsync` function operates on file descriptors, not C `FILE` +pointers. Instead, use `fflush`. +--- a/apps/las2col.c ++++ b/apps/las2col.c +@@ -1042,7 +1042,7 @@ int main(int argc, char *argv[]) + fflush(files_out[i]); + if (verbose) + printf("close file %d\n", i); +- fsync(files_out[i]); ++ fflush(files_out[i]); + fclose(files_out[i]); + } + free(files_out); + diff --git a/sci-geosciences/liblas/liblas-1.8.1-r3.ebuild b/sci-geosciences/liblas/liblas-1.8.1-r4.ebuild index 1c896bcd74f1..c55fc20687a9 100644 --- a/sci-geosciences/liblas/liblas-1.8.1-r3.ebuild +++ b/sci-geosciences/liblas/liblas-1.8.1-r4.ebuild @@ -34,6 +34,7 @@ PATCHES=( "${FILESDIR}"/${P}-fix-debug.patch # bug 668778 "${FILESDIR}"/${P}-boost-1.73.patch # bug 722878 "${FILESDIR}"/${P}-gcc11.patch # bug 789732 + "${FILESDIR}"/${P}-c99.patch # bug 933089 ) src_prepare() { |