User Tools

Site Tools


en:code:prepare_ubuntu

Prepare your Ubuntu distro for PPA building and uploading

Package to install

sudo apt-get install build-essential subversion svn-buildpackage git pbuilder debhelper \
debian-builder devscripts dput lintian patchutils gettext quilt \
ubuntu-dev-tools fakeroot piuparts gnupg2 gnupg-agent \
qt4-dev-tools libqt4-dev zlib1g-dev zlib1g libopencv-highgui-dev libhighgui-dev libopencv-video-dev \
libopencv-objdetect-dev

Personnal (Eric)

  • Receive key from Ubuntu server
    gpg --keyserver keyserver.ubuntu.com --recv-keys 3FA0BBEF
  • To export your secret keys, use:
    gpg --export-secret-key -a > secret.key
  • and to import them again:
    gpg --import secret.key

Building for Ubuntu 12.04

Instructions to build FreeMedForms 0.9.4 on Ubuntu 12.04:

qtchooser

PPA build script ppcreator.sh will complain about the absence of qtchooser package, which doesn't exist in Ubuntu 12.04, the solution is to delete the qtchooser line in file trunk/debian/control (look for Build-Depends:)

uscan

For unknown reasons uscan will complain about the certificate of https://qa.debian.org (http://qa.debian.org redirects automatically to the https version).

http://qa.debian.org/watch/sf.php/freemedforms/ failed: 500 Can't connect to qa.debian.org:443 (certificate verify failed)
Couldn't find a tarball

Solution is to put the tarball freemedforms-project-src_0.9.4.tgz directly in folder /ppa_freemedforms-project_0.9.4/precise/tarballs and rename it freemedforms-project_0.9.4.orig.tar.gz

Always download the signature file and verify the integrity of the tarball with

gpg --verify tarball.sig tarball

Check the developers's fingerprints on the download page, through the web of trust or meet them at the next Libre Software Meeting for in-person verification.

quazip

libquazip package doesn't exist for Ubuntu 12.04, quazip needs to be built from the source code (version 0.5.1) inside contrib/libquazip folder

To do: update libquazip source to 0.7.1 and try to build

We need to

  • remove all references to libquazip-dev from precise/trunk/debian/control
  • delete “CONFIG+=dontbuildquazip” flag from precise/tags/0.9.4-1/rules
en/code/prepare_ubuntu.txt · Last modified: 2016/08/23 00:16 by 85.107.235.118