GNOME Bugzilla – Bug 785188
Do not add LIB_INSTALL_DIR into RPATH
Last modified: 2017-07-21 06:48:48 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
Created attachment 356067 [details] primary fontconfig .conf file
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?
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