Package: fontconfig Version: 2.11.0-2 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu trusty ubuntu-patch
The rules adds /usr/X11R6/lib/X11/fonts, that directory is not used by any package anymore and having it in the list creates some extra work for clients that iterate through the fontconfig locations.
One example is that gnome-settings-daemon bug, https://launchpad.net/bugs/1266873 where the code adds monitors on the different font directories (to pick new fonts when they get installed), which creates a constant polling on /usr/X11R6/lib/X11
The attached patch fixes the issue Cheers, Sebastien Bacher
diff -Nru fontconfig-2.11.0/debian/changelog fontconfig-2.11.0/debian/changelog --- fontconfig-2.11.0/debian/changelog 2013-11-23 20:14:36.000000000 +0100 +++ fontconfig-2.11.0/debian/changelog 2014-01-16 15:51:48.000000000 +0100 @@ -1,3 +1,12 @@ +fontconfig (2.11.0-3) unstable; urgency=medium + + * debian/rules: + - don't add /usr/X11R6/lib/X11/fonts to the fonts path, that's a + deprecated location and it leads to polling on the directory, + which means wakeups and extra power usage (lp: #1266873) + + -- Sebastien Bacher <seb...@ubuntu.com> Thu, 16 Jan 2014 15:50:35 +0100 + fontconfig (2.11.0-2) unstable; urgency=low * fontconfig-config.postrm: be less aggressive in removing fonts.d. diff -Nru fontconfig-2.11.0/debian/rules fontconfig-2.11.0/debian/rules --- fontconfig-2.11.0/debian/rules 2013-10-20 20:00:50.000000000 +0200 +++ fontconfig-2.11.0/debian/rules 2014-01-16 15:52:04.000000000 +0100 @@ -16,7 +16,7 @@ WITHARCH= endif -DEB_CONFIGURE_EXTRA_FLAGS := $(WITHARCH) --disable-docs --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts +DEB_CONFIGURE_EXTRA_FLAGS := $(WITHARCH) --disable-docs --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-add-fonts=/usr/local/share/fonts # tight versioning DEB_DH_MAKESHLIBS_ARGS_libfontconfig1 := -V"libfontconfig1 (>= 2.11)" --add-udeb="fontconfig-udeb"