Bug#1065876: texlive-extra-utils: The shebang of script de-macro invokes 'python' rather than 'python3'

2024-04-03 Thread Preuße

Control: tags -1 + pending

On 10.03.2024 17:28, Diego Caraffini wrote:

Hi,


I have a paper written in LaTeX that the publisher required to not
contain any user macro, so I used de-macro to produce a distributable
version with a Makefile target.


Fixed in git, will be part of next upload.

H.
--
sigfault



OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1065876: texlive-extra-utils: The shebang of script de-macro invokes 'python' rather than 'python3'

2024-03-10 Thread Diego Caraffini
Package: texlive-extra-utils
Version: 2023.20240207-1
Severity: normal

Dear Maintainer,

I have a paper written in LaTeX that the publisher required to not
contain any user macro, so I used de-macro to produce a distributable
version with a Makefile target.

Today I tried to recreate the distributable paper, and when de-macro was
called, as:
de-macro Paer.tex

I received the error:

bash: /usr/bin/de-macro: cannot execute: required file not found

however, using:

python3 $(which de-macro) Paper.tex

works.

inspecting the installed de-macro script i found that the cause is the
shebang, that is set as:

#!/usr/bin/python -O

which fails unless package python-is-python3 is installed (I didn't
bother checking if it works with python2).

The shebang should be changed to use a versioned python executable,
since python-is-python3 should not be a dependency of any other package.

Thank you for your precious work maintaining the texlive ecosystem.

-- Package-specific info:
IMPORTANT INFORMATION: We will only consider bug reports concerning
the packaging of TeX Live as relevant. If you have problems with
combination of packages in a LaTeX document, please consult your
local TeX User Group, the comp.text.tex user group, the author of
the original .sty file, or any other help resource. 

In particular, bugs that are related to up-upstream, i.e., neither
Debian nor TeX Live (upstream), but the original package authors,
will be closed immediately.

   *** The Debian TeX Team is *not* a LaTeX Help Desk ***

If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report.

Please run your example with
(pdf)latex -recorder ...
(or any other program that supports -recorder) and send us the generated
file with the extension .fls, it lists all the files loaded during
the run and can easily explain problems induced by outdated files in
your home directory.

Don't forget to also include minimal examples of other files that are 
needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.minimalbeispiel.de/mini-en.html (english)

or 

http://www.minimalbeispiel.de/mini.html (german)

##
minimal input file


##
other files

##
 List of ls-R files

-rw-r--r-- 1 root root 2944 Mar  3 23:28 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Oct 12  2022 /usr/share/texmf/ls-R -> 
/var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Feb 14 09:08 /usr/share/texlive/texmf-dist/ls-R -> 
/var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Feb 14 09:08 /usr/share/texlive/texmf-dist/ls-R -> 
/var/lib/texmf/ls-R-TEXLIVEDIST
##
 Config files
-rw-r--r-- 1 root root 475 Nov  1 02:41 /etc/texmf/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Feb 14 09:08 /usr/share/texmf/web2c/fmtutil.cnf -> 
/var/lib/texmf/fmtutil.cnf-DEBIAN
lrwxrwxrwx 1 root root 32 Feb 14 09:08 /usr/share/texmf/web2c/updmap.cfg -> 
/var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 5334 Mar  3 23:22 
/var/lib/texmf/tex/generic/config/language.dat
##
 Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Apr  1  2019 mktex.cnf
-rw-r--r-- 1 root root 475 Nov  1 02:41 texmf.cnf
##
 md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c  /etc/texmf/texmf.d/00debian.cnf

-- System Information:
Debian Release: trixie/sid
  APT prefers oldstable-security
  APT policy: (500, 'oldstable-security'), (500, 'testing'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.15-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), 
LANGUAGE=it_IT:it
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages texlive-extra-utils depends on:
ii  libfile-homedir-perl   1.006-2
ii  libunicode-linebreak-perl  0.0.20190101-1+b6
ii  libyaml-tiny-perl  1.74-1
ii  python33.11.6-1
ii  tex-common 6.18
ii  texlive-base   2023.20240207-1
ii  texlive-binaries   2023.20230311.66589-9
ii  texlive-latex-base 2023.20240207-1
ii  texlive-luatex 2023.20240207-1
ii  texlive-plain-generic  2023.20240207-1

Versions of packages texlive-extra-utils recommends:
ii  ghostscript10.02.1~dfsg-3
ii  liblog-log4perl-perl   1.57-1
ii  ruby