Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
wiki:debian_packaging [2018/06/25 11:05] – [Build for jessie backports] neyronwiki:debian_packaging [2019/11/07 02:02] – [Verify and sign the generated packages] neyron
Line 96: Line 96:
  
 <code bash> <code bash>
-$ export OAR_VERSION=$(head -n1 oar/debian/changelog |sed -e 's/^.\+(\(.\+\)).\+$/\1/') && echo $OAR_VERSION +$ export OAR_VERSION=$(head -n1 oar/debian/changelog |sed -e 's/^.\+(\(.\+\)).\+$/\1/') && echo "export OAR_VERSION=$OAR_VERSION" 
-$ export OAR_CHROOT=$(head -n1 oar/debian/changelog |sed -e 's/^.\+)\s\+\([^\;]\+\);.\+$/\1/') && echo $OAR_CHROOT+$ export OAR_CHROOT=$(head -n1 oar/debian/changelog |sed -e 's/^.\+)\s\+\([^\;]\+\);.\+$/\1/') && echo "export OAR_CHROOT=$OAR_CHROOT"
 # 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_CHROOT && sudo sbuild-update --upgrade source:$OAR_CHROOT oar-ftp$ sudo sbuild-update source:$OAR_CHROOT && sudo sbuild-update --upgrade source:$OAR_CHROOT
 oar-ftp$ cd $OAR_DIR/build-area oar-ftp$ cd $OAR_DIR/build-area
 +# 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 $OTHER_ARCH --debbuildopts "-uc -us" oar_$OAR_VERSION.dsc+arm64 packages: 
 +oar-ftp$ sbuild -A -d $OAR_CHROOT --arch arm64 --debbuildopts "-uc -us" oar_$OAR_VERSION.dsc
 oar-ftp$ logout oar-ftp$ logout
 </code> </code>
Line 118: Line 120:
  
 <code bash> <code bash>
-if multi-arch: mergechanges -f oar_${OAR_VERSION}_*.changes; then replace amd64 by multi, below.+for multi-arch: 
 +mergechanges -f oar_${OAR_VERSION}_*.changes
 # update lintian # update lintian
 $ sudo apt-get update && sudo apt-get install -t sid lintian $ sudo apt-get update && sudo apt-get install -t sid lintian
 $ cd build-area $ cd build-area
 $ lintian --pedantic -I -i oar_${OAR_VERSION}_amd64.changes $ lintian --pedantic -I -i oar_${OAR_VERSION}_amd64.changes
-$ debsign oar_${OAR_VERSION}_amd64.changes+$ debsign oar_${OAR_VERSION}_multi.changes
 </code> </code>
  
Line 148: Line 151:
 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 backports =====+===== Build for backports distributions =====
  
-Beforehand we configure ''dpkg-mergechangelogs'' to ease the debian changelog file merge. See the manual of ''dpkg-mergechangelogs'' which explains the setup.+Beforehandconfigure ''dpkg-mergechangelogs'' to ease the debian changelog file merge. See the manual of ''dpkg-mergechangelogs'' which explains the setup.
  
-Checkout the bpo branch and merge the commit tag of the debian/2.5 branch:+Checkout the bpo branch for the target distribution: 
 +  * for stretch: debian/2.5_bpo9 → deb version suffix~bpo9+N 
 +  * for jessie: debian/2.5_bpo8 → deb version suffix: ~bpo8+N 
 +  * for wheezy: debian/2.5_bpo70 → deb version suffix: ~bpo70+N 
 + 
 +In the following, we take as example a build for jessie backports.
 <code bash> <code bash>
 $ git checkout debian/2.5_bpo8 $ git checkout debian/2.5_bpo8
 +</code>
 +
 +Merge the commit tag for the packaging of the debian/2.5 branch:
 +<code bash>
 $ git merge debian/2.5.5-1 $ git merge debian/2.5.5-1
 </code> </code>
  
 Fix the conflicts: Fix the conflicts:
-  * fix any issues due to differences between sid and the older backport distribution +  * fix any issues due to differences between sid and the older backports distribution 
   * 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 ''mergechanges'' tool   * or use the ''mergechanges'' tool
Line 168: Line 180:
 </code> </code>
  
-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 is not good -> ~bpo8-N for jessie backports+# adapt the version if not good -> ~bpo8-N for jessie backports (see above)
 $ debcommit -a $ debcommit -a
 </code> </code>
Line 188: Line 200:
 </code> </code>
  
-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 (respstretch-backports_beta for bpo9 packages and wheezy-backports_beta for bpo70 packages).
- +
-===== Build for wheezy (backports=====+
  
-Same as for jessie backports, except: 
-  * use the debian/2.5_bpo70 branch 
-  * 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 ======
wiki/debian_packaging.txt · Last modified: 2021/06/29 10:24 by snoir
Recent changes RSS feed GNU Free Documentation License 1.3 Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki