After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785188 - Do not add LIB_INSTALL_DIR into RPATH
Do not add LIB_INSTALL_DIR into RPATH
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
3.24.x (obsolete)
Other Linux
: Normal minor
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2017-07-20 19:12 UTC by Maciej Mrozowski
Modified: 2017-07-21 06:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Font rendering comparison (49.11 KB, image/png)
2017-07-20 19:12 UTC, Maciej Mrozowski
Details
primary fontconfig .conf file (872 bytes, application/xml)
2017-07-20 19:13 UTC, Maciej Mrozowski
Details

Description Maciej Mrozowski 2017-07-20 19:12:42 UTC
Created attachment 356066 [details]
Font rendering comparison

Evolution, to my big surprise, unlike other Gnome apps, doesn't seem to follow fontconfig.

See attached screenshot. It shows main menus of various applications side by side.

From the top-left corner:
- kdesvn-1.7.0 (using kdelibs4, so Qt4 font renderer)
- kate-17.04.1 (using KF5, so Qt5 font renderer)
- gnome-terminal-3.24.2 (using Gtk3), gnome-control-center also looks the same
- evolution-3.24.4 (using Gtk3). One can clearly see different hinting, anti-aliasing or subpixel rendering setting is applied.

Environment;
OS: Fedora 26
DE: KDE Plasma 5.10.1 (only evolution-3.24.4-1.fc26.x86_64 and its deps are installed, in ex. no gnome-settings-daemon, but I tried running it and nothing changes)
freetype: freetype-freeworld-2.7.1 from rpmfusion

Font settings in Gnome (as shown by gnome-tweak-tool):
Hinting: Full
Antialiasing: Grayscale
Comment 1 Maciej Mrozowski 2017-07-20 19:13:52 UTC
Created attachment 356067 [details]
primary fontconfig .conf file
Comment 2 Maciej Mrozowski 2017-07-20 19:38:47 UTC
I narrowed down the problem a bit and it seems Evolution somehow doesn't use freetype-freeworld library, which installs alternative libfreetype.so in /usr/lib64/freetype-freeworld along with proper ld.so.conf path, but uses the one from /usr/lib64. At least when freetype-freeworld is removed, all other apps (gnome-terminal included) start to render fonts like Evo.

Which prompted me to

$ readelf -d /usr/bin/evolution and indeed:
0x000000000000000f (RPATH)  Library rpath: [/usr/lib64:/usr/lib64/evolution]

while no RPATH in other apps.

Is this something you enforce or this is downstream (Fedora) problem?
Comment 3 Milan Crha 2017-07-21 06:48:48 UTC
Thanks for a bug report. This is done during the build time, not due to packaging, thus you filled it properly here. There had been added the LIB path into the RPATH, but after trying without it it works, thus it was not needed, even though no issue had been spotted with it, until now. I removed it with:

Created commit_c2e82e9 in eds master (3.25.90+) [1]
Created commit 009337f in evo master (3.25.90+)
Created commit_a95511b in ews master (3.25.90+) [2]
Created commit_8656390 in ema master (3.25.90+) [3]

Created commit_2d70843 in eds gnome-3-24 (3.24.5+)
Created commit 218f0cd in evo gnome-3-24 (3.24.5+)
Created commit_a5321c5 in ews gnome-3-24 (3.24.5+)
Created commit_0dc4caa in ema gnome-3-24 (3.24.5+)

[1] https://git.gnome.org/browse/evolution-data-server/commit/?id=c2e82e9
[2] https://git.gnome.org/browse/evolution-ews/commit/?id=a95511b
[3] https://git.gnome.org/browse/evolution-mapi/commit/?id=8656390