Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/symbol-check.py
#!/usr/bin/env python | #!/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 python contrib/devtools/symbol-check.py | ||||
''' | ''' | ||||
from __future__ import division, print_function, unicode_literals | |||||
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: | ||||
# | # | ||||
# - g++ version 4.9.2 (https://packages.debian.org/search?suite=default§ion=all&arch=any&searchon=names&keywords=g%2B%2B) | # - g++ version 4.9.2 (https://packages.debian.org/search?suite=default§ion=all&arch=any&searchon=names&keywords=g%2B%2B) | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |