# We will build Xorg so that it runs rootless if it can do so. The Xorg.wrap # setuid wrapper will be set to "auto" by default in /etc/X11/Xwrapper.config, # which will only run Xorg as root for non-KMS legacy drivers that require Xorg # to be running as root in order to draw to the screen. It's possible that some # drivers could still run into issues with this, such as missing keyboard or # mouse (elogind should provide these), or problems after suspend. If you do # have problems, let us know on LQ. You can also edit /etc/X11/Xwrapper.config # to make Xorg run as root: # needs_root_rights = yes ROOTLESS_OPTIONS="-Dsuid_wrapper=true -Dsystemd_logind=true" BUILD_SERVERS="-Dxorg=true \ -Dxvfb=true \ -Dxnest=true \ -Dglamor=true \ -Dxephyr=true" # 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" export CFLAGS="$SLKCFLAGS" export CXXFLAGS="$SLKCFLAGS" mkdir build cd build meson setup \ --prefix=/usr \ --libdir=lib${LIBDIRSUFFIX} \ --libexecdir /usr/libexec \ --bindir /usr/bin \ --sbindir /usr/sbin \ --includedir /usr/include \ --datadir /usr/share \ --mandir /usr/man \ --sysconfdir /etc \ --localstatedir /var \ --buildtype=release \ -Dint10=x86emu \ -Ddefault_font_path="${DEF_FONTPATH}" \ -Dmodule_dir=/usr/lib${LIBDIRSUFFIX}/xorg/modules \ -Dvendor_name="Slackware Linux Project" \ -Dvendor_name_short="Slackware" \ -Dvendor_web="http://slackware.com" \ -Dxkb_dir=/usr/share/X11/xkb \ -Dxkb_output_dir=/var/lib/xkb \ -Dudev=true \ -Dudev_kms=true \ -Dhal=false \ $BUILD_SERVERS \ $ROOTLESS_OPTIONS \ .. || exit 1