Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649114 - net-im/discord-bin on ~amd64: font corruption & workaround
Summary: net-im/discord-bin on ~amd64: font corruption & workaround
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Johannes Huber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-28 22:32 UTC by Greg Turner
Modified: 2018-03-18 16:55 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 Greg Turner 2018-02-28 22:32:20 UTC
Not sure if anyone is willing to do the work to fix the underlying problem here, but I have for some time been unable to use discord-bin because the fonts are all messed up.

I stumbled across this:

https://www.reddit.com/r/discordapp/comments/7w9c5f/fonts_are_really_screwed_up_on_linux/?ref=share&ref_source=link

So on a hunch I tried (the equivalent of) the following:

sudo ebuild "$(portageq get_repo_path / gentoo)"/media-libs/freetype/freetype-2.8.ebuild clean install && \
\
sudo cp "$(PORTAGE_TMPDIR)"/portage/media-libs/freetype-2.8/image/usr/lib64/libfreetype.so.6.14.0 $(portageq envvar EPREFIX)/opt/discord/share/discord/libfreetype.so.6 && \
\
sudo ebuild "$(portageq get_repo_path / gentoo)"/media-libs/freetype/freetype-2.8.ebuild

and, whaddayaknow, the problem is solved.

ime it would be unfortunate to give discord-bin a ( <=media-libs/freetype-2.8 ) DEPEND when this work-around solves it so much more elegantly... so I hope that is not the result of this repor

Anyhow I wanted to at least share this workaround with anyone out there who may be similarly afflicted.
Comment 1 Greg Turner 2018-02-28 22:33:53 UTC
(In reply to Greg Turner from comment #0)
> \
> sudo ebuild "$(portageq get_repo_path /
> gentoo)"/media-libs/freetype/freetype-2.8.ebuild

meant to say "clean" at the end :)
Comment 2 Greg Turner 2018-03-06 18:20:51 UTC
(In reply to Greg Turner from comment #0)
> "$(PORTAGE_TMPDIR)

should be $(portageq envvar PORTAGE_TMPDIR).


Bleh....  I think my original post is too confusing/buggy.  So, to clarify: the workaround was:

STEP ONE
run the =media-libs/freetype-2.8 ebuild up to the install phase, creating the file ${PORTAGE_TMPRDIR}/portage/media-libs/freetype-2.8/image/usr/lib64/libfreetype.so.6.14.0

STEP TWO
copy/rename that file so it becomes: /opt/discord/share/discord/libfreetype.so.6
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2018-03-18 16:55:55 UTC
Please bug upstream about it.