This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=f46cc1405a8f136edbf89a22cc3e966cd32e4520 commit f46cc1405a8f136edbf89a22cc3e966cd32e4520 Author: Guillem Jover <[email protected]> AuthorDate: Wed Apr 22 18:50:13 2020 +0200 build: Switch to preserving the whole environment within sudo Trying to whitelist what might be needed is too cumbersome. The latest instance was this breaking being run from within cowbuilder. Instead we preserve the environment and do not have to worry about this anymore. We still need to preserve LD_PRELOAD and LD_LIBRARY_PATH because these get reset when going over a setuid-root barrier, such as sudo. Prompted-by: Niels Thykier <[email protected]> --- Test.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test.mk b/Test.mk index fac245575..a8342e6c5 100644 --- a/Test.mk +++ b/Test.mk @@ -36,7 +36,7 @@ DPKG_ENV += \ LD_PRELOAD="$(LD_PRELOAD)" \ LD_LIBRARY_PATH="$(LD_LIBRARY_PATH)" DPKG_INSTDIR = / -BEROOT := sudo env $(DPKG_ENV) +BEROOT := sudo -E env $(DPKG_ENV) else DPKG_INSTDIR = $(CURDIR)/../dpkginst DPKG_OPTIONS += \ -- Dpkg.Org's dpkg

