
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.
25 lines
320 B
Python
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()
|