meson: Convert undefsym.sh to undefsym.py
PATCH v2 1/1 meson: Convert undefsym.sh to undefsym.py
undefsym.sh are not msys2 compatible, convert it to python script
Signed-off-by Yonggang Luo <[email protected]>
--- meson.build | 2 +- scripts/undefsym.py | 70 +++++++++++++++++++++++++++++++++++++++++++++ scripts/undefsym.sh | 20 ------------- 3 files changed, 71 insertions(+), 21 deletions(-) create mode 100644 scripts/undefsym.py delete mode 100755 scripts/undefsym.sh
meson.build +1 -1
@@ -859,7 +859,7 @@ foreach d, list : modules endforeach nm = find_program('nm') -undefsym = find_program('scripts/undefsym.sh') +undefsym = find_program('scripts/undefsym.py') block_syms = custom_target('block.syms', output: 'block.syms', input: [libqemuutil, block_mods], capture: true,
scripts/undefsym.py new file +70 -0
70 lines not on this page · raw message
scripts/undefsym.sh deleted +0 -20
@@ -1,20 +0,0 @@ -#! /usr/bin/env bash - -# Before a shared module's DSO is produced, a static library is built for it -# and passed to this script. The script generates -Wl,-u options to force -# the inclusion of symbol from libqemuutil.a if the shared modules need them, -# This is necessary because the modules may use functions not needed by the -# executable itself, which would cause the function to not be linked in. -# Then the DSO loading would fail because of the missing symbol. - -if test $# -le 2; then - exit 0 -fi - -NM=$1 -staticlib=$2 -shift 2 -# Find symbols defined in static libraries and undefined in shared modules -comm -12 \ - <( $NM -P -g $staticlib | awk '$2!="U"{print "-Wl,-u," $1}' | sort -u) \ - <( $NM -P -g "$@" | awk '$2=="U"{print "-Wl,-u," $1}' | sort -u)
Signature · 1 line
2.27.0.windows.1
I am confusing, why my patch are not recognized by Patchew?
Signature · 6 lines
此致
礼
罗勇刚
Yours
sincerely,
Yonggang LuoQuoted 2 lines · 罗勇刚(Yonggang Luo)
I am confusing, why my patch are not recognized by Patchew?
I looked at the message headers in case git-publish corrupted the email, but I didn't notice any issues.
Some of your other patches were detected correctly by Patchew:
https://patchew.org/search?q=project%3AQEMU+from%3Aluoyonggang%40gmail.com
Maybe Paolo can check what happened to this particular patch?
Stefan