Package: firefox
Version: 93.0-1
Severity: normal
Tags: patch
X-Debbugs-Cc: j.andra...@gmail.com

Dear Maintainer,

the firefox package installs a bash script in /usr/bin/firefox to startup the
browser.  This script still uses "which", which has been deprecated, and an
error is printed when invoking /usr/bin/firefox from the command line:

$ firefox http://debian.org
/usr/bin/which: this version of `which' is deprecated; use `command -v' in
scripts instead.


The issue can be easily solved by replacing "which" by "command -v" in the
script, as suggested in the error message.

The patch file would be:

------------
3c3
< FIREFOX="$(which firefox)"
---
> FIREFOX="$(command -v firefox)"
------------


-- Package-specific info:


-- Addons package information

-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages firefox depends on:
ii  debianutils          5.5-1
ii  fontconfig           2.13.1-4.2
ii  libatk1.0-0          2.36.0-2
ii  libc6                2.32-4
ii  libcairo-gobject2    1.16.0-5
ii  libcairo2            1.16.0-5
ii  libdbus-1-3          1.12.20-2
ii  libdbus-glib-1-2     0.112-2
ii  libevent-2.1-7       2.1.12-stable-1
ii  libffi8              3.4.2-3
ii  libfontconfig1       2.13.1-4.2
ii  libfreetype6         2.10.4+dfsg-1
ii  libgcc-s1            11.2.0-9
ii  libgdk-pixbuf-2.0-0  2.42.6+dfsg-2
ii  libglib2.0-0         2.70.0-1+b1
ii  libgtk-3-0           3.24.30-3
ii  libnspr4             2:4.32-1
ii  libnss3              2:3.70-1
ii  libpango-1.0-0       1.48.10+ds1-1
ii  libstdc++6           11.2.0-9
ii  libvpx6              1.10.0-2
ii  libx11-6             2:1.7.2-2+b1
ii  libx11-xcb1          2:1.7.2-2+b1
ii  libxcb-shm0          1.14-3
ii  libxcb1              1.14-3
ii  libxcomposite1       1:0.4.5-1
ii  libxdamage1          1:1.1.5-2
ii  libxext6             2:1.3.4-1
ii  libxfixes3           1:5.0.3-2
ii  libxrender1          1:0.9.10-1
ii  procps               2:3.3.17-5
ii  zlib1g               1:1.2.11.dfsg-2

Versions of packages firefox recommends:
ii  libavcodec57  7:3.4.3-1
ii  libavcodec58  7:4.4-6+b2

Versions of packages firefox suggests:
ii  fonts-lmodern          2.004.5-6.1
ii  fonts-stix [otf-stix]  1.1.1-4.1
ii  libcanberra0           0.30-8
ii  libgssapi-krb5-2       1.18.3-7
ii  pulseaudio             15.0+dfsg1-2

-- no debconf information
3c3
< FIREFOX="$(which firefox)"
---
> FIREFOX="$(command -v firefox)"

Reply via email to