Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821079 - media-sound/denemo: installs fonts without fontcache updating
Summary: media-sound/denemo: installs fonts without fontcache updating
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-10-31 12:03 UTC by Sergey Torokhov
Modified: 2021-11-12 13:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Torokhov 2021-10-31 12:03:05 UTC
media-sound/denemo installs fonts without global fontcache updating results in sandbox violations on installation of some packages.

Please, refer comment https://bugs.gentoo.org/812401#c10
from issue https://bugs.gentoo.org/812401

Proposed solution: inherit font.eclass to call implicitly update of global fontcache within pkg_postinst().

Reproducible: Always
Comment 1 Bernd 2021-11-02 19:45:31 UTC
I've fixed this, but found, that, when uninstalling the package, the font directories aren't properly cleaned. The .uuid files aren't deleted and therefore the non-empty directories not removed. Is this a bug in font.eclass?
Comment 2 Ionen Wolkens gentoo-dev 2021-11-03 07:24:19 UTC
(In reply to Bernd from comment #1)
> I've fixed this, but found, that, when uninstalling the package, the font
> directories aren't properly cleaned. The .uuid files aren't deleted and
> therefore the non-empty directories not removed. Is this a bug in
> font.eclass?
Haven't looked in-depth but believe it is. Has code to remove (any) directories in postrm with "only generated files" but does not consider .uuid a generated file.
Comment 3 Larry the Git Cow gentoo-dev 2021-11-12 13:04:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab6037bafea4249cc2d7dfb41b045e2c3dd3e512

commit ab6037bafea4249cc2d7dfb41b045e2c3dd3e512
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2021-11-02 19:51:39 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-11-12 13:03:56 +0000

    media-sound/denemo: fix updating font-cache generation
    
    Calls fc-cache implicitly to update global fontcache for
    the installed truetype fonts.
    
    Closes: https://bugs.gentoo.org/821079
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-sound/denemo/denemo-2.5.0-r1.ebuild | 123 ++++++++++++++++++++++++++++++
 1 file changed, 123 insertions(+)