On 01/17/2011 01:17 AM, Simon Geard wrote: > On Sun, 2011-01-16 at 07:44 -0600, Randy McMurchy wrote: >> Juan Antonio Moreno Carmona wrote these words on 01/16/11 05:45 CST: >>> git wants to put gitcore in /usr/libexec and, until now, no other package >>> installed files there. That directory does not exits and I think is against >>> FHS. What would be the most appropriate destination directory for that file? >> >> BLFS has established convention that libexec files go to >> /usr/lib/package_name. > > I used to do that, but switched back go /usr/libexec after hitting > packages that assumed that things it depended on could be found in it's > own libexec dir. > > From memory, it was GDM, looking for various other pieces of Gnome... > I'm sure the problem was solvable, but it was easier to simply remove > --libexecdir from my scripts and use the default location. > > Simon. >
GDM is actually a corner case, and doing something it really shouldn't do, but it's easy to work around. The maintainers are aware of the problem, but patches have not been accepted yet to gnome-settings-daemon that the GDM patch depends on. One of the GDM maintainers (the?) actually got the Console-Kit change committed for us, so in the interim, rather than patching things out badly, I've elected to use a shared libexec dir for only gnome specific packages. In fact, exactly like Xorg, I use an environment variable for configuring gnome packages (/etc/gnome and /usr/lib/gnome are symlinks to a versioned directory): dj [ ntfs-3g-2010.10.2 ]$ cat /etc/profile.d/gnome.sh GNOME_PREFIX="/usr" GNOME_CONFIG="--prefix=/usr --sysconfdir=/etc/gnome --libexecdir=/usr/lib/gnome --mandir=/usr/share/gnome --infodir=/usr/share/info" pathappend /etc/gnome/xdg XDG_CONFIG_DIRS export GNOME_PREFIX GNOME_CONFIG XDG_CONFIG_DIRS Pretty much all packages use "./configure $GNOME_CONFIG" with a couple using a one off, and only patch I use is for GDM (to find the CK libexecdir for ck-connector). CK must also be patched for now to supply libexecdir in ck-connector.pc. https://bugs.freedesktop.org/show_bug.cgi?id=18427 has links to both bugs and both patches, though both patches are in the repo, and might even be in the book. I haven't looked recently, but at least the CK patch and GDM-CK patch should be in the book as opposed to the symlinks. The GDM-GSD patch becomes unnecessary if using the shared libexecdir (as with a few other minor annoyances). -- DJ Lucas -- This message has been scanned for viruses and dangerous content, and is believed to be clean. -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
