Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

252 views
Skip to first unread message

Simon McVittie

unread,
Apr 27, 2018, 8:50:02 AM4/27/18
to
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.

Thanks,
smcv

-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fontconfig depends on:
ii fontconfig-config 2.13.0-4
ii libc6 2.27-3
ii libfontconfig1 2.13.0-4
ii libfreetype6 2.8.1-2

fontconfig recommends no packages.

fontconfig suggests no packages.

-- no debconf information

Sven Joachim

unread,
May 12, 2018, 12:30:03 PM5/12/18
to
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

Sven Joachim

unread,
Sep 26, 2018, 2:00:04 PM9/26/18
to
On 2018-05-23 16:43 +0200, Laurent Bigonville wrote:

> forwarded 897040 https://bugs.freedesktop.org/show_bug.cgi?id=106632

That upstream bug has been fixed in commit f5dd851[1] which is included
in fontconfig 2.13.1, so I think the Debian bug should be closed too.
Haven't tested whether the fix works, though.

Cheers,
Sven


1. https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/f5dd8512bdf9fd8e01c30ae36f593758b29385cf

Andreas Beckmann

unread,
Oct 23, 2018, 5:00:03 AM10/23/18
to
On Wed, 26 Sep 2018 19:49:31 +0200 Sven Joachim <sven...@gmx.de> wrote:
> On 2018-05-23 16:43 +0200, Laurent Bigonville wrote:
> That upstream bug has been fixed in commit f5dd851[1] which is included
> in fontconfig 2.13.1, so I think the Debian bug should be closed too.
> Haven't tested whether the fix works, though.

This doesn't work, or maybe it does not get executed by the removal
sequence performed by piuparts.

Removing fonts-cantarell (0.111-2) ...
Removing fontconfig (2.13.1-1) ...
Removing libfontconfig1:amd64 (2.13.1-1) ...
Removing fontconfig-config (2.13.1-1) ...
Removing fonts-dejavu-core (2.37-1) ...
Removing libexpat1:amd64 (2.2.6-1) ...
Removing libfreetype6:amd64 (2.8.1-2) ...
Removing libpng16-16:amd64 (1.6.34-2) ...
Processing triggers for libc-bin (2.27-6) ...

0m52.0s INFO: IGNORED PATH@2: /usr/share/fonts/truetype/dejavu/.uuid
0m52.0s INFO: IGNORED PATH@2: /usr/share/fonts/.uuid
0m52.0s INFO: IGNORED PATH@2: /usr/share/fonts/opentype/.uuid
0m52.0s INFO: IGNORED PATH@2: /usr/share/fonts/opentype/cantarell/.uuid
0m52.0s INFO: IGNORED PATH@2: /usr/share/fonts/truetype/.uuid
0m52.5s ERROR: FAIL: Package purging left files on system:
/usr/share/fonts/opentype/ owned by: fonts-cantarell
/usr/share/fonts/opentype/cantarell/ owned by: fonts-cantarell

Tried it manually in a sid chroot, there it works if fontconfig can
perform its trigger processing.

But if fontconfig has pending triggers while being removed, .uuid files
will stay behind.
Probably add a fontconfig.prerm script and in the "remove" case perform
that same actions as in fontconfig.configure "triggered"

fc-cache unfortunately does not seem to have an option for "clear the
cache and delete all .uuid files (and do not regenerate anything)" which
would be the best thing to do in fontconfig.prerm remove


Andreas

Laurent Bigonville

unread,
Nov 5, 2018, 3:20:02 AM11/5/18
to
FTR, f5dd851 has been reverted in fontconfig, see
https://gitlab.freedesktop.org/fontconfig/fontconfig/merge_requests/8

An other attempt to implement this is waiting at
https://gitlab.freedesktop.org/fontconfig/fontconfig/merge_requests/10

Thorsten Glaser

unread,
Feb 12, 2019, 1:40:03 PM2/12/19
to
Hi,

the issue is still present:
https://piuparts.debian.org/sid-strict/fail/fontconfig_2.13.1-2.log

This is currently blocking piuparts testing for quite a number
of packages in sid ☹

bye,
//mirabilos
--
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

*************************************************

