Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2020 02:04:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        desktop@FreeBSD.org
Subject:   maintainer-approval requested: [Bug 239167] x11-fonts/fontconfig: update to 2.13.1 : [Attachment 212601] Proposed patch (since 528458 revision)
Message-ID:  <bug-239167-39348-BYUIfPsmuv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239167-39348@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

lightside <lightside@gmx.com> has asked freebsd-desktop mailing list
<desktop@FreeBSD.org> for maintainer-approval:
Bug 239167: x11-fonts/fontconfig: update to 2.13.1
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239167

Attachment 212601: Proposed patch (since 528458 revision)
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212601&action=edit



--- Comment #25 from lightside <lightside@gmx.com> ---
Created attachment 212601
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212601&action=edit
Proposed patch (since 528458 revision)

Hello, Li-Wen Hsu.

(In reply to comment #24)
> It seems all font ports will have leftover after uninstalling in poudriere
> <..>
I did some search in /usr/local/share/fonts directory:
-8<--
% cd /usr/local/share/fonts && find . -type f -name .uuid
./util/.uuid
./webfonts/.uuid
./100dpi/.uuid
./75dpi/.uuid
./cyrillic/.uuid
./misc/.uuid
./encodings/large/.uuid
./encodings/.uuid
./dejavu/.uuid
./TTF/.uuid
./OTF/.uuid
./Type1/.uuid
<..>
./.uuid
<..>
-->8-

and this is true, that there are ".uuid" files in it and font's subdirectories.
I didn't notice this, because these hidden files were created after fc-cache
usage.

Probably possible to create uninstall script or some @unexec pkg-plist entry,
which uses following command after fontconfig's deinstall:
cd /usr/local/share/fonts && find . -type f -name .uuid -delete && find * -type
d -empty -delete

But mentioned command may delete user's created empty directories in
${PREFIX}/share/fonts directory also.

Or somehow register removal of .uuid file(s) for %%FONTSDIR%% of concrete
font's port (and probably x11-fonts/encodings port also). While
x11-fonts/fontconfig port may check ${PREFIX}/share/fonts/.uuid file after
deinstall.

Attached patch for first variant, just in case.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239167-39348-BYUIfPsmuv>