From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 98C5515807B for ; Wed, 6 Nov 2024 10:47:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0308FE0954; Wed, 6 Nov 2024 10:47:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CDCB7E0951 for ; Wed, 6 Nov 2024 10:47:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB779340836 for ; Wed, 6 Nov 2024 10:47:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1BCF61953 for ; Wed, 6 Nov 2024 10:47:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1730890010.0d56ef08f79c8719746939bc4cc0f54852774d69.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/liblas/, sci-geosciences/liblas/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/liblas/files/liblas-1.8.1-c99.patch sci-geosciences/liblas/liblas-1.8.1-r3.ebuild sci-geosciences/liblas/liblas-1.8.1-r4.ebuild X-VCS-Directories: sci-geosciences/liblas/ sci-geosciences/liblas/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0d56ef08f79c8719746939bc4cc0f54852774d69 X-VCS-Branch: master Date: Wed, 6 Nov 2024 10:47:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 647a14a7-c68c-482e-be8d-63dcc6293a72 X-Archives-Hash: 512a83e6e9b1edd140caf5d60ce9d871 commit: 0d56ef08f79c8719746939bc4cc0f54852774d69 Author: Sam James gentoo org> AuthorDate: Wed Nov 6 10:30:41 2024 +0000 Commit: Sam James gentoo 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 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 +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() {