**!!! NEU !!!** Mit der **tarent Academy** bieten wir ab sofort auch Trainings
und Schulungen in den Bereichen Softwareentwicklung, Agiles Arbeiten und
Zukunftstechnologien an. Besuchen Sie uns
auf [www.tarent.de/academy](http://www.tarent.de/academy). Wir freuen uns auf
Ihren Kontakt.

*************************************************

Valerio Passini

unread,
Dec 13, 2019, 1:40:03 PM12/13/19
to

Followup-For: Bug #897040

Package: fontconfig

Version: 2.13.1-2+b1


Dear Maintainer,


Today on removing fonts-noto-extra I've noticed that the package could not be

purged, the reason is the persistence of a .uuid file inside the

/usr/share/fonts/truetype/noto/ directory.

Then I tried to remove the .uuid file manually and reinstall/remove the

package

again to reproduce and yes, the file is still there.



~$ sudo apt install fonts-noto-extra

Lettura elenco dei pacchetti... Fatto

Generazione albero delle dipendenze

Lettura informazioni sullo stato... Fatto

I seguenti pacchetti NUOVI saranno installati:

fonts-noto-extra

0 aggiornati, 1 installati, 0 da rimuovere e 0 non aggiornati.

è necessario scaricare 59,1 MB di archivi.

Dopo quest'operazione, verranno occupati 277 MB di spazio su disco.

Scaricamento di:1 http://debian.mirror.garr.it/debian bullseye/main amd64

fonts-noto-extra all 20181227-1 [59,1 MB]

Recuperati 59,1 MB in 48s (1.227 kB/s)

Selezionato il pacchetto fonts-noto-extra non precedentemente selezionato.

(Lettura del database... 434019 file e directory attualmente installati.)

Preparativi per estrarre .../fonts-noto-extra_20181227-1_all.deb...

Estrazione di fonts-noto-extra (20181227-1)...

Configurazione di fonts-noto-extra (20181227-1)...

Elaborazione dei trigger per fontconfig (2.13.1-2+b1)...


~$ sudo apt purge fonts-noto-extra

Lettura elenco dei pacchetti... Fatto

Generazione albero delle dipendenze

Lettura informazioni sullo stato... Fatto

I seguenti pacchetti saranno RIMOSSI:

fonts-noto-extra*

0 aggiornati, 0 installati, 1 da rimuovere e 0 non aggiornati.

Dopo quest'operazione, verranno liberati 277 MB di spazio su disco.

Continuare? [S/n]

(Lettura del database... 435253 file e directory attualmente installati.)

Rimozione di fonts-noto-extra (20181227-1)...

dpkg: attenzione: nel rimuovere fonts-noto-extra, la directory

"/usr/share/fonts/truetype/noto" è risultata non vuota e non viene rimossa

Elaborazione dei trigger per fontconfig (2.13.1-2+b1)...




-- System Information:

Debian Release: bullseye/sid

APT prefers unstable

APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')

Architecture: amd64 (x86_64)


Kernel: Linux 5.4.2-hpomen (SMP w/12 CPU cores; PREEMPT)

Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,

TAINT_UNSIGNED_MODULE

Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8),

LANGUAGE=en_US:it (charmap=UTF-8)

Shell: /bin/sh linked to /usr/bin/dash

Init: systemd (via /run/systemd/system)


Versions of packages fontconfig depends on:

ii fontconfig-config 2.13.1-2

ii libc6 2.29-6

ii libfontconfig1 2.13.1-2+b1

ii libfreetype6 2.10.1-2

Romain Porte

unread,
Mar 22, 2020, 5:20:03 AM3/22/20
to
Package: fontconfig
Version: 2.13.1-2+b1
Followup-For: Bug #897040

Dear Maintainer,

I am still seeing this bug on testing, as the version is 2.13.1 vs.
upstream version 2.13.91 which should fix the bug as mentioned by Alexis
in this bug report.

Here is an example output from "apt remove" command:

> $ sudo apt remove fonts-jetbrains-mono
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be REMOVED:
> fonts-jetbrains-mono
> 0 upgraded, 0 newly installed, 1 to remove and 20 not upgraded.
> After this operation, 2807 kB disk space will be freed.
> Do you want to continue? [Y/n]
> (Reading database ... 322657 files and directories currently installed.)
> Removing fonts-jetbrains-mono (1.0.4-1) ...
> dpkg: warning: while removing fonts-jetbrains-mono, directory
> '/usr/share/fonts/ woff2/jetbrains-mono' not empty so not removed
> dpkg: warning: while removing fonts-jetbrains-mono, directory
> '/usr/share/fonts/ woff/jetbrains-mono' not empty so not removed
> dpkg: warning: while removing fonts-jetbrains-mono, directory
> '/usr/share/fonts/ truetype/jetbrains-mono' not empty so not removed
> Processing triggers for fontconfig (2.13.1-2+b1) ...

And each of these directories are containing a ".uuid" file indeed,
which is why the directory is left over after font uninstallation:

> $ ls -a /usr/share/fonts/{truetype,woff,woff2}/jetbrains-mono
> /usr/share/fonts/truetype/jetbrains-mono:
> . .. .uuid
>
> /usr/share/fonts/woff2/jetbrains-mono:
> . .. .uuid
>
> /usr/share/fonts/woff/jetbrains-mono:
> . .. .uuid

After looking at tracker status for fontconfig [1], it seems that the
package is blocked on version 2.13.1 while upstream released two new
versions since then [2]. Last release 2.13.92 was 7 months ago.

[1] https://tracker.debian.org/pkg/fontconfig
[2] https://gitlab.freedesktop.org/fontconfig/fontconfig/-/tags

Is there anything preventing the new version to be tested?

Thanks and have a nice day,

-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fontconfig depends on:
ii fontconfig-config 2.13.1-2
ii libc6 2.30-2
ii libfontconfig1 2.13.1-2+b1
ii libfreetype6 2.10.1-2

signature.asc
0 new messages