3 # Print a description of the build environment. This is here mainly
4 # for the use of the buildbot cluster, allowing developers to see the
5 # build environment on machines they can't login on. It also provides
6 # a history in the build logs that might be useful in catching
9 # This script should *only* report basic information about the build
10 # environment, and only that necessary to reproduce the build
13 # FIXME: Document meaning of script's exit status, if any.
14 # It jumps through hoops with `|| true' despite not using `set -e'.
17 sed -e '/./s/^/ /' "$@"
26 # os-release is the new s*stemd standard. Then it's the more unique
27 # ones with redhat-release bringing up the rear because other platforms
28 # also use that to placate broken logic that use its prescence as a
31 /etc
/os
-release /etc
/arch
-release /etc
/debian_version \
32 /etc
/fedora
-release /etc
/gentoo
-release /etc
/redhat
-release \
35 test -f $f || continue
43 for i
in a m p r s v
; do
44 eval uname_
${i}=\'$(uname -${i} 2>/dev/null)\'
47 header Shell Variables
:
48 set | sort -d -t= | offset
56 lex --version | offset
58 yacc --version | offset
65 header Installed packages
:
66 (pkg info
2>/dev
/null
| offset
) || true
67 (pkg_info
2>/dev
/null
| offset
) || true
71 header Linux distribution
:
72 (lsb_release
-a 2>&1 | offset
) || true