Bug#995140: llvm-11-runtime: replace "which" by "command -v" in postinst script

Vincent Lefevre vincent at vinc17.net
Mon Sep 27 01:18:46 BST 2021


Package: llvm-11-runtime
Version: 1:11.1.0-1
Severity: minor

When upgrading llvm-11-runtime:

Setting up llvm-11-runtime (1:11.1.0-1) ...
/usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead.

Indeed, /var/lib/dpkg/info/llvm-11-runtime.postinst contains

        if which update-binfmts >/dev/null; then
           ^^^^^

BTW, indentation is incorrect.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-1-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages llvm-11-runtime depends on:
ii  libc6       2.32-4
ii  libgcc-s1   11.2.0-8
ii  libllvm11   1:11.1.0-1
ii  libstdc++6  11.2.0-8
ii  libtinfo6   6.2+20210905-1
ii  libz3-4     4.8.12-1+b1
ii  zlib1g      1:1.2.11.dfsg-2

Versions of packages llvm-11-runtime recommends:
ii  binfmt-support  2.2.1-1

llvm-11-runtime suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-llvm-team mailing list