-----Oprindelig meddelelse----- Fra: [email protected] [mailto:[email protected]] På vegne af Thanos Baloukas Sendt: 12. marts 2013 15:25 Til: [email protected] Emne: Re: [blfs-support] Compilation presets for Xorg
On 03/12/2013 04:13 PM, Carl Thorn wrote: > > > ---------------------------------------------------------------------- > -- > *From:* Niels Terp <[email protected]> > *To:* BLFS Support List <[email protected]> > *Sent:* Tue, March 12, 2013 8:22:28 AM > *Subject:* [blfs-support] Compilation presets for Xorg > > >Hi, > > >I have started on Xorg - but even with the very first packet I run > into > >trouble: > >The book suggest to create a file /etc/profile.d/xorg.sh with the > following > >command: > > >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 > >EOF > >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 commands. > "<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 > everything. > 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 . $script fi see http://www.linuxfromscratch.org/blfs/view/svn/postlfs/profile.html 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 Thanos -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Hi, 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 /usr. Niels -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
