[blfs-support] Compilation presets for Xorg
nielsterp at comhem.se
Tue Mar 12 08:16:26 PDT 2013
Fra: blfs-support-bounces at linuxfromscratch.org
[mailto:blfs-support-bounces at linuxfromscratch.org] På vegne af Thanos
Sendt: 12. marts 2013 15:25
Til: blfs-support at linuxfromscratch.org
Emne: Re: [blfs-support] Compilation presets for Xorg
On 03/12/2013 04:13 PM, Carl Thorn wrote:
> *From:* Niels Terp <nielsterp at comhem.se>
> *To:* BLFS Support List <blfs-support at linuxfromscratch.org>
> *Sent:* Tue, March 12, 2013 8:22:28 AM
> *Subject:* [blfs-support] Compilation presets for Xorg
> >I have started on Xorg - but even with the very first packet I run
> >The book suggest to create a file /etc/profile.d/xorg.sh with the
> >cat > /etc/profile.d/xorg.sh << "EOF" && >XORG_PREFIX="<PREFIX>"
> >XORG_CONFIG="--prefix=$XORG_PREFIX \
> > --sysconfdir=/etc \
> > --localstatedir=/var \
> > --disable-static"
> >export XORG_PREFIX XORG_CONFIG
> >chmod 644 /etc/profile.d/xorg.sh
> >First of all, this command does NOT create a file - it does not even
> execute >the chmod command on the last line. I assume that the "&&"
> after "EOF"
> is a
> >typo ?
> No this is not a typo it is an instruction. You may want to review
> UNIX commands.
> Read the text before copying and pasting the commands. You are
> supposed to decide where you want to install XORG before running the
> "<PREFIX>" should be the location where you want to install XORG,
> either in "/usr" or " /opt"
> >And finaly, when I try to type the configuration command by hand, it
> >complains about the --disable-static option (and ./configure --help
> says >that the option doesn't exist).
> You are not installing a package at this point so there is no
> ./configure. You are only setting up the environment for the XORG build.
> You may want to read the text rather than just copying and pasting
I think that if /etc/profile.d exists and the command is ran as root, it
should work. As for the variables not added, does /etc/profile have
for script in /etc/profile.d/*.sh ; do
if [ -r $script ] ; then
The scripts in /etc/profile.d must be sourced to have effect. Thats why
their mode is 644. Try . /etc/profile.d/xorg.sh
I recall that I saw warnings too about --disable-static by some xorg
packages which didn't had this option, but that was harmless
Unsubscribe: See the above information page
Thanos is right, when /etc/profile.d exists, the script works. And after
having copied the /etc/profile script that Thanos pointed me to, the file is
also read and executed.
Thank you for your patience with a newbee like me. And I am actualy reading
(and trying to understand) the text - e.g. I had substituted <PREFIX> with
More information about the blfs-support