Bug#579218: lintian: uninitialized value in string eq at /usr/bin/lintian line ...
Looks like I found two bugs, #579211 and "does weired things if PATH is
not set" which might be much older. Workaround for the latter is
simple: "env - PATH=...", so feel to ignore this part of the bug report
if you don't think lintian should work without PATH set.
* Carsten Hey <carsten@debian.org> [2010-04-26 11:58 +0200]:
> I run pbuilder with "exec env - HOME="$HOME" /usr/sbin/pbuilder ..." ...
With lintian 2.4.0 under sid I get:
$ env - lintian --allow-root --verbose --no-override -I -E --pedantic topgit_0.8-1.1.dsc
N: Setting up lab in /tmp/XRbHb0ROIB ...
N: Processing 1 packages...
N: ----
N: Processing source package topgit (version 0.8-1.1) ...
internal error: Command 'sort' not found in at /usr/share/lintian/lib/Lintian/Command.pm line 207
warning: could not unpack package to desired level
warning: skipping check of source package topgit
N: Removing /tmp/XRbHb0ROIB ...
Use of uninitialized value in split at /usr/share/perl5/IPC/Run.pm line 1191.
internal error: Command 'rm' not found in at /usr/share/lintian/lib/Lintian/Command.pm line 210
END failed--call queue aborted at /usr/bin/lintian line 1552.
zsh: exit 2 env - lintian --allow-root --verbose --no-override -I -E --pedantic
lintian 2.3.4 *without* "env -" works as expected, as does with "env - PATH=...", but:
$ env - lintian --allow-root --verbose --no-override -I -E --pedantic topgit_0.8-1.1.dsc
N: Setting up lab in /tmp/jy3rREz43k ...
N: Processing 1 packages...
N: ----
N: Processing source package topgit (version 0.8-1.1) ...
internal error: Command 'sort' not found in at /usr/share/lintian/lib/Lintian/Command.pm line 207
warning: could not unpack package to desired level
warning: skipping check of source package topgit
N: Removing /tmp/jy3rREz43k ...
Use of uninitialized value in split at /usr/share/perl5/IPC/Run.pm line 1191.
internal error: Command 'rm' not found in at /usr/share/lintian/lib/Lintian/Command.pm line 210
END failed--call queue aborted at /usr/bin/lintian line 1659.
zsh: exit 2 env - lintian --allow-root --verbose --no-override -I -E --pedantic
A missing PATH is normally not a problem for perl:
$ perl -e 'print "$ENV{PATH}\n"; system "chown"'
/root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/bin:/usr/local/sbin:/usr/games
chown: missing operand
Try `chown --help' for more information.
$ env - perl -e 'print "$ENV{PATH}\n";
system "chown"'
chown: missing operand
Try `chown --help' for more information.
Bash, dash and zsh behave similar without $PATH. I think this is the
fallback path for bash:
$ strings /bin/bash | grep sbin
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Carsten
Reply to: