severity 752114 wishlist
thanks

Hi Axel,

thanks for finding this remarkable bug :-). Running the pacman game happens due to needrestart is called as normal user from within (Patrick's :-) bugscript.

needrestart is located in /usr/sbin and it is not reasonable usable as non-root user. In the normal use cases the pacman game will not be started.

IMHO we should discuss:
- howto run `needrestart -v` as root from the bug script || only run `needrestart -v` if reportbug is run as root - drop 30-pacman while building the Debian package since ArchLinux's pacman is not available on Debian - might save some CPU cycles


HTH,
Thomas

PS: The bug is not triggered in the default use case and is an issue of the packaged configuration files. Therefore I've changed the severity to wishlist.


On 06/19/2014 07:37 PM, Axel Beckert wrote:
Package: needrestart
Version: 1.0-1
Severity: normal

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
http://gallery.noone.org/Screenshots/Fehler/?start=9&image=needrestart-pacman-vs-pacman.png

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">
needrestart output:
Running kernel seems to be up-to-date.
No services need to be restarted.

checkrestart output:

<#/part>

-- 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



--

    ::  WWW:                         http://fiasko-nw.net/~thomas/  ::
   :::  Jabber:                   xmpp:tho...@jabber.fiasko-nw.net  :::
    ::  flickr:              http://www.flickr.com/photos/laugufe/  ::


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to