[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001051: marked as done (texlive-base postinst uses which)



Your message dated Sat, 05 Feb 2022 15:36:25 +0000
with message-id <E1nGN6v-000GY7-R7@fasolo.debian.org>
and subject line Bug#1001051: fixed in texlive-base 2021.20220204-1
has caused the Debian Bug report #1001051,
regarding texlive-base postinst uses which
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 owner@bugs.debian.org
immediately.)


-- 
1001051: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001051
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texlive-base
Version: 2021.20211127-1
Severity: normal
Tags: patch
X-Debbugs-Cc: jspricke@debian.org

Hi,

installing textlive-base gives:

$ sudo apt install texlive-base
[..]
Setting up texlive-base (2021.20211127-1) ...
/usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead.
/usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead.
/usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead.
/usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead.

The attached patch fixes this.
You can also just press merge here:

https://github.com/debian-tex/texlive-nonbin/pull/3

Answering your question from there:

> According to the CTTE decision the "which" command will continue to exist. Should we nevertheless prepare for the removal of it.

The CTTE stated that "For the Debian 12 release, we expect which(1) to
be in either an Essential package or a transitively Essential package"
this does not mean that which(1) will be there indefinitely. Contrary to
which, command -v is specified by POSIX and meant to stay. So this patch
is to help for a future transition.
>From eebe6baf1b311c6f4fd01e788f8f4769712de071 Mon Sep 17 00:00:00 2001
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Wed, 1 Dec 2021 23:35:27 +0100
Subject: [PATCH] Use command -v instead of which

---
 texlive-base/debian/texlive-base.postinst.pre | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/texlive-base/debian/texlive-base.postinst.pre b/texlive-base/debian/texlive-base.postinst.pre
index 640e11c..05fbc13 100644
--- a/texlive-base/debian/texlive-base.postinst.pre
+++ b/texlive-base/debian/texlive-base.postinst.pre
@@ -34,7 +34,7 @@ case "$1" in
     rm -f $file.ucf-new
     rm -f $file.ucf-dist
     ucf --purge $file
-    if test -x "`which ucfr`" ; then
+    if command -v ucfr ; then
       ucfr --purge texlive-base $file
     fi
   done

--- End Message ---
--- Begin Message ---
Source: texlive-base
Source-Version: 2021.20220204-1
Done: Hilmar Preusse <hille42@web.de>

We believe that the bug you reported is fixed in the latest version of
texlive-base, 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 1001051@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hilmar Preusse <hille42@web.de> (supplier of updated texlive-base 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 04 Feb 2022 23:04:17 +0100
Source: texlive-base
Architecture: source
Version: 2021.20220204-1
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Task Force <debian-tex-maint@lists.debian.org>
Changed-By: Hilmar Preusse <hille42@web.de>
Closes: 1001051
Changes:
 texlive-base (2021.20220204-1) unstable; urgency=medium
 .
   * New upstream snapshot, update patches.
   * Replace "which" by "command -v" (Closes: #1001051).
Checksums-Sha1:
 a17ffa0d553cc926bd3d6fbc9cc25131278c7e54 3221 texlive-base_2021.20220204-1.dsc
 b73fcacff322c496e2cd8921f11792b0570f7899 447244400 texlive-base_2021.20220204.orig.tar.xz
 62a375bccde6eb03ffc2c9d88a9e8644a6b2d94d 314256 texlive-base_2021.20220204-1.debian.tar.xz
 44190fd86c18ee13c55b60ca6249df8afdc1a05d 5614 texlive-base_2021.20220204-1_source.buildinfo
Checksums-Sha256:
 b254bcca6797e26630d9e3c727b3f16d24cad4b1b9b9b39d0ceb9bf734f94448 3221 texlive-base_2021.20220204-1.dsc
 d69d07502b27164e5fa7e69df5b509f2049396974c0281525c7a124e937bc0d8 447244400 texlive-base_2021.20220204.orig.tar.xz
 7f56716ac41d1cfa67684e5eb38ad70c46f86e92eaf2f4922725db31eba9dc3c 314256 texlive-base_2021.20220204-1.debian.tar.xz
 965aad7916d61654d957b33e38ce666da7f07d8e81b97108073ce4527cf4637b 5614 texlive-base_2021.20220204-1_source.buildinfo
Files:
 31a759bcb35fd7e756777c810d33968a 3221 tex optional texlive-base_2021.20220204-1.dsc
 cbe8ed9ad9631af619eb4a8109ffc3b4 447244400 tex optional texlive-base_2021.20220204.orig.tar.xz
 c4d0f9bb43a277e8a6b66df051d19c2c 314256 tex optional texlive-base_2021.20220204-1.debian.tar.xz
 7fff62994e1fafadf2e8546028dbf8f8 5614 tex optional texlive-base_2021.20220204-1_source.buildinfo

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

iQKTBAEBCgB9FiEEaXGmC/nkbIhxf16kxiZYRqvgLIsFAmH9q2tfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDY5
NzFBNjBCRjlFNDZDODg3MTdGNUVBNEM2MjY1ODQ2QUJFMDJDOEIACgkQxiZYRqvg
LIuvnxAAsdFEwwk6eOFPXVGcC3xSx2iI8Q8nI3r972l+B2iF2wXoAyycx4TCpTDM
f2HJZATosLu7Ow7Ext7oEIN5VxHSLwCQbAKIcb8UbJFfskOwxFMknaF2aeUUSQId
wjXnbn/cOdOxtb25vCp1VImLKY3qrbW8puFIm71PkEkuV+LuYY977blzgn2nGw1N
ijrq/eGSawGxuAtYGSh0RsL942biETNxcgurt1NwPnzvHo72yFyo7FKrXLaqFFVU
uiDFDBORG/0K7lPmf+9Nd08P1W/5N395NlcTAd8ppOEhzOc7vyuyKzxVoCzBHp5g
b7v6Ymqnjqr5OJZBH1iRtSgN624vwtr0cSShtPXEz/oRBjhjnyu/AcH8/X4HHoeE
mHvqxSxb08r4laP8iGkU1YNyzEK8eroUeHGwzUIVnP8DGi35/AScMvkPWtZ8Y24X
qXeR4EI2O4BluyOhhM2AO0GsPbt/VsVoY+HhM80dPXkcpt5srLRlEFfTUTe9R9u4
09jiUjJWBaJIj5o+RJDybH80YIIjSLcmCr4oqNi/VD+KqXJoFFipEF8aYLwv4ECn
4g/VpfKU4yt1qTUkuiy89ukdIcrQ9Cv8wgWDTkUrg7hQ7gM3y0DDC4fH5nS7l3S5
1spCmerTAL3e3cTmHjw4QA1OgKBdpi6aZKUTgs4MKC3uWH/7SzU=
=6Txh
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: