[gluster-packaging] Fwd: packaging for Debian and Ubuntu

Kaleb S. KEITHLEY kkeithle at redhat.com
Wed Sep 16 17:04:05 UTC 2015


Updated instructions for building GlusterFS for Ubuntu Launchpad PPAs —
this recipe works.

Remember that currently we build the following permutations:

         3.5.x  3.6.x  3.7.x
precise:   X      X
trusty:    X      X      X
vivid:            X      X

precise is too old for 3.7. 3.5.x is too old for vivid.

vivid will be replaced by wily after its release at the end of October.

>
> Note that I've already built 3.7.4 and 3.5.6 in Launchpad using my own signing key.
> 
> pre-requisite: github commit privs in
> https://github.com/gluster/glusterfs-debian
> 
> There are four Debian/Ubuntu VMs running in the lab:
>
> ... 
>
>   * ubuntu 14.04 LTS (trusty) rhs-vm-17.gdev.lab.eng.bos.redhat.com
> 
> If you're not already subscribed to packaging at gluster.org, subscribe soon.
> 
> Sign on as root (usual lab machine password, if you don't know it, ask
> someone, including me. ;-)). Create your own user account. Add yourself
> to group wheel to give yourself passwordless sudo. Unfortunately these
> are internal Red Hat machines so only Red Hat employees will be able to
> build. This recipe will go through building 3.7.4 for Ubuntu Trusty.
> (Precise is too old for 3.7.x, Utopic is obsolete, we only build for 3.7
> for Trusty and Utopic.) 
>
> $ssh rhs-vm-17.gdev.lab.eng.bos.redhat.com
> 
> %if $first-time
> 
> rhs-vm-17 % mkdir -p src/github
> 
> rhs-vm-17 % cd src/github
> 
> rhs-vm-17 % git clone git at github.com:gluster/glusterfs-debian.git
> 
> rhs-vm-17 % cd glusterfs-debian
> 
> rhs-vm-17 % git checkout -b trusty-glusterfs-3.7 origin/trusty-glusterfs-3.7
> 
> %else
> 
> rhs-vm-17 % cd src/github/glusterfs-debian
> 
> rhs-vm-17 % git checkout trusty-glusterfs-3.7
> 
> %endif
> 
> rhs-vm-17 % cd debian
> 
> Edit 'changelog' file. Edit other files as necessary. Most likely is to
> edit 'control' to add or chang e Build-Depends: or Depends:.
> 
> rhs-vm-17 % sudo su glusterpackager
> 
> rhs-vm-17 % cd
> 
> You can mostly cut-and-paste from the HOWTO into the xterm. There are a
> few steps in the HOWTO that we don't do any more. See below.
> 
> glusterpackager at rhs-vm-17:~$ SERIES=3.7
> 
> glusterpackager at rhs-vm-17:~$ VERSION=3.7.4
> 
> glusterpackager at rhs-vm-17:~$ RELEASE=1
> 
> glusterpackager at rhs-vm-17:~$ mkdir build glusterfs-${VERSION}-${RELEASE}-trusty
> 
> glusterpackager at rhs-vm-17:~$ cd ~/build
> 
> glusterpackager at rhs-vm-17:~/build$ wget http://download.gluster.org/pub/gluster/glusterfs/${SERIES}/${VERSION}/glusterfs-${VERSION}.tar.gz
> 
> glusterpackager at rhs-vm-17:~/build$ ln -s glusterfs-${VERSION}.tar.gz glusterfs_${VERSION}.orig.tar.gz
>
> glusterpackager at rhs-vm-17:~/build$ tar xzf glusterfs-${VERSION}.tar.gz
> 
> glusterpackager at rhs-vm-17:~/build$ cd glusterfs-${VERSION}
> 
> glusterpackager at rhs-vm-17:~/build/glusterfs-3.6.5$ cp -a ~$yourusername/src/github/glusterfs-debian/debian .
> 
> Note: you might double check before proceeding that debian/changelog
> has the changes you made.
> 
> Now build the .source_changes file.
> 
> glusterpackager at rhs-vm-17:~/build/glusterfs-3.6.5$ debuild -S -sa -k4F5B5CA5
> 
> Note: no passphrase is required
> 
> glusterpackager at rhs-vm-17:~/build/glusterfs-3.6.5$ cd ..
> 
> Upload the source.changes file to Launchpad
>
> glusterpackager at rhs-vm-17:~/build/$ dput ppa:gluster/glusterfs-3.7 glusterfs_3.7.4-ubuntu1~trusty1_source.changes
>
> glusterpackager at rhs-vm-17:~/build/$ cd .. 
>
> glusterpackager at rhs-vm-17:~$ mv build glusterfs-${VERSION}-${RELEASE}-trusty 
>
> That's it. Check https://launchpad.net/~gluster to confirm that the upload worked.
>
> If you have any questions, don't hesitate to ask.

-- 

Kaleb


More information about the packaging mailing list