Package: python3.14-minimal
Version: 3.14.3-1
Severity: wishlist
User: [email protected]
Usertags: dh-usrlocal
Prompted by recent changes in fontconfig's handling of
/usr/local/share/fonts, I noticed that python3.*-minimal's postinst has
an open-coded script to create /usr/local/lib/pythonVER/dist-packages 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 would be something like this:
1. create debian/python3.14-minimal/usr/local/lib/python3.14/dist-packages,
perhaps with some `install -d` in d/rules
2. make sure dh_usrlocal is run: normally dh will run it automatically,
but this particular package doesn't use dh, so it will be necessary
to insert a call to dh_usrlocal at an appropriate point in d/rules
3. remove open-coded logic in maintainer scripts to create and remove
this directory
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