From dcd65e1cb7ec42c7dfe23b79dd8cb79b703fc360 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 6 Feb 2022 00:16:55 +0100 Subject: [PATCH] script/autobuild.py: let nm_grep_symbols ignore __gcov_ symbols Currently the gcov build currently fails with the following error: samba-libs: [allshared-no-public-nss_winbind] Running nm ./bin/plugins/libnss_winbind.so.2 | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | egrep -v ' T _nss_winbind_' |egrep ' [BDGTRVWS] ' && exit 1; exit 0; in '/tmp/samba-testbase/samba-libs/.' 0000000000232458 B __gcov_error_file 0000000000226340 D __gcov_master 000000000001c080 T __gcov_sort_n_vals 00000000002324a0 B __gcov_var samba-libs: [allshared-no-public-nss_winbind] failed 'nm ./bin/plugins/libnss_winbind.so.2 | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | egrep -v ' T _nss_winbind_' |egrep ' [BDGTRVWS] ' && exit 1; exit 0;' with status 1 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Sun Feb 6 13:39:09 UTC 2022 on sn-devel-184 --- script/autobuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/autobuild.py b/script/autobuild.py index 6634356f031..365b0ebe5ce 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -122,7 +122,7 @@ CLEAN_SOURCE_TREE_CMD = "cd ${TEST_SOURCE_DIR} && script/clean-source-tree.sh" def nm_grep_symbols(sofile, expected_symbols=""): return "nm " + sofile + " | " + \ - "egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | " + \ + "egrep -v ' (__bss_start|_edata|_init|_fini|_end|__gcov_)' | " + \ "egrep -v '" + expected_symbols + "' |" + \ "egrep ' [BDGTRVWS] ' && exit 1; exit 0;"