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 # The script's exit status must be zero if all went acceptably well as
14 # buildbot checks for this and marks the `environment' stage as failed
18 sed -e '/./s/^/ /' "$@"
27 # os-release is the new s*stemd standard. Then it's the more unique
28 # ones with redhat-release bringing up the rear because other platforms
29 # also use that to placate broken logic that use its prescence as a
32 /etc
/os
-release /etc
/arch
-release /etc
/debian_version \
33 /etc
/fedora
-release /etc
/gentoo
-release /etc
/redhat
-release \
36 test -f $f || continue
44 for i
in a m p r s v
; do
45 eval uname_
${i}=\'$(uname -${i} 2>/dev/null)\'
48 header Shell Variables
:
49 set | sort -d -t= | offset
57 lex --version | offset
59 yacc --version | offset
66 header Installed packages
:
67 #### pkg(7) or pkg_info(1) might not always be available.
68 (pkg info
2>/dev
/null
| offset
) || true
69 (pkg_info
2>/dev
/null
| offset
) || true