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 [2019/11/06 19:51] – [Build the binary packages] neyron | wiki:debian_packaging [2020/02/26 17:47] – [Build the binary packages] neyron | ||
---|---|---|---|
Line 100: | Line 100: | ||
# 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 | ||
+ | # First update the build chroots | ||
oar-ftp$ sudo sbuild-update source: | oar-ftp$ sudo sbuild-update source: | ||
+ | # Other arch? arm64: | ||
+ | oar-ftp$ sudo sbuild-update source: | ||
+ | # Then build: | ||
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 | + | # Other arch ? arm64 packages: |
+ | oar-ftp$ | ||
oar-ftp$ logout | oar-ftp$ logout | ||
</ | </ | ||
Line 118: | Line 124: | ||
<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 |
</ | </ | ||
Line 143: | Line 150: | ||
<code bash> | <code bash> | ||
- | $ cd ../ | + | $ cd ../ |
</ | </ | ||