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/07 02:03] – [Push to oar-ftp] neyron | wiki:debian_packaging [2021/03/31 13:35] – [Sync the files with the oar-ftp machine] neyron | ||
---|---|---|---|
Line 87: | Line 87: | ||
<code bash> | <code bash> | ||
$ cd .. | $ cd .. | ||
- | $ export OAR_DIR=$PWD OAR_FTP=oar-ftp.lig | + | $ export OAR_DIR=${PWD# |
$ rsync -avz --delete build-area tarballs $OAR_FTP: | $ rsync -avz --delete build-area tarballs $OAR_FTP: | ||
</ | </ | ||
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 and ppc64el: | ||
+ | oar-ftp$ sudo sbuild-update source: | ||
+ | oar-ftp$ sudo sbuild-update source: | ||
+ | # Then build: | ||
oar-ftp$ cd $OAR_DIR/ | oar-ftp$ cd $OAR_DIR/ | ||
# amd64 and sources packages: | # 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 | ||
- | # arm64 packages: | + | # Other arch ? arm64 and ppc64el binary |
oar-ftp$ sbuild -A -d $OAR_CHROOT --arch arm64 --debbuildopts "-uc -us" oar_$OAR_VERSION.dsc | oar-ftp$ sbuild -A -d $OAR_CHROOT --arch arm64 --debbuildopts "-uc -us" oar_$OAR_VERSION.dsc | ||
+ | oar-ftp$ sbuild -A -d $OAR_CHROOT --arch ppc64el --debbuildopts "-uc -us" oar_$OAR_VERSION.dsc | ||
oar-ftp$ logout | oar-ftp$ logout | ||
</ | </ | ||
Line 120: | Line 126: | ||
<code bash> | <code bash> | ||
- | # 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 | ||
+ | # or for multi-arch: | ||
+ | $ mergechanges -f oar_${OAR_VERSION}_*.changes | ||
$ debsign oar_${OAR_VERSION}_multi.changes | $ debsign oar_${OAR_VERSION}_multi.changes | ||
</ | </ | ||
Line 146: | Line 153: | ||
<code bash> | <code bash> | ||
+ | $ cd ../ | ||
+ | # Or if multi-arch: | ||
$ cd ../ | $ cd ../ | ||
</ | </ |