check-debug, check-path, and check-system-flags used the following
pattern which fails under FreeBSD's /bin/sh
VAR_NAME=value run_test --args
When this is run VAR_NAME is not exported to `run_test` so I changed
this pattern to:
VAR_NAME=value
export VAR_NAME
run_test --args
Also added `unset` in a few cases where it would/could make a
difference.
When listing all packages, the purpose is to get a quick look at what's
installed and not to scrutinize the validity of each .pc file. To see
errors from the parser during --list-all, the user can just add
--print-errors.
The intention was that errors would be printed for all output options
besides --exists and --atleast/exact/max-version, which are intended to
operate silently. Since want_exists is always set for these latter
options, we can simply use that as the condition and catch all other
output options automatically.
Freedesktop #54390 (https://bugs.freedesktop.org/show_bug.cgi?id=54390)