#1127099 tex-common: could use dh_usrlocal to create /usr/local/share/texmf

#1127099#5
Date:
2026-02-06 09:38:51 UTC
From:
To:
Prompted by recent changes in fontconfig's handling of
/usr/local/share/fonts, I noticed that tex-common's postinst has
an open-coded script to create /usr/local/share/texmf with Policy-compliant
permissions.

Please consider using dh_usrlocal(1) for this: that way, any implementation
bugs can be fixed centrally in debhelper, and they will take effect in
all packages that use dh_usrlocal at the next rebuild.

The procedure to do that is something like this:

1. create debian/tex-common/usr/local/share/texmf, for example in
   debian/tex-common.dirs or with some `install -d` in d/rules
2. make sure dh_usrlocal is run (normally dh will run it automatically)
3. remove open-coded logic in maintainer scripts to create and remove
   this directory
4. if the maintainer scripts have become empty, remove them (for example
   debian/prerm can probably be removed completely), or if not, make
   sure they still contain the #DEBHELPER# placeholder

With that done, dh_usrlocal should insert maintainer script snippets
generated from /usr/share/debhelper/autoscripts/ to create and remove
the directory when appropriate.

Thanks,
    smcv

#1127099#10
Date:
2026-02-08 22:18:30 UTC
From:
To:
Am 06.02.2026 um 10:38 schrieb Simon McVittie:

Hello,

Fix is on github. Thanks for the pointer.

Hilmar

#1127099#17
Date:
2026-10-13 20:35:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
tex-common, 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 1127099@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hilmar Preuße <hille42@debian.org> (supplier of updated tex-common 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)
Format: 1.8
Date: Tue, 13 Oct 2026 22:16:36 +0200
Source: tex-common
Architecture: source
Version: 6.21
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Task Force <debian-tex-maint@lists.debian.org>
Changed-By: Hilmar Preuße <hille42@debian.org>
Closes: 1127099 1142467
Changes:
 tex-common (6.21) unstable; urgency=medium
 .
   * Hand over creating and deletion of /usr/local/share/texmf to dh_usrlocal
     (Closes: #1127099).
   * Inform better, what is done during postinst call (Closes: #1142467).
 .
   * We are back on salsa.
   * Add debian/gitlab-ci.yml.
   * Install files a little more Debianish.
   * Lintian clean up.
Checksums-Sha1:
 777518e71f9315ff919f360f73d3463758adfb49 1222 tex-common_6.21.dsc
 6cd761daa283a655628900ce7b8c4ff273148aed 42364 tex-common_6.21.tar.xz
 e446a69a2bdbbf266548517b4517098f75f671a9 5076 tex-common_6.21_source.buildinfo
Checksums-Sha256:
 a7b72b57a02ff7231376de89aa12820834edc0daafa9ab1b9a33dd01af94217c 1222 tex-common_6.21.dsc
 08f24be2a32094d350153b7d9b2469f8898b31ad470f8df3c201461ce243e620 42364 tex-common_6.21.tar.xz
 433c01bb4c698b7d394d182cc3114dfe0167b3e282461add89f05f39e8992b3c 5076 tex-common_6.21_source.buildinfo
Files:
 a2f37f7703738f752601588f48370531 1222 tex optional tex-common_6.21.dsc
 d46359bab7dfc4a7ba5d0d304ed24463 42364 tex optional tex-common_6.21.tar.xz
 abc3d5afbd4d781437f5127efd5ae1a3 5076 tex optional tex-common_6.21_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQRKnq6Z0VRDf4bMmAn98EQ6ARgcNAUCas6R2V8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0NEE5
RUFFOTlEMTU0NDM3Rjg2Q0M5ODA5RkRGMDQ0M0EwMTE4MUMzNAAKCRD98EQ6ARgc
NIaWAQC8Ct7Fa4HElU7Tyn7yymb0nCkl6Y3AMTu5E6xsxJ7ctgD/eMSqxkAtDo8K
j4C5+F3hS2YEX43ZFwbZXiYD8NBEcg8=
=Nclt
-----END PGP SIGNATURE-----