Your message dated Wed, 03 Apr 2024 09:20:11 +0000
with message-id <e1rrwmx-004moi...@fasolo.debian.org>
and subject line Bug#1024426: fixed in needrestart 3.6-8
has caused the Debian Bug report #1024426,
regarding needrestart: notify-send timeout instead of notify
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1024426: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024426
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: needrestart
Version: 3.6-2
Severity: important
Tags: patch

Dear Maintainer,

some months ago needrestart topped sending notify events on my system
and instead run into a timeout.

Today I debugged this issue and found out, that the command
 su -p -s /bin/sh -c "$NSEND -a needrestart -u critical -i dialog-warning 
\"$MSGTITLE\" \"$MSGBODY\"" "$NR_USERNAME"
in /etc/needrestart/notify.d/400-notify-send does not work correct on
my system, if DBUS_SESSION_BUS_ADDRESS is unset.

Simply exporting DBUS_SESSION_BUS_ADDRESS, which is already evaluated
in line 32 of the script, but not exported, solved the issue for me.

A patch is attached.

I'm not sure, what triggered breaking the function for my system (I'm
quite sure, that it worked correct some time ago).  Maybe the problem
is triggered by using tcsh as user shell (but I use this shell for
ages).

Since the above minimal patch solves the issue for me, it may be a
good idea to apply it :-)

Greetings
Roland

-- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-19-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf-8, LC_CTYPE=de_DE.utf-8 (charmap=UTF-8), 
LANGUAGE=de_DE:de:en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages needrestart depends on:
ii  binutils                   2.35.2-2
ii  dpkg                       1.20.12
ii  gettext-base               0.21-4
ii  libintl-perl               1.26-3+deb11u1
ii  libmodule-find-perl        0.15-1
ii  libmodule-scandeps-perl    1.30-1
ii  libproc-processtable-perl  0.59-2+b1
ii  libsort-naturally-perl     1.03-2
ii  libterm-readkey-perl       2.38-1+b2
ii  perl                       5.32.1-4+deb11u2
ii  xz-utils                   5.2.5-2.1~deb11u1

Versions of packages needrestart recommends:
ii  libpam-systemd  247.3-7+deb11u1
ii  systemd         247.3-7+deb11u1

Versions of packages needrestart suggests:
ii  iucode-tool    2.3.1-1
ii  libnotify-bin  0.7.9-3
diff --git a/needrestart/notify.d/400-notify-send b/needrestart/notify.d/400-notify-send
index 77abb124..9876c17f 100755
--- a/needrestart/notify.d/400-notify-send
+++ b/needrestart/notify.d/400-notify-send
@@ -33,6 +33,7 @@ case "$NR_SESSION" in
     if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
         unset DBUS_SESSION_BUS_ADDRESS
     fi
