From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/liblas/, sci-geosciences/liblas/files/
Date: Wed, 6 Nov 2024 10:47:15 +0000 (UTC) [thread overview]
Message-ID: <1730890010.0d56ef08f79c8719746939bc4cc0f54852774d69.sam@gentoo> (raw)
commit: 0d56ef08f79c8719746939bc4cc0f54852774d69
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 6 10:30:41 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 6 10:46:50 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d56ef08
sci-geosciences/liblas: fix modern C issue
Closes: https://bugs.gentoo.org/933089
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../liblas/files/liblas-1.8.1-c99.patch | 22 ++++++++++++++++++++++
...blas-1.8.1-r3.ebuild => liblas-1.8.1-r4.ebuild} | 1 +
2 files changed, 23 insertions(+)
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
similarity index 97%
rename from sci-geosciences/liblas/liblas-1.8.1-r3.ebuild
rename to 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() {
next reply other threads:[~2024-11-06 10:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-06 10:47 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-02-26 16:56 [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/liblas/, sci-geosciences/liblas/files/ Andreas Sturmlechner
2019-05-24 19:26 Andreas Sturmlechner
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=1730890010.0d56ef08f79c8719746939bc4cc0f54852774d69.sam@gentoo \
--to=sam@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