From a89f38df9177a67c4c73fa5f9114c4623490ac8d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 3 Jul 2021 20:31:18 +0000 Subject: [PATCH] xinit: remove sed -i --- xorg/xinit/build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xorg/xinit/build b/xorg/xinit/build index 1709bf70..b31c38b4 100755 --- a/xorg/xinit/build +++ b/xorg/xinit/build @@ -1,5 +1,10 @@ #!/bin/sh -e +# Make xauth optional at runtime. +cmd='command -v xauth >/dev/null \&\&' +sed "s#\(enable_xauth\)=1#$cmd&||\1=0#" startx.cpp > _ +mv -f _ startx.cpp + ./configure \ --prefix=/usr \ --with-xinitdir=/etc/X11/xinit @@ -7,6 +12,3 @@ make make DESTDIR="$1" install -# Make xauth optional. -sed -i 's#enable_xauth=1#command -v xauth >/dev/null \&\&&||enable_xauth=0#' \ - "$1/usr/bin/startx"