#1022566 fonts-mplus: upgrade of mplus leaves an old /usr/share/fonts/truetype/mplus behind #1022566
- Package:
- fontconfig
- Source:
- fontconfig
- Description:
- generic font configuration library - support binaries
- Submitter:
- Alexandre Detiste
- Date:
- 2023-06-07 09:06:17 UTC
- Severity:
- normal
- Tags:
Hi, After upgrade of mplus, I still have got old loose dir and cache file from previous version: /usr/share/fonts/truetype/mplus /usr/share/fonts/truetype/mplus/.uuid Please remove these files on upgrade. This bug was found by the cruft-ng tool. Thanks
These files are created by the fontconfig trigger (see details below),
so I think that is the component that should remove them.
Please consider reassigning and retitling the bug to reflect this.
$ grep font /var/lib/dpkg/triggers/File
/usr/share/fonts fontconfig/noawait
/usr/share/ghostscript/fonts fontconfig/noawait
/usr/share/texmf/fonts fontconfig/noawait
$ cat /var/lib/dpkg/info/fontconfig.triggers
interest-noawait /usr/share/fonts
interest-noawait /usr/share/ghostscript/fonts
interest-noawait /usr/share/texmf/fonts
$ head -vn-0 /var/lib/dpkg/info/fontconfig.post*
==> /var/lib/dpkg/info/fontconfig.postinst <==
#!/bin/sh
set -e
if [ "$1" = triggered ]; then
# Force regeneration of all fontconfig cache files.
mkdir -p /var/cache/fontconfig
fc-cache -s -v 1>/var/log/fontconfig.log 2>&1 || printf "fc-cache failed.\nSee /var/log/fontconfig.log for more information.\n"
exit 0
fi
if [ "$1" = configure ]; then
# Force regeneration of all fontconfig cache files.
mkdir -p /var/cache/fontconfig
printf "Regenerating fonts cache... "
fc-cache -s -f -v 1>/var/log/fontconfig.log 2>&1 || (printf "failed.\nSee /var/log/fontconfig.log for more information.\n"; exit 1)
printf "done.\n"
fi
==> /var/lib/dpkg/info/fontconfig.postrm <==
#! /bin/sh
set -e
case "$1" in
purge)
rm -f /var/log/fontconfig.log
rm -rf /var/cache/fontconfig
;;
esac
control: reassign -1 fontconfig control: forcemerge -1 897040 Hi, It was not created by fonts packages, but by fontconfig. And, it seemed to be fixed in upstream now. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897040
Le mer. 26 oct. 2022 à 12:31, Hideki Yamane <henrich@iijmio-mail.jp> a écrit : Hi, thanks, but will fontconfig clean-up everything; all those directories with the .uuid file but nothig else; or is it too late and all individual font package will have to clean up individualy the old directories ...? Greeting, Alexandre Detiste