File: tests-Skip-symbol-check-on-some-architectures.patch

package info (click to toggle)
phosh 0.49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,180 kB
  • sloc: ansic: 79,448; xml: 3,851; sh: 449; python: 355; makefile: 34; lisp: 22; javascript: 6
file content (30 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Sun, 21 Apr 2024 12:47:07 +0200
Subject: tests: Skip symbol check on some architectures

These architectures have too many exported symbols
---
 tools/check-exported-symbols | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tools/check-exported-symbols b/tools/check-exported-symbols
index 648a13a..405b692 100755
--- a/tools/check-exported-symbols
+++ b/tools/check-exported-symbols
@@ -6,6 +6,16 @@ BIN=${1:-"_build/src/phosh"}
 
 PHOSH_SYMBOL_PREFIXES='phosh_(shell|wifi|wwan|mpris_manager|media_player|monitor|notification|notify_manager|quick_setting|status_icon|status_page|status_page_placholder|session_manager|util)_'
 
+arch=$(uname -m)
+
+case $arch in
+  mips64*|riscv64|s390*)
+      echo "Skipping symbol check on $arch"
+      exit 77
+      ;;
+esac
+
+
 if objdump -T  $BIN | grep 'g    DF .text' \
 	| grep -v -E " (main$|${PHOSH_SYMBOL_PREFIXES}|gtk_(filter|sort)_list_model_)"; then
     echo "Found symbols that shouldn't be exported"