Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351128 - x11-libs/xosd-2.2.14-r1: make font-misc-misc optional
Summary: x11-libs/xosd-2.2.14-r1: make font-misc-misc optional
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alex Alexander (RETIRED)
URL: https://sourceforge.net/projects/libx...
Whiteboard:
Keywords:
: 351134 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-08 15:43 UTC by Cedric Sodhi
Modified: 2011-12-05 22:29 UTC (History)
0 users

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 Cedric Sodhi 2011-01-08 15:43:55 UTC
xosd depends on 2 megabytes of unnecessary fonts. They should be removed.

Reproducible: Always
Comment 1 Rafał Mużyło 2011-01-08 16:41:22 UTC
*** Bug 351134 has been marked as a duplicate of this bug. ***
Comment 2 Rafał Mużyło 2011-01-08 16:48:58 UTC
You're not quite correct here - xosd doesn't use fontconfig, but the old XLFD method, with a default of "-misc-fixed-medium-r-semicondensed--*-*-*-*-c-*-*-*"

That's media-fonts/font-misc-misc, unfortunately.
Why, yes, it could use porting to at least libXft.
Comment 3 Cedric Sodhi 2011-01-08 17:22:08 UTC
(In reply to comment #2)
> You're not quite correct here - xosd doesn't use fontconfig, but the old XLFD
> method, with a default of "-misc-fixed-medium-r-semicondensed--*-*-*-*-c-*-*-*"
> 
> That's media-fonts/font-misc-misc, unfortunately.
> Why, yes, it could use porting to at least libXft.
> 

Yes, but even XLFD goes through X and hence there is no problem if "the default" is currently not available. I don't know what font in particular X will pick as a substitute but it sure finds one. I installed the program from source and - of course - it works perfectly fine without misc-misc fonts - although osd_cat might *prefer* a specific font.
Comment 4 Rafał Mużyło 2011-01-08 18:52:16 UTC
The problem is that there are cases when no font matches the pattern and xosd just silently fails - there's no default fallback here.
Comment 5 Cedric Sodhi 2011-01-08 19:06:32 UTC
I see. What about a "-failsafe" USE flag then or at least choose the smallest font package which still has a matching font in it instead of font-misc-misc which in turn depends on font-alias and is about 2M (I would find esp. the first option reasonable). 
Comment 6 Rafał Mużyło 2011-01-08 20:49:43 UTC
Personally, I do agree to a point (a useflag would be nice), but I don't think this will get accepted.
Comment 7 Cedric Sodhi 2011-01-08 21:06:38 UTC
(In reply to comment #6)
> Personally, I do agree to a point (a useflag would be nice), but I don't think
> this will get accepted.
> 

Accepted? By whom? The maintainer? Why would he not...
Comment 8 Alex Alexander (RETIRED) gentoo-dev 2011-02-01 07:57:00 UTC
The font dependency could be modified to be satisfied by another font if it exists. What font would you guys recommend/use that works with xosd?