Your message dated Sat, 25 Jan 2025 12:11:35 +0000
with message-id <[email protected]>
and subject line Bug#992655: fixed in tiger 1:3.2.4~rc1-3.4
has caused the Debian Bug report #992655,
regarding /bin/which: this version of 'which' is deprecated and should not be
used.
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 [email protected]
immediately.)
--
992655: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992655
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tiger
Version: 1:3.2.4~rc1-3
Severity: important
Tags: patch
Every time the cronjob runs, I get emails containing this:
/bin/which: this version of 'which' is deprecated and should not be used.
This is due to a recent change in debianutils:
* The 'which' utility will be removed in the future. Shell scripts
often use it to check whether a command is available. A more
standard way to do this is with 'command -v'; for example:
if command -v update-icon-caches >/dev/null; then
update-icon-caches /usr/share/icons/...
fi
'2>/dev/null' is unnecessary when using 'command': POSIX says "no
output shall be written" if the command isn't found. It's also
unnecessary for the debianutils version of 'which', and hides the
deprecation warning.
https://salsa.debian.org/debian/debianutils/-/blob/5aeca1e3b14c08b5ab92995e91efcc2b3806a639/debian/NEWS#L7-16
Attached is a patch which replaces the `which` command with `command -v`.
Francois
-- System Information:
Debian Release: 11.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_CA.utf8, LC_CTYPE=fr_CA.utf8 (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 tiger depends on:
ii binutils 2.37-4
ii bsdutils 1:2.37.2-1
ii debconf [debconf-2.0] 1.5.77
ii debianutils 5.3-1
ii libc6 2.31-16
ii lsb-release 11.1.0
ii net-tools 1.60+git20181103.0eebece-1
ii ucf 3.0043
Versions of packages tiger recommends:
ii chkrootkit 0.54-1+b2
pn john <none>
ii postfix [mail-transport-agent] 3.5.6-1+b1
pn tripwire | aide <none>
Versions of packages tiger suggests:
ii lsof 4.93.2+dfsg-1.1
pn lynis <none>
-- debconf information:
* tiger/policy_adapt:
* tiger/mail_rcpt: root
diff --git a/systems/Linux/2/gen_bootparam_sets b/systems/Linux/2/gen_bootparam_sets
index bd91690..c8c1b95 100755
--- a/systems/Linux/2/gen_bootparam_sets
+++ b/systems/Linux/2/gen_bootparam_sets
@@ -25,10 +25,10 @@
#
# If run directly do this, just in case:
-[ -z "$AWK" ] && AWK=`which awk`
-[ -z "$SED" ] && AWK=`which sed`
-[ -z "$RM" ] && RM=`which rm`
-[ -z "$YPCAT" ] && YPCAT=`which ypcat 2>/dev/null`
+[ -z "$AWK" ] && AWK=`command -v awk`
+[ -z "$SED" ] && AWK=`command -v sed`
+[ -z "$RM" ] && RM=`command -v rm`
+[ -z "$YPCAT" ] && YPCAT=`command -v ypcat`
[ -z "$WORKDIR" ] && WORKDIR=/tmp
[ -r /etc/bootparams ] && {
diff --git a/systems/Linux/2/gen_cron b/systems/Linux/2/gen_cron
index caaf498..2cc361c 100755
--- a/systems/Linux/2/gen_cron
+++ b/systems/Linux/2/gen_cron
@@ -35,9 +35,9 @@
#-----------------------------------------------------------------------------
#
# Defin commands we need, just in case
-[ -z "$FIND" ] && FIND=`which find`
-[ -z "$LS" ] && LS=`which ls`
-[ -z "$SED" ] && SED=`which sed`
+[ -z "$FIND" ] && FIND=`command -v find`
+[ -z "$LS" ] && LS=`command -v ls`
+[ -z "$SED" ] && SED=`command -v sed`
[ -z "$CRONSPOOL" ] && CRONSPOOL="/var/spool/cron/crontabs"
[ ! -n "$GETUSERHOME" ] && GETUSERHOME=echo
diff --git a/systems/Linux/2/gen_export_sets b/systems/Linux/2/gen_export_sets
index 23838f9..76b7ba3 100755
--- a/systems/Linux/2/gen_export_sets
+++ b/systems/Linux/2/gen_export_sets
@@ -23,9 +23,9 @@
#-----------------------------------------------------------------------------
#
# For debugging purposes
-[ -z "$GREP" ] && GREP=`which grep`
-[ -z "$SED" ] && SED=`which sed`
-[ -z "$AWK" ] && AWK=`which awk`
+[ -z "$GREP" ] && GREP=`command -v grep`
+[ -z "$SED" ] && SED=`command -v sed`
+[ -z "$AWK" ] && AWK=`command -v awk`
[ -z "$WORKDIR" ] && WORKDIR=/tmp
EXPFILE=/etc/exports
diff --git a/systems/Linux/2/gen_group_sets b/systems/Linux/2/gen_group_sets
index 93ef408..9e4cbbb 100755
--- a/systems/Linux/2/gen_group_sets
+++ b/systems/Linux/2/gen_group_sets
@@ -24,13 +24,13 @@
#
# If run directly do this, just in case:
-[ -z "$GREP" ] && GREP=`which grep`
-[ -z "$AWK" ] && AWK=`which awk`
-[ -z "$SED" ] && SED=`which sed`
-[ -z "$SORT" ] && SORT=`which sort`
-[ -z "$COMM" ] && COMM=`which comm`
-[ -z "$RM" ] && RM=`which rm`
-[ -z "$YPCAT" ] && YPCAT=`which ypcat 2>/dev/null`
+[ -z "$GREP" ] && GREP=`command -v grep`
+[ -z "$AWK" ] && AWK=`command -v awk`
+[ -z "$SED" ] && SED=`command -v sed`
+[ -z "$SORT" ] && SORT=`command -v sort`
+[ -z "$COMM" ] && COMM=`command -v comm`
+[ -z "$RM" ] && RM=`command -v rm`
+[ -z "$YPCAT" ] && YPCAT=`command -v ypcat`
[ -z "$WORKDIR" ] && WORKDIR=/tmp
diff --git a/systems/Linux/2/gen_mounts b/systems/Linux/2/gen_mounts
index 0f3fb67..5bc3477 100755
--- a/systems/Linux/2/gen_mounts
+++ b/systems/Linux/2/gen_mounts
@@ -184,6 +184,7 @@ localfs()
[ "$1" = "fuse.gvfsd-fuse" ] && LOCAL=1 # Used in Ubuntu 13.10 (Saucy Salamander) replaces fuse.gvfs-fuse-daemon
[ "$1" = "fuse.ltspfs" ] && LOCAL=0 # Used by LTSP 5.x
[ "$1" = "fuse.lxcfs" ] && LOCAL=0
+ [ "$1" = "fuse.portal" ] && LOCAL=0
[ "$1" = "fuse.clamfs" ] && LOCAL=0 # ClamFS anti-virus protected file system
[ "$1" = "fuse.javafs" ] && LOCAL=0 # Java FS, used by Wuala secure online storage, see:
# https://github.com/puniverse/javafs
@@ -362,10 +363,10 @@ localfs()
}
# If run directly do this, just in case:
-[ -z "$GETFS" ] && GETFS=`which mount`
-[ -z "$SED" ] && SED=`which sed`
-[ -z "$BASENAME" ] && BASENAME=`which basename`
-[ -z "$EGREP" ] && EGREP=`which egrep`
+[ -z "$GETFS" ] && GETFS=`command -v mount`
+[ -z "$SED" ] && SED=`command -v sed`
+[ -z "$BASENAME" ] && BASENAME=`command -v basename`
+[ -z "$EGREP" ] && EGREP=`command -v egrep`
$GETFS |
while read line
diff --git a/systems/Linux/2/gen_passwd_sets b/systems/Linux/2/gen_passwd_sets
index 908897c..b4a084a 100755
--- a/systems/Linux/2/gen_passwd_sets
+++ b/systems/Linux/2/gen_passwd_sets
@@ -56,15 +56,15 @@
#
# If run directly do this, just in case:
-[ -z "$SORT" ] && SORT=`which sort`
-[ -z "$JOIN" ] && JOIN=`which join`
-[ -z "$GREP" ] && GREP=`which grep`
-[ -z "$AWK" ] && AWK=`which awk`
-[ -z "$CAT" ] && CAT=`which cat`
-[ -z "$RM" ] && RM=`which rm`
-[ -z "$CP" ] && CP=`which cp`
-[ -z "$YPCAT" ] && YPCAT=`which ypcat 2>/dev/null`
-[ -z "$GETENT" ] && GETENT=`which getent 2>/dev/null`
+[ -z "$SORT" ] && SORT=`command -v sort`
+[ -z "$JOIN" ] && JOIN=`command -v join`
+[ -z "$GREP" ] && GREP=`command -v grep`
+[ -z "$AWK" ] && AWK=`command -v awk`
+[ -z "$CAT" ] && CAT=`command -v cat`
+[ -z "$RM" ] && RM=`command -v rm`
+[ -z "$CP" ] && CP=`command -v cp`
+[ -z "$YPCAT" ] && YPCAT=`command -v ypcat`
+[ -z "$GETENT" ] && GETENT=`command -v getent`
[ -z "$WORKDIR" ] && WORKDIR=/tmp
local=0
--- End Message ---
--- Begin Message ---
Source: tiger
Source-Version: 1:3.2.4~rc1-3.4
Done: Chris Hofstaedtler <[email protected]>
We believe that the bug you reported is fixed in the latest version of
tiger, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Hofstaedtler <[email protected]> (supplier of updated tiger 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 15 Jan 2025 12:01:29 +0100
Source: tiger
Architecture: source
Version: 1:3.2.4~rc1-3.4
Distribution: unstable
Urgency: medium
Maintainer: Javier Fernández-Sanguino Peña <[email protected]>
Changed-By: Chris Hofstaedtler <[email protected]>
Closes: 992655
Changes:
tiger (1:3.2.4~rc1-3.4) unstable; urgency=medium
.
* Non-maintainer upload.
* Apply patch from Francois Marier <[email protected]> to handle
which deprecation. (Closes: #992655)
Checksums-Sha1:
6698af7b8608d9a14e3cb74b5992208b0c2cf796 1996 tiger_3.2.4~rc1-3.4.dsc
1e40516425d30b73e9d6681b58d2969d40c1eafc 584823 tiger_3.2.4~rc1-3.4.diff.gz
bf15d3fd2709eeb43f98fbb3c4cf19f9f9fcb30e 6041
tiger_3.2.4~rc1-3.4_arm64.buildinfo
Checksums-Sha256:
c59be9f663eb4834e962f24357e8bab02a1dc573ce954784d8a8088a4eaffafa 1996
tiger_3.2.4~rc1-3.4.dsc
20915fc98671ba4caa41019b1e51caf2edb981360628ec9e1d0abaec1ea16c35 584823
tiger_3.2.4~rc1-3.4.diff.gz
3380dbf5b221acd817eb3204d3986bbd0a99a2f75a423bfa2b6e8c0b98b2e511 6041
tiger_3.2.4~rc1-3.4_arm64.buildinfo
Files:
3c4349dd50dd1dff8b7fb265b2629dd6 1996 admin optional tiger_3.2.4~rc1-3.4.dsc
a8986d363cee7008daad5f70a5e74a88 584823 admin optional
tiger_3.2.4~rc1-3.4.diff.gz
9ac44910a7b67c0ab5dd5b36bf4d7ba3 6041 admin optional
tiger_3.2.4~rc1-3.4_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAmeHllIACgkQXBPW25MF
LgO3dA/+KVOMHgWAnNX652/+T/5kPdfTELb/lNW87+SJ7ai2f0oVHURT9AncV1/2
xk/S1HU4z/lao6kwOm/W9k0s/OKPAN54wXHA6+DTgTelADsZN6UWysJ/nKdF6iJA
ib2dwNCPTir8GbU6cmOUWVcrn2PsqRcU6tUDGp7v0wmLjKfmPsx5Rl/oEoFf6sen
Dlp72zof9Wz8GdxUMFIjGsy4unVaQLuBBfvBR7TXQ5LZm5AZ/lPMJhD8uJiLzwUF
AQSCOxgbGjjURBMFc1ulZWlkkZohF8r4EN/iZKr4G3D4242XMaicyHW575kqLefC
8IUWz/yDdLZ+yvUvNiXlRfAUzTAIlaw/K2ZWiJFRYANk9uF7MD6KcsyPYDpeDJKy
HqwU8YnXQebIzUdABorOYrEIns3GN4LO14xTUmU3TgKIBng6yRvi81X9dkVzzcln
hZdfCEv7VH/DFKdTZgyZh9FYoRzFySK1gQcl0M4ElrNnVvmrTQsclj62iVRcLQdD
vYqo8HyG5+YTibtiG1GJBmou812GvVhWfg/ov+e9g+BFcvrONvapZa7IlOWLg7/9
fj00VEDsDmp3dONLDU1vCobNl5fwXkCe8Hv53+px7okcp0Wavt8HGg9NyIL8uGox
OD+97dVov5UAL/c9xpwzKEsVVqdQPAsofzFA3HulL4/SI0WXxDE=
=WwX+
-----END PGP SIGNATURE-----
pgpj_17fACSrs.pgp
Description: PGP signature
--- End Message ---