libnice/nice/gen-map.py
Jakub Adam 1ff4d53d3d meson: unify exported symbol versions with autotools
libnice.so created by autotools has its symbols bound to the default
'Base' version node, whereas Meson build arbitrarily introduced a
version node named 'libnice'. This breaks tools like dpkg-gensymbols
that track changes in exported symbols through several releases of the
library.

Remove 'libnice' version and revert back to using unspecified version.
2019-01-14 19:13:12 +01:00

25 lines
320 B
Python

#!/usr/bin/env python3
#
# gen-map.py LIBNICE.SYM
import os
import sys
try:
sym_file = sys.argv[1]
except:
print('Usage: gen-map.py SYM-FILE')
exit(-1)
f = open(os.path.join(sym_file), 'r')
print('''{
global:''')
for line in f:
print('\t' + line.strip() + ';')
print('''local:
*;
};''')
f.close()