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/26 20:59] neyronwiki:debian_packaging [2019/11/07 02:03] – [Push to oar-ftp] 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 143: Line 146:
  
 <code bash> <code bash>
-$ cd ../build-area && dput oar_${OAR_VERSION}_amd64.changes+$ cd ../build-area && dput oar_${OAR_VERSION}_multi.changes
 </code> </code>
  
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