Bug 165286 - x11-apps/xset-1.0.2 automagic dependancy on x11-libs/libXfontcache-1.0.4
Bug#: 165286 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: x11@gentoo.org Reported By: gpp666_999@yahoo.de
Component: Ebuilds
URL: 
Summary: x11-apps/xset-1.0.2 automagic dependancy on x11-libs/libXfontcache-1.0.4
Keywords:  
Status Whiteboard: 
Opened: 2007-02-04 16:01 0000
Description:   Opened: 2007-02-04 16:01 0000
cleaning the cruft on my system I unmerged libXfontcache, but as a result
revdep-rebuild has shown xset broken because of this.
xset's ebuild does not have explicit dependency on libXfontcache in the ebuild,
but configure.ac shows:
PKG_CHECK_MODULES(SET_FONTCACHE, xfontcache,
        [SAVE_CPPFLAGS="$CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
        AC_CHECK_HEADERS([X11/extensions/fontcache.h
X11/extensions/fontcacheP.h],,,[#include <X11/Xlib.h>])
        CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"])
looking in xset.c reveals that xset could control the fontcache if build with
libXfontcache:
#ifdef FONTCACHE
    fprintf (stderr, "    To control font cache:\n");
    fprintf (stderr, "\t fc [hi-mark [low-mark [balance]]]\n");
    fprintf (stderr, "\t    both mark values spcecified in KB\n");
    fprintf (stderr, "\t    balance value spcecified in percent (10 - 90)\n");
    fprintf (stderr, "    Show font cache statistics:\n");
    fprintf (stderr, "\t fc s\n");
#endif

so one possible resolution is to add unconditional depend on libXfontcache or
to make it an use-flag

------- Comment #1 From Joshua Baergen (RETIRED) 2007-02-04 17:47:36 0000 -------
Thanks for catching this!

I'll make the dependency unconditional, since it's a very small compile and it
would make sense to have this control by default.

I need a couple of keywords added to x11-libs/libXfontcache first - ~ia64 and
~x86-fbsd.

------- Comment #2 From Joshua Baergen (RETIRED) 2007-02-04 17:48:40 0000 -------
Oops - re-opening.

------- Comment #3 From Raúl Porcel 2007-03-26 16:37:29 0000 -------
~ia64 done. Adding bsd to cc.

------- Comment #4 From Peter Weller 2007-03-26 16:46:05 0000 -------
libXfontcache-1.0.4 keyworded ~x86-fbsd... and, unless I'm mistaken,
bsd@gentoo.org is not on the CC list? armin76...?

------- Comment #5 From Donnie Berkholz 2007-05-02 08:26:46 0000 -------
Fixed, thanks and sorry for the delay!