Merge lp:~openarun/ubuntu-packaging-guide/trunk into lp:ubuntu-packaging-guide

Proposed by Arun
Status: Merged
Merged at revision: 722
Proposed branch: lp:~openarun/ubuntu-packaging-guide/trunk
Merge into: lp:ubuntu-packaging-guide
Diff against target: 75 lines (+9/-9)
1 file modified
ubuntu-packaging-guide/setting-up-sbuild.rst (+9/-9)
To merge this branch: bzr merge lp:~openarun/ubuntu-packaging-guide/trunk
Reviewer Review Type Date Requested Status
Dmitry Shachnev Pending
Review via email: mp+434958@code.launchpad.net

Commit message

update setting-up-sbuild to jammy

Description of the change

+ update setting-up-sbuild from bionic to jammy
+ Change command to upgrade the schroot.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ubuntu-packaging-guide/setting-up-sbuild.rst'
--- ubuntu-packaging-guide/setting-up-sbuild.rst 2017-12-21 15:44:46 +0000
+++ ubuntu-packaging-guide/setting-up-sbuild.rst 2022-12-24 19:08:51 +0000
@@ -25,7 +25,7 @@
25 $maintainer_name='Your Name <user@example.org>';25 $maintainer_name='Your Name <user@example.org>';
2626
27 # Default distribution to build.27 # Default distribution to build.
28 $distribution = "bionic";28 $distribution = "jammy";
29 # Build arch-all by default.29 # Build arch-all by default.
30 $build_arch_all = 1;30 $build_arch_all = 1;
3131
@@ -59,13 +59,13 @@
59Generate GPG keypair for sbuild and create chroot for specified release::59Generate GPG keypair for sbuild and create chroot for specified release::
6060
61 $ sbuild-update --keygen61 $ sbuild-update --keygen
62 $ mk-sbuild bionic62 $ mk-sbuild jammy
6363
64This will create chroot for your current architecture. You might want to64This will create chroot for your current architecture. You might want to
65specify another architecture. For this, you can use ``--arch`` option.65specify another architecture. For this, you can use ``--arch`` option.
66Example::66Example::
6767
68 $ mk-sbuild xenial --arch=i38668 $ mk-sbuild jammy --arch=i386
6969
70Using schroot70Using schroot
71=============71=============
@@ -77,7 +77,7 @@
77newly created chroot, but that’s not exactly the reason why you are77newly created chroot, but that’s not exactly the reason why you are
78using sbuild::78using sbuild::
7979
80 $ schroot -c bionic-amd64 -u root80 $ schroot -c jammy-amd64 -u root
8181
82Using schroot for package building82Using schroot for package building
83----------------------------------83----------------------------------
@@ -93,17 +93,17 @@
93 dpkg-source --commit93 dpkg-source --commit
94 dch -i #94 dch -i #
95 update-maintainer # changes95 update-maintainer # changes
96 sbuild -d bionic-amd6496 sbuild -d jammy-amd64
9797
98To build package from source package (``.dsc``), use location of the98To build package from source package (``.dsc``), use location of the
99source package as second parameter::99source package as second parameter::
100100
101 sbuild -d bionic-amd64 ~/packages/goodbye_*.dsc101 sbuild -d jammy-amd64 ~/packages/goodbye_*.dsc
102102
103To make use of all power of your CPU, you can specify number of threads103To make use of all power of your CPU, you can specify number of threads
104used for building using standard ``-j<threads>``::104used for building using standard ``-j<threads>``::
105105
106 sbuild -d bionic-amd64 -j8106 sbuild -d jammy-amd64 -j8
107107
108Maintaining schroots108Maintaining schroots
109====================109====================
@@ -116,14 +116,14 @@
116recommended, but if you have specific reason, you can open it using116recommended, but if you have specific reason, you can open it using
117something like::117something like::
118118
119 $ schroot -c source:bionic-amd64119 $ schroot -c source:jammy-amd64
120120
121Updating schroots121Updating schroots
122-----------------122-----------------
123123
124To upgrade the whole schroot::124To upgrade the whole schroot::
125125
126 $ sbuild-update -ubc bionic-amd64126 $ sudo sbuild-update -udcar jammy-amd64
127127
128Expiring active schroots128Expiring active schroots
129------------------------129------------------------

Subscribers

People subscribed via source and target branches