Bug#752114: needrestart: bug-script runs /usr/games/pacman when trying to use ArchLinux's pacman package manager in /etc/needrestart/hook.d/30-pacman
Dear Thomas and Patrick,
if I want to report a bug against needrestart, the bug script runs
/etc/needrestart/hook.d/30-pacman which calls "pacman" with neither a
given path nor with limiting $PATH.
On my system it finds the game binary /usr/games/pacman from the
package pacman instead of the expected ArchLinux's package manager
(which is named "pacman", too, but isn't available in Debian).
Interestingly /usr/games/pacman seems to swallow the given options
without issues and happily runs, well, Pacman. :-D
See the screenshot at
This was probably the most hilarious bug I ever run into. Thanks for
that experience. :-)
P.S.: To get out of this so that I can still report the bug, I started
the following little script in another terminal:
while :; do killall -INT pacman; sleep 0.1 ; done
-- Package-specific info:
<#part type="text/plain" disposition=attachment description="Bug script output">
Running kernel seems to be up-to-date.
No services need to be restarted.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'testing'), (110, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.15-rc8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages needrestart depends on:
ii dpkg 1.17.10
ii libmodule-find-perl 0.12-1
ii libmodule-scandeps-perl 1.13-1
ii libproc-processtable-perl 0.50-1
ii libsort-naturally-perl 1.03-1
ii libterm-progressbar-simple-perl 0.03-1
ii perl 5.18.2-4
needrestart recommends no packages.
needrestart suggests no packages.
-- no debconf information