Re: Introduction to Xorg-7: XORG_PREFIX & XORG_CONFIG Weird Issue
| Newsgroups | gmane.linux.lfs.beyond.support |
|---|---|
| Message-ID | <SN6PR05MB4704297842D672CB6BF43185F735A@SN6PR05MB4704.namprd05.prod.outlook.com> |
________________________________ From: [email protected] <[email protected]> on behalf of Bruce Dubbs <[email protected]> Sent: Thursday, August 14, 2025 5:53 PM To: [email protected] <[email protected]> Subject: Re: [blfs-support] Introduction to Xorg-7: XORG_PREFIX & XORG_CONFIG Weird Issue 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 Sorry, maybe I didn't explain my self in the best way, so yeah I did try sudo -E, sudo su, etc. and follow the instructions as per the book instructed, I even went back to LFS book Sudo section to check that I hadn't missed something, but the result was always the same $XORG_PREFIX will not be passed to $XORG_CONFIG even is echo $XORG_PREFIX will always echo /usr. Maybe is just something weird on my end, the only thing that I forgot to mention is that I updated sudo from Sudo-1.9.16p2 to Sudo 1.9.17p1 before starting chapter 24. Graphical Environments not sure if this can be or not relevant to this weird behavior. Thanks Bruce. -- http://lists.linuxfromscratch.org/sympa/info/blfs-support Unsubscribe: See the above information page