commit:     732230c0f163aa18f05e273df597e2bb00fdb97c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 30 05:17:23 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 30 05:17:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=732230c0

sci-libs/cgnslib: fix finding internal Tcl headers

The patch we were using in 4.4.0 is upstream now but unfortunately has
the same issue.

Bug: https://bugs.gentoo.org/934122
Closes: https://bugs.gentoo.org/959272
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/cgnslib/cgnslib-4.5.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sci-libs/cgnslib/cgnslib-4.5.0.ebuild 
b/sci-libs/cgnslib/cgnslib-4.5.0.ebuild
index 117a26a45517..fda3e085bea4 100644
--- a/sci-libs/cgnslib/cgnslib-4.5.0.ebuild
+++ b/sci-libs/cgnslib/cgnslib-4.5.0.ebuild
@@ -65,6 +65,12 @@ src_configure() {
        # https://github.com/CGNS/CGNS/issues/758
        filter-lto
 
+       # Needed for uses an internal header (bug #934122)
+       local tk_ver=$(best_version dev-lang/tk)
+       tk_ver=${tk_ver#dev-lang/tk-}
+       tk_ver=$(ver_cut 1-2 ${tk_ver})
+       append-cppflags 
-I"${ESYSROOT}/usr/$(get_libdir)/tk${tk_ver}/include/generic"
+
        local mycmakeargs=(
                -DCGNS_BUILD_SHARED=ON
                -DCGNS_USE_SHARED=ON

Reply via email to