Package: needrestart Version: 3.5-2 Severity: wishlist Tags: patch I want check-support-status to be happy, but I need needrestart:
bash5$ check-support-status Limited security support for one or more packages Unfortunately, it has been necessary to limit security support for some packages. The following packages found on this system are affected by this: * Source:binutils Details: Only suitable for trusted content; see https://lists.debian.org/msgid-search/87lfqsomtg....@mid.deneb.enyo.de Affected binary packages: - binutils (installed version: 2.35.2-2) - binutils-common:amd64 (installed version: 2.35.2-2) - binutils-x86-64-linux-gnu (installed version: 2.35.2-2) - libbinutils:amd64 (installed version: 2.35.2-2) - libctf-nobfd0:amd64 (installed version: 2.35.2-2) - libctf0:amd64 (installed version: 2.35.2-2) bash5$ aptitude why binutils i needrestart Depends binutils AFAICT needrestart only needs binutils for strings(1), and only in one specific place. The attached patch that allows people to use llvm-strings instead. I haven't done extensive testing yet. FYI I also tried another approach here (much messier): https://github.com/trentbuck/binutils-is-llvm -- Package-specific info: needrestart output: Your outdated processes: at-spi-bus-laun[2960], at-spi2-registr[3055], dbus-daemon[2636, 2966], dconf-service[3022], emacs[9021], evolution-addre[3039], evolution-alarm[3112], evolution-calen[3027], evolution-sourc[3016], gdm-wayland-ses[2738], gjs[3053], gnome-session-b[2741, 2878], gnome-session-c[2872], gnome-shell[2959], gnome-shell-cal[3010], gnome-terminal-[3854], goa-daemon[2683], goa-identity-se[2694], gsd-a11y-settin[3070], gsd-color[3071], gsd-datetime[3073], gsd-disk-utilit[3106], gsd-housekeepin[3075], gsd-keyboard[3077], gsd-media-keys[3079], gsd-power[3092], gsd-print-notif[3095], gsd-printer[3196], gsd-rfkill[3098], gsd-screensaver[3100], gsd-sharing[3102], gsd-smartcard[3104], gsd-sound[3105], gsd-usb-protect[3117], gsd-wacom[3119], gsd-xsettings[3248], gvfs-afc-volume[2701], gvfsd[2658], gvfsd-fuse[2663], gvfsd-metadata[3264], gvfs-goa-volume[2679], gvfs-gphoto2-vo[2675], gvfs-mtp-volume[2718], gvfs-udisks2-vo[2669], ibus-daemon[3243], ibus-dconf[3272], ibus-engine-sim[3324], ibus-extension-[3273], ibus-portal[3289], ibus-x11[3279], pipewire[2629], pipewire-media-[2643], pulseaudio[2630], screen[3866, 3859], systemd[2608], tail[3867], tracker-miner-f[2632], Xwayland[2989] checkrestart output: -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-security'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-5-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/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.7.1 ii gettext-base 0.21-4 ii libintl-perl 1.26-3 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-3 ii xz-utils 5.2.5-2 Versions of packages needrestart recommends: ii libpam-systemd 247.3-3 Versions of packages needrestart suggests: ii iucode-tool 2.3.1-1 pn needrestart-session | libnotify-bin <none> -- no debconf information
diff --git i/debian/control w/debian/control index 8a569b6..5bcf730 100644 --- i/debian/control +++ w/debian/control @@ -21,7 +21,7 @@ Depends: ${misc:Depends}, libmodule-scandeps-perl, libterm-readkey-perl, libmodule-find-perl, - binutils, + binutils | llvm, xz-utils Recommends: libpam-systemd | sysvinit-core Suggests: needrestart-session | libnotify-bin, diff --git i/lib/vmlinuz-get-version w/lib/vmlinuz-get-version index 22a4365..f35b5f8 100755 --- i/lib/vmlinuz-get-version +++ w/lib/vmlinuz-get-version @@ -20,7 +20,12 @@ get_version() { # search and output version string pattern - strings "$1" | grep -m 1 '^Linux version ' && exit 0 + if llvm-strings --version >/dev/null 2>&1 + then + llvm-strings "$1" + else + strings "$1" + fi | grep -m 1 '^Linux version ' && exit 0 } try_decompress()