Re: Introduction to Xorg-7: XORG_PREFIX & XORG_CONFIG Weird Issue

"Bruce Dubbs" ([email protected] via blfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.support
Message-ID <[email protected]>
On 8/14/25 6:36 PM, azazel xes ([email protected] via blfs-support Mailing List) 
wrote:
> Hi,
> 
> When following instructions to choose the installation prefix that in my case i 
> decided to with /usr, I was never able to pass the value of  $XORG_PREFIX to $XORG_CONFIG
> 
> I followed the instructions, double checked that echo $XORG_PREFIX will print /usr 
> with a no-root and a root user which was successful in both cases, but when 
> copypasting (with the root user):
> 
> export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
>      --localstatedir=/var --disable-static"
> If i echo  $XORG_CONFIG  with the root user or a no-root user the output will always 
> be an empty value for the --prefix:
> 
> echo $XORG_CONFIG="--prefix= --sysconfdir=/etc  --localstatedir=/var --disable-static"
> So creating the /etc/profile.d/xorg.sh was not possible neither because the file will 
> always be created with a blank value for XORG_CONFIG, I'm not using zsh as my 
> terminal and i also try removing the backslash in front of the dollar sign which was 
> unsuccessful too, so I decided to hard code the value /usr to the XORG_CONFIG in / 
> etc/profile.d/xorg.sh
> 
> Will there be any particular reason for this weird behavior? is it bad that I hard 
> coded the prefix value to /usr ?

Why are you doing a copy/paste as root?  We assume that users will use sudo from the 
non-root user and configure sudo with:

cat > /etc/sudoers.d/xorg << EOF
Defaults env_keep += XORG_PREFIX
Defaults env_keep += XORG_CONFIG
EOF

Alternatively you can run sudo as 'sudo -E'.

   -- Bruce

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.