commit:     95a575a2bd2d6b396d56e01776135f15c56c2104
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  4 00:01:50 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Mar  4 00:02:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a575a2

sci-libs/dcmtk: Apply musl-1.2.4 largefile workaround

Bug: https://bugs.gentoo.org/908398
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sci-libs/dcmtk/dcmtk-3.6.7-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sci-libs/dcmtk/dcmtk-3.6.7-r1.ebuild 
b/sci-libs/dcmtk/dcmtk-3.6.7-r1.ebuild
index 5cc0d99ccf7f..9a82a24e3064 100644
--- a/sci-libs/dcmtk/dcmtk-3.6.7-r1.ebuild
+++ b/sci-libs/dcmtk/dcmtk-3.6.7-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake
+inherit flag-o-matic cmake
 
 DESCRIPTION="The DICOM Toolkit"
 HOMEPAGE="https://dicom.offis.de/dcmtk.php.en";
@@ -50,6 +50,9 @@ src_prepare() {
 }
 
 src_configure() {
+       # bug 908398
+       use elibc_musl && append-cppflags -D_LARGEFILE64_SOURCE
+
        local mycmakeargs=(
                -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
                -DDCMTK_WITH_ICU=ON

Reply via email to