xorg-server fails to build as non-root
Julio Merino
jmmv at freebsd.org
Fri Apr 4 18:33:19 UTC 2014
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 "
More information about the freebsd-x11
mailing list