Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/symbol-check.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2014 Wladimir J. van der Laan | # Copyright (c) 2014 Wladimir J. van der Laan | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
''' | ''' | ||||
A script to check that the (Linux) executables produced by gitian only contain | A script to check that the (Linux) executables produced by gitian only contain | ||||
allowed gcc, glibc and libstdc++ version symbols. This makes sure they are | allowed gcc, glibc and libstdc++ version symbols. This makes sure they are | ||||
still compatible with the minimum supported Linux distribution versions. | still compatible with the minimum supported Linux distribution versions. | ||||
Example usage: | Example usage: | ||||
find ../gitian-builder/build -type f -executable | xargs python contrib/devtools/symbol-check.py | find ../gitian-builder/build -type f -executable | xargs python3 contrib/devtools/symbol-check.py | ||||
''' | ''' | ||||
import subprocess | import subprocess | ||||
import re | import re | ||||
import sys | import sys | ||||
import os | import os | ||||
# Debian 8.11 (Jessie) has: | # Debian 8.11 (Jessie) has: | ||||
# | # | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |