commit:     1705de92b2bf3806a92acb758f601bb105bebf13
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 20 21:58:43 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 20 21:59:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1705de92

dev-util/colm: fix tests

* Drop single test which fails w/ modern C issues (too hard to try pass
  -std=gnu89 in there)

* Make sure tests run against just-built copy (and therefore also work
  when colm isn't yet installed)

Closes: https://bugs.gentoo.org/941565
Closes: https://bugs.gentoo.org/944324
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/colm/colm-0.14.7-r4.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-util/colm/colm-0.14.7-r4.ebuild 
b/dev-util/colm/colm-0.14.7-r4.ebuild
index 99c32aa91d80..1a78eacc012f 100644
--- a/dev-util/colm/colm-0.14.7-r4.ebuild
+++ b/dev-util/colm/colm-0.14.7-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -47,6 +47,9 @@ src_prepare() {
                sed -i -e 's/libcolm\.so/libcolm.dylib/' src/main.cc || die
        fi
 
+       # Test fails w/ modern C (bug #944324)
+       rm test/colm.d/ext1.lm || die
+
        eautoreconf
 }
 
@@ -69,7 +72,8 @@ src_test() {
        # Build tests
        default
 
-       # Run them
+       # Run them (and make sure we use just-built libraries, bug #941565)
+       local -x LD_LIBRARY_PATH="${S}/src/.libs:${S}/src:${LD_LIBRARY_PATH}"
        cd test || die
        ./runtests || die
 }

Reply via email to