+    export DBUS_SESSION_BUS_ADDRESS
 
     export DISPLAY=$(sed -z -n s/^DISPLAY=//p "/proc/$NR_SESSPPID/environ")
     export XAUTHORITY=$(sed -z -n s/^XAUTHORITY=//p "/proc/$NR_SESSPPID/environ")

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: needrestart
Source-Version: 3.6-8
Done: Patrick Matthäi <pmatth...@debian.org>

We believe that the bug you reported is fixed in the latest version of
needrestart, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1024...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Patrick Matthäi <pmatth...@debian.org> (supplier of updated needrestart package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 03 Apr 2024 10:57:04 +0200
Source: needrestart
Architecture: source
Version: 3.6-8
Distribution: unstable
Urgency: medium
Maintainer: Patrick Matthäi <pmatth...@debian.org>
Changed-By: Patrick Matthäi <pmatth...@debian.org>
Closes: 1024426 1040673 1063155 1063719
Changes:
 needrestart (3.6-8) unstable; urgency=medium
 .
   * Merge 3.6-4+deb12u1 changelog.
   * Add patch 08-uninitialized-vars-arm from George Robbert to fix warnings on
     arm and some amd64 systems.
     Closes: #1063719
   * Add patch 09-recognize-versioned-ruby-interpreter from Helmut Grohne to
     detect also versioned ruby interpreters.
     Closes: #1063155
   * Add patch 10-notify-send-timeout from Michał Mirosław to fix a timeout in
     notify-send.
     Closes: #1024426
   * Add patch 11-spelling-error from David Weinehall to fix a spelling error.
     Closes: #1040673
Checksums-Sha1:
 838e6bc8954ab0fb67d71a313dd8aafff886f37e 1820 needrestart_3.6-8.dsc
 16e30b8c5ca9fb164587c1a18cbcceec3afa9d40 71159 needrestart_3.6.orig.tar.gz
 57a8f40307f6d8ea43e9bad3857b09b5eec314b0 13588 needrestart_3.6-8.debian.tar.xz
 d468e0a3a05516955b786fdb57ee5631981804c7 6375 
needrestart_3.6-8_source.buildinfo
Checksums-Sha256:
 5f46cd70904879b3a7d45c38cea7a1b0bfedf93b2ffefc026ff9117a9a8ace27 1820 
needrestart_3.6-8.dsc
 3dced40d6116287b163da018d57014b0b7cee04794a95f8602126e2c296ed1a7 71159 
needrestart_3.6.orig.tar.gz
 b0d648385bf0e24320e89af68a99a4da52b00d88fc6848753440d2d47f2dbd0a 13588 
needrestart_3.6-8.debian.tar.xz
 b89ce798ab87f1fb89348e3d09108994873ec0b7de357c978e51b0c9e5a5fded 6375 
needrestart_3.6-8_source.buildinfo
Files:
 22bf24a66e0d0414b099c02528384f2f 1820 admin optional needrestart_3.6-8.dsc
 8ea62680286b44f7c1ffb8298ed99385 71159 admin optional 
needrestart_3.6.orig.tar.gz
 ddebbb738df40fe7b67644952974d8aa 13588 admin optional 
needrestart_3.6-8.debian.tar.xz
 e4263bda59d69dcd74bd1d46d2b5be81 6375 admin optional 
needrestart_3.6-8_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEWKA9xYJCWk3IuQ4TEtmwSpDL2OQFAmYNG20ACgkQEtmwSpDL
2ORTLA/+OXbm9Ncz20HtrJEHhDsnzGeys9aWGWHgv6M9uootl/jJB8T3A6UusEVA
ADUe3Iq2Lz6se36XnZOoiRSbJ+ZbF06ixI3KMSNu7gwePsbd+bfww38VvP3RWMZ2
tggjada8FhSW1I75/31LvLna3Xsip6/OPfyKzg1T9pwBqAkV6zwddZK+IR7iOatn
q+MgRl1nhw/4Kmnk162FiuO67DPKQLDtBZ2P793G7sTgVFm+lHzQKtm83CUA4NYE
74iedqvLHuDS3mZXYnfMx+4NGNBW7i0H0CR1ogRS9UK8+hYlEzsTaUupkGVybdCF
mVvgdEtq+MkxYJueSEpjYnRwY2QG3B4sCqkpb/yUQoGHjtrG5L/rg0MKk4FWEG+u
cbDjOPZaIkmE7ksHGIPPsWIlZ4x3SWKIsQlsWeGVdgLJeK/daRohy0eDKoN03dcF
gwk5UKJ+In3sQe1KFbJui+z3qaL+Drg3tT22SElMHyaMi45hqqmhLTfCQWrB1dxk
NXAP1+FYoBhV6YqcJ82Z4YhMlJERb3txPUHaXTjk6QwnrJc1Nrla0fG/HV9RGb2v
78QkBVB7yAF/RUZZNc+NUn9MtHQo18QA84Nru0/pxlAHRnrltggQK4oJnhKuilBs
YUi7HPixu01Ugj6hNap6FVhxMgOp3hKiNa2IyCNiln0MLB0rvIg=
=0SBi
-----END PGP SIGNATURE-----

Attachment: pgpaNr8dSj_uS.pgp
Description: PGP signature


--- End Message ---

Reply via email to