Docbook-setup
Submitted by jralls on Sat, 2009-02-28 20:56.
I'm having trouble with this tarball target. It downloads, but then jhbuild quits(!) with the error
$ manjusri:/Users/john> jhbuild build
I: unknown keys defined in configuration file: path
*** Checking out libpng *** [1/75]
*** Skipping libpng (package and dependencies not updated) *** [1/75]
*** Checking out docbook-setup *** [2/75]
jhbuild build: failed to unpack /usr/local/src/gnome/pkgs/DB_1
$ manjusri:/Users/john>
tar -tf /usr/local/src/gnome/pkgs/DB_1 dumps a long list of files, so I'm a bit at a loss about what's wrong.

Maybe a silly question, but
Maybe a silly question, but do you have enough space on your disk?
Also, it looks like you might have some custom things setup or not using the latest setup from our build script, looking at the "unknown keys..." message there, maybe you should make sure to update the setup script (after getting the latest version). Also make sure you don't have an edited .jhbuildrc file, this setup needs to "own" that file.
>Disk space I think so: $
>Disk space
I think so:
$ manjusri:/Users/john> df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/disk1s2 233Gi 201Gi 31Gi 87% /
Yes, lots of customization, but all in .jhbuildrc-custom where it's supposed to be. Yes, I just ran the new setup script, so .jhbuildrc is up-to-date. I've cloned your github repository to git-osx-build, and
$ manjusri:/Users/john> diff -u .jhbuildrc gtk-osx-build/jhbuildrc-gtk-osx
$ manjusri:/Users/john>
So to make for a clean test, I removed all of the customizations except
checkoutroot = '/usr/local/src/gnome'
prefix = '/usr/local/gtk'
and reran jhbuild bootstrap and jhbuild build. I got the same problem, except with a different package:
*** Checking out ige-mac-integration *** [7/8]
curl -L http://github.com/rhult/ige-mac-integration/tarball/IMI_1 -o /usr/local/src/gnome/pkgs/IMI_1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 34929 100 34929 0 0 2844 0 0:00:12 0:00:12 --:--:-- 2844
jhbuild build: failed to unpack /usr/local/src/gnome/pkgs/IMI_1
$ manjusri:/Users/john>
Have you tried deleting the
Have you tried deleting the old IMI_1 (or other) directories before trying, to make sure there isn't a problem with the file downloaded? Github doesn't seem all that robust when it comes to the tarball support :(
As I said in my original
As I said in my original post, I tested the d/l'd archive with tar, successfully. I just did so again.
OK, I figured it out. "python" was pointed at the one that comes with 10.5 (which is 2.4), not the MacPython 2.5 it was supposed to be pointed at. Jhbuild's utils/unpack.py wants TarFile.extractall, which requires 2.5. Fixed the softlink and everything works. I'm going to add a check to my .jhbuildrc-custom to trap it in future; perhaps you should do likewise to .jhbuildrc.
Hm? 10.5 has python 2.5, not
Hm? 10.5 has python 2.5, not 2.4.
I'm getting the same problem
I'm getting the same problem trying to build GTK for the first time on OS X 10.4 (ppc). I've downloaded and run the script at http://github.com/rhult/gtk-osx-build/raw/master/gtk-osx-build-setup.sh, and not attempted to customise anything.
jhbuild bootstrap
works fine, but
jhbuild build meta-gtk-osx-bootstrap
finishes libpng then fails every time with:
*** Checking out docbook-setup *** [2/13]
curl -L http://github.com/rhult/gtk-osx-docbook/tarball/DB_1 -o /Users/mje/gtk/source/pkgs/DB_1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1889k 100 1889k 0 0 170k 0 0:00:11 0:00:11 --:--:-- 253k
jhbuild build: failed to unpack /Users/mje/gtk/source/pkgs/DB_1
I've no idea where to go from here, but am keen to try anything you might suggest and report the results.
10.4 does have an older
10.4 does have an older python so in that case the guess above might be more relevant. But, the jhbuild setup detects 10.4 and installs python 2.5 in that case, so it shouldn't be a problem. Do you have macports or something that might be overriding jhbuild's python? What does the following result in:
echo $PYTHON
python -V
which python
jhbuild shell
echo $PYTHON
python -V
which python
(i.e. python versions and locations inside and outside jhbuild)
Also please try rerunning
Also please try rerunning the setup script now, I pushed an attempted fix (for the case of using jhbuild's python).
Thanks for the reply.
Thanks for the reply. Here's the output you asked for.
$ echo $PYTHON
$ python -V
Python 2.3.5
$ which python
/usr/bin/python
$ jhbuild shell
Prefix: /Users/mje/gtk/inst
Entered jhbuild shell, type 'exit' to return.
$ echo $PYTHON
/Users/mje/gtk/inst/bin/python
$ python -V
Python 2.5.2
$ which python
/Users/mje/gtk/inst/bin/python
I'll try rerunning the script now.
I downloaded the new script,
I downloaded the new script, ran it, then ran
jhbuild bootstrap
and
jhbuild build meta-gtk-osx-bootstrap
But to no avail. I get the same error unpacking DB_1, and the output from the python commands is unchanged.
I replaced the symlink in
I replaced the symlink in /usr/bin/python with one that links to /Users/mje/gtk/inst/bin/python, and it's unpacked DB_1 ok now.
The problem is that while
The problem is that while bootstrap.modules does indeed install python 2.5, it's not what gets called when you say "jhbuild" from your shell unless you put it in your path first. To avoid making a mess of other things the easy thing to do is add this to your .bashrc (or just issue it from the command line before running jhbuild):
alias jhbuild="PATH ~/gtk/inst/bin:$PATH jhbuild"
which will make sure that the correct python gets used to run jhbuild itself.
BTW you shouldn't ever change anything in /usr/bin: That directory is Apple's and it could cause trouble if Software Update ever uses or touches what you've changed. Standard practice in Unix is to put local customizations in /usr/local/bin and to adjust paths appropriately.