commit:     ccf2eb2b7d4a99074731f23ebf69c88df75aee81
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 23 10:57:50 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 23 10:58:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccf2eb2b

dev-lang/swig: test improvements

* Fix tests on HPPA by passing -fdata-sections -ffunction-sectons
* Make both build & tests more verbose
* Fully respect *FLAGS in tests

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

 dev-lang/swig/swig-4.2.1.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-lang/swig/swig-4.2.1.ebuild b/dev-lang/swig/swig-4.2.1.ebuild
index 0ef5fe9d6afb..4e11cb8a2fcd 100644
--- a/dev-lang/swig/swig-4.2.1.ebuild
+++ b/dev-lang/swig/swig-4.2.1.ebuild
@@ -43,10 +43,22 @@ src_configure() {
                $(use_with pcre)
 }
 
+src_compile() {
+       # Override these variables per Makefile.in to get verbose logs
+       emake FLAGS="-k" RUNPIPE=""
+}
+
 src_test() {
        # The tests won't get run w/o an explicit call, broken Makefiles?
        # java skipped for bug #921504
-       emake skip-java=true check
+       # *-sections for bug #935318
+       emake check \
+               skip-java=true \
+               FLAGS="-k" \
+               RUNPIPE="" \
+               CFLAGS="${CFLAGS} -ffunction-sections -fdata-sections" \
+               CXXFLAGS="${CXXFLAGS} -ffunction-sections -fdata-sections" \
+               LDFLAGS="${LDFLAGS}"
 }
 
 src_install() {

Reply via email to