Bug#639997: dpkg fails if PATH is not set
Hi! On Thu, 2011-09-01 at 14:17:23 +0200, Carl Fürstenberg wrote: > Package: dpkg > Version: 1.16.0.3 > Severity: serious > Justification: Policy 9.9 > > Trying to run dpkg under a clean environment fails: > > # env -i dpkg -i 3dchess_0.8.1-17_amd64.deb > dpkg: error: error: PATH is not set. > > Policy 9.9 says "A program must not depend on environment variables to > get reasonable defaults.". I do not feel a double error is a > "reasonable default" About the double “error:” string, I thought I had fixed that already, in any case it's now in my local tree, will be included in my next push. About that section of policy, well I don't think it's talking about global system information like PATH, but about specific application configuration. In this case if PATH is not set we cannot execute any helper programs (and I'm not going to hardcode their paths), neither can the maintainer sctipts. More so I doubt many programs will work properly with a proper PATH variable. IMO policy needs to be clarified. thanks, guillem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#639997: dpkg fails if PATH is not set
Package: dpkg Version: 1.16.0.3 Severity: serious Justification: Policy 9.9 Trying to run dpkg under a clean environment fails: # env -i dpkg -i 3dchess_0.8.1-17_amd64.deb dpkg: error: error: PATH is not set. Policy 9.9 says "A program must not depend on environment variables to get reasonable defaults.". I do not feel a double error is a "reasonable default" -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dpkg depends on: ii coreutils 8.5-1GNU core utilities ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co ii libc6 2.13-10 Embedded GNU C Library: Shared lib ii libselinux1 2.0.98-1.1 SELinux runtime shared libraries ii xz-utils5.0.0-2 XZ-format compression utilities ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 0.8.15.5 Advanced front-end for dpkg -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org