Stopped researching and started playing today. Used the directions in the "draft" book @~/dj/blfs-xorg/x/xorg7.html.

NOTE: I already have the packages so I didn't test any of this for downloading and verifying. Additionally, I worked only on the prototypes thinking that if I could install them, the rest would be a trivial excercise.

Thought that I, or anyone else for that matter, wouldn't have to fuss very much with the build order if I used the files to get the packages also to unpack and build the packages. So right from the get-go at "Setting Up the Xorg Build Environment:

mkdir xc/{proto,lib,river,data,apps,srv,fonts}
(did nothing yet with PKG_CONFIG_PATH)

Then I copied and pasted the file proto.wget, but named it proto.lst

Had trouble with the following from the "draft" of the book:

for package in *.tar.bz2
do
 packagedir=`echo $package | sed 's/.tar.bz2//'`
 tar -xf $package &&
 cd $packagedir &&

So I wrote and tested this:

for PKG in `cat proto/proto.lst`
  do
     packagedir=`echo $PKG | sed  's/-[0-9].*.tar.bz2//'`
     mkdir $packagedir
     cd $packagedir
     tar -xjf ../proto/$PKG --strip-path=1
     ../build
     cd ../
done

I rewrote the sed command just to strip out the rest of the numbers. The ../build line is to use a script that I plagiarized from Matthias Benkman's package managment system and modified it to run from each of the package directories. It creates six logs for each package two each for ./configure, make and make install--an entire log and one just with error messages. It will exit anytime there's a problem and you know which package casued the failure. I've attached it. Currently it's setup to install to /tmp/test but the xconfigargs from the "draft" instructions can be put in the configure_commands.

Sooooo, someone can use either this script or continue on with the commands as they are written in the "draft."

My next step is to make the file lib.lst and use the build order required. That way I don't have to mess with renaming files and other sed commands.

Dan







--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to