<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">From: Kacper Wysocki <kacperw@online.no><br>To: xorg@lists.freedesktop.org<br>Sent: Tuesday, August 22, 2006 12:22:00 PM<br>Subject: some notes on how to make building Xorg modular from git easier<br><br><div>>All the font modules have been commented out in git_xorg - if they<br>>aren't to be pulled from git, then don't build them by default in<br>>build.sh, and do pull them if they are to be built by default.<br><br>Agreed.<br><br>>Also, build.sh assumes that you want to build the various XCB modules<br>>unless USE_XCB=NO is set - however, xcb isn't present in git (as far<br>>as I can tell) and is
certainly not pulled by git_xorg. I had to<br>>manually get xcb from xcb.freedesktop.org tarballs, but only after<br>>being quite puzzled that it was expected, but not provided.<br><br>xcb is in git, see xcb.freedesktop.org. The script should pull this. This is the repo: git://anongit.freedesktop.org/git/xcb<br><br>>Furthermore, xkbdata was completely missing, and I could but find it<br>>as a release tarball.<br><br>The package is different now. I have it checked out but from CVS, it does not exist in git yet (this needs to be moved to git).<br><br>>Second, xcb depends on gperf, which isn't documented on the build page.<br><br>>seems<br>>Third, I ran into two snags with packageconfig files:<br>>xcursorgen : Variable 'datarootdir' not defined in<br>>'/tmp/xmodular/modular/lib/pkgconfig/xcursor.pc'<br><br>>during the build of xcursorgen and also:<br>>xt : Variable 'datarootdir' not defined
in<br>>'/tmp/xmodular/modular/lib/pkgconfig/xt.pc'<br><br>>during the build of the xt module.<br>>The problem is the use of $datarootdir in the .pc files as in:<br>>appdefaultdir=${datarootdir}/X11/app-defaults<br><br>>The fix, at least for someone with small understanding of the build<br>>process, was to add 'datarootdir=${prefix}/share' to both these files.<br><br>Yes, I encountered this. The pc.in files need that line added. <br><br>>Fourth, I following error appears while building the xserver module:<br>>EXTRA_DIST: variable `LBX_SOURCES' is used but `LBX_SOURCES' is undefined<br>>autoreconf: automake failed with exit status: 1<br><br>>The fix was to set the following in os/Makefile.am<br>>LBX_SOURCES = lbxio.c<br><br>>This last one I found in an older version of Makefile.am by googling..<br>>I do realize that lbxio.c doesn't exist in the tree anymore... so<br>>maybe removing the reference from the makefile altogether would
be<br>>appropriate?<br><br>I never encountered this building xserver.<br><br>>It does not seem to me that any of these issues would be specific to<br>>my machine/distribution, so hopefully the above will be helpful in<br>>fixing these simple issues.<br><br>>Lastly, I believe that Barry Scott's changes to build-from-tarball.sh<br>>should be incorporated into build.sh, or ideally there would be one<br>>shell script incorporating both build methods (or a hybrid tarball-git<br>>build). I might be inclined to do just such a thing at some point, but<br>>I haven't gotten to it yet.<br><br>>The end result would hopefully be that one could run git_xorg, then<br>>build.sh (with the appropriate parameters) and thus build the whole<br>>tree without problems (documented dependencies would of course have to<br>>be satisfied in advance).<br><br>>thanks for listening,<br>>-Kacper Wysocki<br><br>If you have an account on the wiki, feel free to
edit some content too. Im looking at it now wrt to gpref and xcb.<br></div></div><br></div></div></body></html>