dev-libs/jansson: properly handle symbol names in tests

Closes: https://bugs.gentoo.org/814944
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Rolf Eike Beer
2021-11-12 22:22:56 +00:00
committed by Sam James
parent 6d64a5b114
commit 2df0372e65
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,22 @@
From 0677666f65b988b2dd44d02966a08fea490d5883 Mon Sep 17 00:00:00 2001
From: Petri Lehtinen <petri@digip.org>
Date: Thu, 9 Sep 2021 21:53:11 +0300
Subject: [PATCH] Fix the check-exports tests for versioned symbols
---
test/suites/api/check-exports | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/suites/api/check-exports b/test/suites/api/check-exports
index 2b6b3c79..5c82064c 100755
--- a/test/suites/api/check-exports
+++ b/test/suites/api/check-exports
@@ -15,7 +15,7 @@ grep 'json_\|jansson_' $top_srcdir/src/jansson.def \
nm -D $SOFILE >/dev/null >$test_log/symbols 2>/dev/null \
|| exit 77 # Skip if "nm -D" doesn't seem to work
-grep ' [DT] ' $test_log/symbols | cut -d' ' -f3 | grep -v '^_' | sort >$test_log/output
+grep ' [DT] ' $test_log/symbols | cut -d' ' -f3 | grep -v '^_' | sed 's/@@libjansson.*//' | sort >$test_log/output
if ! cmp -s $test_log/exports $test_log/output; then
diff -u $test_log/exports $test_log/output >&2
+2
View File
@@ -16,6 +16,8 @@ IUSE="doc static-libs"
BDEPEND="doc? ( dev-python/sphinx )"
PATCHES=( "${FILESDIR}/${P}-test-symbols.patch" )
multilib_src_configure() {
tc-ld-force-bfd