summaryrefslogtreecommitdiffstats
path: root/source/x/x11/configure/xorg-server
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/configure/xorg-server')
-rw-r--r--source/x/x11/configure/xorg-server47
1 files changed, 35 insertions, 12 deletions
diff --git a/source/x/x11/configure/xorg-server b/source/x/x11/configure/xorg-server
index c107644e0..6a536c0d5 100644
--- a/source/x/x11/configure/xorg-server
+++ b/source/x/x11/configure/xorg-server
@@ -1,6 +1,34 @@
# Build Wayland X Server (currently built as standalone):
BUILD_XWAYLAND=NO
+# Build rootless X packages. This is not the default in Slackware and is
+# unlikely to be any time soon, as --enable-systemd-logind seems to really
+# require systemd and does not function 100% with all graphics chipsets.
+# In particular, resuming from suspend may not work with (at least) Radeon
+# chipsets, and NVIDIA chipsets using proprietary drivers. Also, while
+# rootless X works from "startx", it is unsupported by most login managers
+# which will continue to start X as root.
+#
+# Feel free to try it out, though. To build rootless X packages, start the
+# build like this:
+#
+# ROOTLESSX=YES ./x11.SlackBuild xserver xorg-server
+#
+if [ "$ROOTLESSX" = "YES" ]; then
+ ROOTLESS_OPTIONS="--enable-suid-wrapper --disable-install-setuid --enable-systemd-logind"
+else
+ # Here we are building the traditional setuid root X. Technically we could
+ # dispense with the Xorg.wrap wrapper and just have the actual Xorg binary
+ # in /usr/bin, but we've always had the wrapper anyway and it should not
+ # cause any problems. Besides, it might be possible with this configuration
+ # to remove the setuid permissions from /usr/libexec/Xorg and then add the
+ # user to required groups such as input to run rootless as well, though it
+ # may bring its own security issues since other users who are members of
+ # these groups could monitor the devices. It's not recommended to try to
+ # run X rootless in this way, but we're going to keep the option open for now.
+ ROOTLESS_OPTIONS="--enable-suid-wrapper --enable-install-setuid --disable-systemd-logind"
+fi
+
# Servers to build:
if [ "$BUILD_XWAYLAND" = "NO" ]; then
XWAYLAND_OPTION="--disable-xwayland"
@@ -14,12 +42,7 @@ BUILD_SERVERS="--enable-xorg \
--enable-glamor \
--enable-kdrive \
--enable-xephyr \
- $XWAYLAND_OPTION \
- --enable-config-udev \
- --disable-config-hal \
- --disable-systemd-logind"
-
-#MESA_VERSION=${MESA_VERSION:-7.5} # unused in 1.7+
+ $XWAYLAND_OPTION "
# Default font paths to be used by the X server:
DEF_FONTPATH="/usr/share/fonts/misc,/usr/share/fonts/local,/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/Type1,/usr/share/fonts/CID,/usr/share/fonts/75dpi/:unscaled,/usr/share/fonts/100dpi/:unscaled,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/cyrillic"
@@ -37,22 +60,22 @@ CFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--disable-static \
--with-pic \
- --enable-suid-wrapper \
--with-int10=x86emu \
--with-default-font-path="${DEF_FONTPATH}" \
--with-module-dir=/usr/lib${LIBDIRSUFFIX}/xorg/modules \
- --with-os-name="Slackware 15.0" \
+ --with-os-name="Slackware 15.1" \
--with-os-vendor="Slackware Linux Project" \
- --with-xkb-path=/etc/X11/xkb \
+ --with-xkb-path=/usr/share/X11/xkb \
--with-xkb-output=/var/lib/xkb \
+ --enable-config-udev \
+ --disable-config-hal \
+ --enable-year2038 \
$BUILD_SERVERS \
+ $ROOTLESS_OPTIONS \
--build=$ARCH-slackware-linux
-# --with-dri-driver-path=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri
-
if [ "$ARCH" = "x86_64" ]; then
# To prevent the error "No rule to make target `-ldl'"
sed -i -e 's#-ldl##' hw/xfree86/Makefile
sed -i -e 's#-lm#-lm -ldl#' hw/xfree86/Makefile
fi
-