Bug#897040: fontconfig: .uuid files in font directories not removed during purge

Sven Joachim svenjoac at gmx.de
Sat May 12 17:24:45 BST 2018


On 2018-04-27 13:41 +0100, Simon McVittie wrote:

> Package: fontconfig
> Version: 2.13.0-4
> Severity: normal
>
> To reproduce: run piuparts on fontconfig or anything that it depends on.
> I tested d-feet in a sid base tarball from earlier this week, in a
> Debian 9 'stretch' virtual machine:
>
> 0m0.0s INFO: piuparts version 0.85~bpo9+1 starting up.
> 0m0.0s INFO: Command line arguments: /usr/sbin/piuparts --arch amd64 -b /tmp/autopkgtest.uE5SNJ/3e1d5d16-c1de-46a1-ab13-fef86825fe3a/minbase-merged-usr.tar.gz --bindmount=/tmp/autopkgtest.uE5SNJ/vectis-iCnAcABsFP -l /tmp/autopkgtest.uE5SNJ/vectis-1rBsQJnS1T/piuparts.log -d sid --mirror 'http://192.168.122.1:3142/debian main' /tmp/autopkgtest.uE5SNJ/vectis-iCnAcABsFP/d-feet_0.3.13-3_all.deb
> 0m0.0s INFO: Running on: Linux host 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64
> ...
> 0m38.4s ERROR: FAIL: Package purging left files on system:
>   /usr/local/share/fonts/	 not owned
>   /usr/local/share/fonts/.uuid	 not owned
>   /usr/share/fonts/	 owned by: fonts-dejavu-core
>   /usr/share/fonts/.uuid	 not owned
>   /usr/share/fonts/truetype/	 owned by: fonts-dejavu-core
>   /usr/share/fonts/truetype/.uuid	 not owned
>   /usr/share/fonts/truetype/dejavu/	 owned by: fonts-dejavu-core
>   /usr/share/fonts/truetype/dejavu/.uuid	 not owned
>
> 0m38.4s ERROR: FAIL: Installation and purging test.
>
> This can also be seen on piuparts.debian.org:
> https://piuparts.debian.org/testing2sid/owned_files_after_purge_issue.html
> https://piuparts.debian.org/testing2sid/pass/fontconfig_2.13.0-4.log
>
> I think these .uuid files are created as a result of:
> https://bugs.freedesktop.org/show_bug.cgi?id=101889
>
> Either fontconfig or fontconfig-config should delete them from known
> font directories during purge.

Even if you have no intention of purging the fontconfig package, stale
.uuid files and the directory containing it are left behind when all
font files have been removed from the directory.  This happened today
where an update of fonts-font-awesome dropped the file
/usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf, but the
directory remains (dpkg warned about that, so I noticed it):

,----
| $ ls -lA /usr/share/fonts/truetype/font-awesome
| total 4
| -rw-r--r-- 1 root root 36 Apr 11 14:25 .uuid
| $ dpkg -S /usr/share/fonts/truetype/font-awesome
| dpkg-query: no path found matching pattern /usr/share/fonts/truetype/font-awesome
`----

Cheers,
       Sven



More information about the Pkg-freedesktop-maintainers mailing list