Bugzilla #14912 : Modular scripts

Jesse Adkins jesserayadkins at gmail.com
Wed Sep 22 16:12:28 PDT 2010


Since there's been a lot of discussion about the modular scripts
lately, I figure this is a good time to mention #14912. This bug has a
tarball with a bunch of scripts intended for modular. Perhaps someone
can figure out if they're any good or not.

Snippets from the readme, in case they help:
xorg-ext-deps.pl:
  This script attempts to check for missing external packages, so that
the build should not fail at some random place due to a missing requirement.
  The option -b can be used to print a list of external files accessed
during build, in a perl variable format.

  You should run xorg-ext-deps.pl before continuing, to check for
missing external dependencies.

  This script has not been updated for almost an year (be warned).

xorg-build.pl:
  First it is required to clone freedesktop modules.

  Use "git-config --global xorg.repository repository"
if the default git://anongit.freedesktop.org/git does not apply.

  Use "git-config --global xorg.checkoutdir directory"
The default value is "$HOME/anongit.freedesktop.org".
If you already have a clone, you may set to that value. The script
doesn't modify any files, just update or checkout.

  Now you can run:

  % ./xorg-build.pl up

xorg-install.sh:
  This file must be in your path when you run xorg-build.pl. It
is a slightly modified version of automake-1.10 install-sh, that
defaults to the -C option (copy_on_change), but it also ignores
attributes, owner and group changes.
  This script is mean't to signficantly increase the time required
to ensure changes in one package won't break code elsewhere.

xorg-deps.pl:
  Finally, the script xorg-deps.pl just parses the dependency information
generated by "xorg-build.pl -g" and prints the order packages must be
built.
  To use it, run:
./xorg-deps.pl 2>&1 | less

  Note that the order may not look logical, as tsort does topological
sort, and there is not specific ordering of modules in the "same level".


More information about the xorg-devel mailing list