Gpredict Packaging Status

From MyLabWiki
Revision as of 16:59, 6 March 2011 by Alex (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


All dependencies are available. It is just a matter of creating a DEB and uploading to PPA.

There are two videos explaining the basics of packaging using a simple example:


Since Gpredict is fully GNU autotools compliant and does not require any options to be specified, we can build using CDBS.

Using CDBS for Ubuntu packages is very easy, if the software you are packaging can be configured and built using the GNU autoconf tools (the "configure-make-make install" idiom). After adding cdbs to the Build-Depends in debian/control, a basic debian/rules file using CDBS can fit in 2 lines. For a simple C/C++ application with no extra rules, such as hello, debian/rules can look like this:

#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/
include /usr/share/cdbs/1/class/

That is all you need to build the program! CDBS handles installing and cleaning. You can then use the .install and .info files to tune your package with the usual debhelper functions in the various sections for debian/rules.


Following the video tutorial steps I managed to create both the source (required for the PPA) and a binary .deb. I was using the cdbs trick above.

The binary was created using pbuilder. Before pbuilder is useful it has to be set up:

sudo pbuilder create

Moreover, since goocanvas is in universe it has to be enabled, otherwise it will not be able to resolve the dependency:

sudo pbuilder update --components "main restricted universe multiverse" --override-config

New versions

Packaging new versions is now much easier based on the existing template:

  1. Create the gpredict_x.y.orig.tar.gz and unpack it
  2. Copy the debian folder from the previous version
  3. Update the files in there (at least the changelog must be updated)
  4. Run "debuild -S -sa" in the gpredict-x.y/ directory
    • In case of signature problems (more than one key for same email address), use "debuild -S -sa -kKEYID"
  5. Must be executed on the computer that contains the proper PGP key for signing (or else a new key must be uploaded to the keyserver)
  6. Upload the necessary files to the PPA builder: "dput ppa:gpredict-team/ppa gpredict_1.2-ppa1+jaunty_source.changes"

Mac OS X


Build, Bundle, and Integrate, see

Note: gedit comes as native OS X package


Should be able to build as regular Gtk+-based library


  • For Mac I only see it via Mac ports. See however this Mac developer site: – MacPorts might be an option but I don't really want X11...



Gtk+ - though we want cross compilation, right. Build+installer. Compatibility matrix XP, Vista, 7. Is it enough with one 32 bit binary? Fortunately, Joop has figured it out


Should be able to build once Gtk+ is set up for build.



Latest hamlib is avaialble as win32 package.

Generic Linux

tgz that can be unpacked anywhere. Needs mod to compat.h for locating data files.