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
14 sed -e '/./s/^/ /' "$@"
23 # os-release is the new s*stemd standard. Then it's the more unique
24 # ones with redhat-release bringing up the rear because other platforms
25 # also use that to placate broken logic that use its prescence as a
28 /etc
/os
-release /etc
/arch
-release /etc
/debian_version \
29 /etc
/fedora
-release /etc
/gentoo
-release /etc
/redhat
-release \
32 test -f $f || continue
40 for i
in a m p r s v
; do
41 eval uname_
${i}=\'$(uname -${i} 2>/dev/null)\'
44 header Shell Variables
:
45 set | sort -d -t= | offset
53 lex --version | offset
55 yacc --version | offset
62 header Installed packages
:
63 #### pkg(7) or pkg_info(1) might not always be available.
64 (pkg info
2>/dev
/null
| offset
) || true
65 (pkg_info
2>/dev
/null
| offset
) || true
69 # Temporary test. Does anything care if the exit status is non-zero?