Bug 29028

Summary: libX11 fails to detect launchd unless /sbin is in PATH
Product: xorg Reporter: Johan Hattne <johan.hattne>
Component: Lib/XlibAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium CC: jeremyhu
Version: unspecified   
Hardware: All   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Johan Hattne 2010-07-12 14:10:59 UTC
The automatic detection of launchd uses AC_CHECK_PROG with the user's PATH to check for the presence of launchd.  If the user doesn't have /sbin in PATH, libX11 (and libxcb, and possibly others) will be built without launchd support which cripples the library on OS X.

I suggest the following modification to configure.ac of affected libraries

-	AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no])
+	AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no], [/sbin])

because launchd is in /sbin in OS X 10.4, 10.5, and 10.6.  This issue was originally reported at

https://bugs.gentoo.org/show_bug.cgi?id=326521
Comment 1 Jeremy Huddleston Sequoia 2010-07-12 16:55:55 UTC
changes pushed to xinit, libX11, and libxcb

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.