3.5 KiB
Table of Contents
- Jhbuild
- Observation
- Possible error
- gtk-mac-bundler
- How to use
- Prerequisite
- Usage
Jhbuild
In order to set up Jhbuild properly before building Nmap suite, follow the tutorial at https://wiki.gnome.org/Projects/GTK%2B/OSX/Building, but keep reading this file if you encounter any error...
If you had any error, just type the following command to delete jhbuild,
$ rm -rf ~/bin/jhbuild ~/.local/bin/jhbuild ~/.local/share/jhbuild ~/.cache/jhbuild ~/.config/jhbuildrc ~/.jhbuildrc ~/.jhbuildrc-custom ~/jhbuild
And we'll start over together:
-
First, simply download the following script in your $HOME directory and launch it (https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh):
$ sh gtk-osx-build-setup.shAnd add it to your $PATH, so you can run jhbuild without the absolute path:
$ export PATH=$HOME/.local/bin:$PATH -
In
~/.jhbuildrc-custom, make sure that this line is setup properly:setup_sdk(target=_target, sdk_version="native", architectures=["i386"])for an i386 architecture.
-
Now do,
$ jhbuild bootstrapTo install missing dependencies (with --force option to force rebuilding).
Go to Observation if errors appear... -
And,
$ jhbuild build meta-gtk-osx-bootstrap $ jhbuild build meta-gtk-osx-core $ jhbuild build meta-gtk-osx-pythonGo to Observation if errors appear...
### Observation
If anything goes wrong now, it'll probably be a bad link on your python binary, so check that you're using the GTK one instead of the original mac one:
$ jhbuild shell
bash$ which python
If you can see gtk in the path, everything is fine with Python, else do:
$ jhbuild build --force python
And make an alias, to use this version of Python with Jhbuild:
$ alias jhbuild="PATH=gtk-prefix/bin:$PATH jhbuild"
Now continue at step 3 with the --force option at the end of each command, to reinstall everything from scratch with this new python binary.
Possible error
For those of you who have this error while trying to make,
svn: E155021: This client is too old to work with the working copy at...
You need to update SVN.
Go to http://www.wandisco.com/subversion/download#osx and download and install the approriate version for your OS.
Now, add the path for the new SVN version to your $PATH:
$ export PATH=/opt/subversion/bin:$PATH
gtk-mac-bundler
Now that Jhbuild is properly configured, we need to install gtk-mac-bundler in order to render the bundle file:
$ git clone git://git.gnome.org/gtk-mac-bundler
$ cd gtk-mac-bundler
$ make install
How to use
Prerequisite:
—openssl.modules:
This is a jhbuild moduleset that can be used to build/update openssl, libapr and libsvn.
First, locate this part in your Jhbuild ~/.jhbuildrc configuration file:
if not _host_tiger:
skip.append('make')
skip.append('subversion')
And comment this line with a #:
if not _host_tiger:
skip.append('make')
# skip.append('subversion')
This will stop Jhbuild from ignoring subversion, which was in the ignore list.
Usage:
Now use it like this:
$ jhbuild -m openssl.modules build nmap-deps