Dear Maintainer,
I'm using
pdebuild --use-pdebuild-internal
which today failed for CUPS: It evaulates $USER for its test case, which
is still set to 'root' despite using 'su pbuser'. 'cupsd' then failes to
start as it refuses to run as user 'root':
$ ps axfuww
$ xargs -0 -n1 -a /proc/12142/environ echo | grep -e USER -e LOGNAME -e HOME -e PATH
/usr/lib/pbuilder/pdebuild-internal:
It was changed by git:4d6220c0d2e3abdcf247838168591e9d5e4a078b
pbuilder should really provide a clean environment or at least provide
sane defaults for the environment variables listed in <man:su(1)>:
- HOME (done)
- PATH (done)
- USER (missing)
- LOGNAME (missing)
- SHELL (missing)
and also
- XDG_CONFIG_HOME
- TMPDIR (breaks every 'mktemp' when combined with 'pam_tmpdir.so')
- ...
See attached patch.