Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 14:33:04 -0400
From:      Julio Merino <jmmv@freebsd.org>
To:        x11@freebsd.org
Subject:   xorg-server fails to build as non-root
Message-ID:  <20140404183304.GA85500@mastodon.meroh.net>

next in thread | raw e-mail | index | archive | help
Hello,

The staging phase of xorg-server fails when run as non-root because the
package installation tries to make the Xorg binary setuid root.

The patch below fixes it.  I'm not sure if there would be a better and
preferrable alternative.

Thoughts?

Thanks!


Index: Makefile
===================================================================
--- Makefile	(revision 349914)
+++ Makefile	(working copy)
@@ -109,6 +109,11 @@
 .if ${PORT_OPTIONS:MSUID}
 CONFIGURE_ARGS+=--enable-install-setuid=yes
 PLIST_SUB+=	SUID=""
+
+# The configure script tries to detect if we can install Xorg as root so that
+# the binary can be made setuid later.  If we are not root, this obviously
+# fails at one point or another.
+NEED_ROOT=	yes
 .else
 CONFIGURE_ARGS+=--enable-install-setuid=no
 PLIST_SUB+=	SUID="@comment "



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140404183304.GA85500>