This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
wiki:debian_packaging [2018/06/25 11:05] – [Build for jessie backports] neyron | wiki:debian_packaging [2019/11/07 02:01] – [Build the binary packages] neyron | ||
---|---|---|---|
Line 96: | Line 96: | ||
<code bash> | <code bash> | ||
- | $ export OAR_VERSION=$(head -n1 oar/ | + | $ export OAR_VERSION=$(head -n1 oar/ |
- | $ export OAR_CHROOT=$(head -n1 oar/ | + | $ export OAR_CHROOT=$(head -n1 oar/ |
# oar-ftp sshd accepts env variables OAR_* | # oar-ftp sshd accepts env variables OAR_* | ||
$ ssh $OAR_FTP -o SendEnv=OAR_VERSION -o SendEnv=OAR_DIR -o SendEnv=OAR_CHROOT | $ ssh $OAR_FTP -o SendEnv=OAR_VERSION -o SendEnv=OAR_DIR -o SendEnv=OAR_CHROOT | ||
oar-ftp$ sudo sbuild-update source: | oar-ftp$ sudo sbuild-update source: | ||
oar-ftp$ cd $OAR_DIR/ | oar-ftp$ cd $OAR_DIR/ | ||
+ | # amd64 and sources packages: | ||
oar-ftp$ sbuild -As -d $OAR_CHROOT --arch amd64 --debbuildopts "-uc -us" oar_$OAR_VERSION.dsc | oar-ftp$ sbuild -As -d $OAR_CHROOT --arch amd64 --debbuildopts "-uc -us" oar_$OAR_VERSION.dsc | ||
- | # if multi-arch: sbuild -d $OAR_CHROOT --arch | + | # arm64 packages: |
+ | sbuild | ||
oar-ftp$ logout | oar-ftp$ logout | ||
</ | </ | ||
Line 148: | Line 150: | ||
Packages will go to the sid_alpha distribution if in the UNRELEASED state, or to sid_beta distribution if in the unstable state (see dch) | Packages will go to the sid_alpha distribution if in the UNRELEASED state, or to sid_beta distribution if in the unstable state (see dch) | ||
- | ===== Build for jessie | + | ===== Build for backports |
- | Beforehand | + | Beforehand, configure '' |
- | Checkout the bpo branch | + | Checkout the bpo branch |
+ | * for stretch: | ||
+ | * for jessie: debian/ | ||
+ | * for wheezy: debian/ | ||
+ | |||
+ | In the following, we take as example a build for jessie backports. | ||
<code bash> | <code bash> | ||
$ git checkout debian/ | $ git checkout debian/ | ||
+ | </ | ||
+ | |||
+ | Merge the commit tag for the packaging of the debian/2.5 branch: | ||
+ | <code bash> | ||
$ git merge debian/ | $ git merge debian/ | ||
</ | </ | ||
Fix the conflicts: | Fix the conflicts: | ||
- | * fix any issues due to differences between sid and the older backport | + | * fix any issues due to differences between sid and the older backports |
* move the changelog: put everything chronologically ! (no remove, just re-order) | * move the changelog: put everything chronologically ! (no remove, just re-order) | ||
* or use the '' | * or use the '' | ||
Line 168: | Line 179: | ||
</ | </ | ||
- | Add the new changelog entry for the new backport, and commit | + | Add the new changelog entry for the new backports, and commit |
<code bash> | <code bash> | ||
$ dch --bpo | $ dch --bpo | ||
- | # adapt the version | + | # adapt the version |
$ debcommit -a | $ debcommit -a | ||
</ | </ | ||
Line 188: | Line 199: | ||
</ | </ | ||
- | And finally dput just as with sid, the backported version should now show up in the jessie_backports_beta distribution of oar-ftp. | + | And finally dput just as with sid, the backported version should now show up in the jessie_backports_beta distribution of oar-ftp |
- | + | ||
- | ===== Build for wheezy | + | |
- | Same as for jessie backports, except: | ||
- | * use the debian/ | ||
- | * version should be suffiex with ~bpo70+N instead of ~bpo8+N | ||
- | * use the wheezy-backports chroot. | ||
- | * the target distribution is wheezy_backports_beta | ||
====== Push the packages to Debian official repositories ====== | ====== Push the packages to Debian official repositories ====== |