/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to SCM/packaging/deb/ubuntu.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Fixing Ubuntu Packages
 
2
======================
 
3
1. Get package with (instead of ubuntu, the other launchpad ppa's may be used)
 
4
    bzr get lp:ubuntu/vte3
 
5
 alternatively dpkg may be used to fetch source package, but this will prevent
 
6
 from bzr-based upstream synchronization in the future:
 
7
    apt-get source vte3
 
8
    
 
9
2. Apply patches, etc.
 
10
 
 
11
3. Add entry into the debian/changelog. The format is important. The changelog
 
12
 is parsed and the used as version of the builded app. As well, the specified
 
13
 author along with e-mail will be used to find the gpg key to sign the bulded
 
14
 packages. With 14.04 there is a bug processing keys with added identities. 
 
15
 The email of secret key (gpg --list-secret-keys) should be specified.
 
16
 
 
17
4. Despit the sources are already downloaded from bazaar, it is necessary to
 
18
 fetch the original source tarball as well
 
19
    bzr builddeb -e
 
20
 
 
21
5. Commit changes and generate the patch against the original tarball. The
 
22
 patch will be saved under debian/patches and registered in the series.
 
23
    dpkg-source --commit
 
24
 
 
25
6. Fetch all dependencies
 
26
    apt-get build-dep <package>
 
27
 
 
28
6. Add the generated patch into the bazaar (along with other stuff) and commit
 
29
 changes to bazar.
 
30
    bzr add; bzr commit -m "my fix" 
 
31
 
 
32
7. Build the packages. The original source will be extracted, all patches from
 
33
 the debian/patches will be applied and build process will start.
 
34
    bzr builddeb
 
35
 or if building non-bzr package use:
 
36
    debuild -us -uc -b
 
37
 
 
38
 
 
39
New Packages
 
40
============
 
41
    Check: bzr dh-make
 
42
 
 
43
Repositories
 
44
============
 
45
    Check: dput and builddeb -S generating the source packages
 
46
    
 
47
More Scenarios
 
48
==============