I am the one of the developers of NetSurf's GTK port from RISC OS, and I
noticed this today:
I thought you might like some constructive criticism, so here goes:
+ GrepReplace "I.. -g -O0" "I.. -O0" makefile
Why not just strip after building, rather than risking damaging the
Makefile if it changes in a way that this might destroy?
+ GrepReplace "^#ifdef NDEBUG" "#if 1" utils/log.h
Why not just add -DNDEBUG? We find that the logging information is
extremely useful for tracking bugs when it does crash. Vincent Sanders,
who is doing Debian packages, has submitted a patch to add a -v flag so
this can be turned on/off at run time. You might want to update your
recipe to handle that. It is now in the trunk. (It's quiet by
+ cp nsgtk $target
+ mkdir -p $target/gtk/res
You should look at gtk/gtk_gui.c and look at the function find_resource().
The starter script that is included in svn is simply there to make it
easier to launch NetSurf from the dev tree without installing it. In
gtk_gui.c is a #define that defines a location from which to read resources
by default if not overridden by the NETSURFRES environment variable or
files in ~/.netsurf/ - this defaults to /usr/share/netsurf/ in Subversion,
but is easily changed. If you just put the contents of gtk/res/ in there
(dereferencing symlinks as you copy), then you don't need to starter
script and you can use nsgtk directly, perhaps symlinking netsurf to nsgtk.
I don't know how your packages are split up etc, but NetSurf does not
depend on Xorg. It uses GTK and Cairo for all graphics output etc, and
does not directly talk to X or xlib. You do not need a local X server to
If you have any other questions about packaging NetSurf, or if you ever
want to submit patches, you can ask on our developers' mailing list, which
you can find here:
Note the difference between netsurf-dev and netsurf-develop. The later is
the old developers' list that users hijacked and is now a users list.