Bug 29028 - libX11 fails to detect launchd unless /sbin is in PATH
Summary: libX11 fails to detect launchd unless /sbin is in PATH
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: unspecified
Hardware: All Mac OS X (All)
: medium minor
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 14:10 UTC by Johan Hattne
Modified: 2010-07-12 16:55 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.