Date: Fri, 4 Apr 2014 20:48:08 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Julio Merino <jmmv@freebsd.org> Cc: x11@freebsd.org Subject: Re: xorg-server fails to build as non-root Message-ID: <20140404184808.GE97416@ivaldir.etoilebsd.net> In-Reply-To: <20140404183304.GA85500@mastodon.meroh.net> References: <20140404183304.GA85500@mastodon.meroh.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Apr 04, 2014 at 02:33:04PM -0400, Julio Merino wrote:
> 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 "
> _______________________________________________
> freebsd-x11@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
I will come with a better patch not adding NEED_ROOT
NEED_ROOT was a mistake I should not have done ;)
regards,
Bapt
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)
iEYEARECAAYFAlM+/mgACgkQ8kTtMUmk6EzEWACeK0qYXb3hE6ZG/91KyLp86z+L
IO8AnR/rEA++aeJ07sDE5B3EyvVtsBbk
=DuXJ
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140404184808.GE97416>
