Tags:
create new tag
view all tags

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)

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.

Locally Built Packages

To get access to the locally built packages add an lcfg.sources file into the /etc/apt/sources.list.d directory which contains the following:

# Source 'local'
Types: deb deb-src
URIs: http://test.pkgs.inf.ed.ac.uk/ubuntu/disco
Suites: inf-disco
Components: world uoe inf
Trusted: yes

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

Topic revision: r1 - 2019-06-19 - squinney
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback