Building Packages for Ubuntu
We're working with Ubuntu 19.04 disco dingo, we will move onto 19.10 eoan ermine with an aim to finally settle on the next LTS (20.04 something beginning with f)
Useful Resources
The Debian perl team has some useful tips on
using debhelper
.
Build Dependencies
At the very least you will need the following packages installed:
build-essential
devscripts
debhelper
cmake
subversion
svn2cl
If you're an emacs user then you might want to also include
devscripts-el
.
For packaging Perl modules the
dh-make-perl
package is also very useful.
If you need to patch an existing package then the
quilt
tool is extremely useful.
Locally Built Packages
To get access to the locally built packages you need to add an
lcfg.sources
file - for details see
PackageRepositories
Submitting Packages
Packages are submitted into the local repository via AFS using the
dput
tool. Add a
~/.dput.cf
file into your home directory with the following contents:
[inf-ubuntu-bionic]
method = local
incoming = /afs/.inf.ed.ac.uk/pkgs/incoming/ubuntu/bionic
allow_unsigned_uploads = 1
[inf-ubuntu-cosmic]
method = local
incoming = /afs/.inf.ed.ac.uk/pkgs/incoming/ubuntu/cosmic
allow_unsigned_uploads = 1
[inf-ubuntu-disco]
method = local
incoming = /afs/.inf.ed.ac.uk/pkgs/incoming/ubuntu/disco
allow_unsigned_uploads = 1
[inf-debian-sid]
method = local
incoming = /afs/.inf.ed.ac.uk/pkgs/incoming/debian/sid
allow_unsigned_uploads = 1
[inf-debian-buster]
method = local
incoming = /afs/.inf.ed.ac.uk/pkgs/incoming/debian/buster
allow_unsigned_uploads = 1
[inf-debian-stretch]
method = local
incoming = /afs/.inf.ed.ac.uk/pkgs/incoming/debian/stretch
allow_unsigned_uploads = 1
A number of files must be submitted for each package but this is simplified by just submitting the
.changes
file which is generated when a package is built, e.g.
cd ~/lcfgbuild/LCFG-Build-Tools-0.9.27/
dput inf-ubuntu-disco lcfg-build-tools_0.9.27-1_amd64.changes
--
squinney - 2019-06-19
- dput.cf: dput.cf file for Informatics package service