#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