<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Courier New, Courier, monospace"></font><tt><br>
    </tt><tt>This is how building for Ubuntu should work, using the "deb
      packager" si</tt><tt>gning </tt><tt>key, but when I tried it, the
      uploaded files disappeared into a black hole.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Note that I've already built 3.7.4 in Launchpad using my
      own </tt><tt>signing key.</tt><font face="Courier New, Courier,
      monospace"><br>
      <br>
    </font><tt>pre-requisite: github commit privs in </tt><tt><a
        moz-do-not-send="true" class="moz-txt-link-freetext"
        href="https://github.com/gluster/glusterfs-debian"><a class="moz-txt-link-freetext" href="https://github.com/gluster/glusterfs-debian">https://github.com/gluster/glusterfs-debian</a></a></tt>
    <div class="moz-forward-container">
      <pre><font face="Courier New, Courier, monospace">There are four Debian/Ubuntu VMs running in the lab:</font></pre>
      <ul>
        <li>
          <pre><font face="Courier New, Courier, monospace"> debian 7 (wheezy) rhs-vm-12.gdev.lab.eng.bos.redhat.com</font></pre>
        </li>
        <li>
          <pre><font face="Courier New, Courier, monospace"> debian 8 (jessie) rhs-vm-13.gdev.lab.eng.bos.redhat.com</font></pre>
        </li>
        <li>
          <pre><font face="Courier New, Courier, monospace"> debian 9 (stretch) rhs-vm-16.gdev.lab.eng.bos.redhat.com</font></pre>
        </li>
        <li>
          <pre><font face="Courier New, Courier, monospace"> ubuntu 14.04 LTS (trusty) rhs-vm-17.gdev.lab.eng.bos.redhat.com</font></pre>
        </li>
      </ul>
      <pre><font face="Courier New, Courier, monospace">If you're not already subscribed to <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:packaging@gluster.org">packaging@gluster.org</a>, subscribe soon.
</font></pre>
      <pre class="moz-signature" cols="72"><pre><font face="Courier New, Courier, monospace">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 <font color="#009900"><font color="#000000">3.7 for Trusty and Utopic.)</font>

% ssh rhs-vm-17.gdev.lab.eng.bos.redhat.com</font></font></pre><pre><font face="Courier New, Courier, monospace">%if $first-time</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % mkdir -p src/github</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % cd src/github</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % git clone <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:git@github.com:gluster/glusterfs-debian.git">git@github.com:gluster/glusterfs-debian.git</a></font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % cd glusterfs-debian</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % git checkout -b trusty-glusterfs-3.7 origin/trusty-glusterfs-3.7</font></pre><pre><font face="Courier New, Courier, monospace">%else</font></pre><pre><font face="Courier New, Courie!
 r, monospa
ce" color="#009900">rhs-vm-17 % cd src/github/glusterfs-debian</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % git checkout trusty-glusterfs-3.7</font></pre><pre><font face="Courier New, Courier, monospace">%endif</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % cd debian</font></pre><pre><font face="Courier New, Courier, monospace">Edit 'changelog' file. Edit other files as necessary. Most likely is to edit 'control' to add or chang
e Build-Depends: or 
Depends:.</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % sudo su glusterpackager</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">rhs-vm-17 % cd</font></pre><font face="Courier New, Courier, monospace">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.</font><pre><font face="Courier New, Courier, monospace" color="#009900">glusterpackager@rhs-vm-17:~$ SERIES=3.7</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">glusterpackager@rhs-vm-17:~$ VERSION=3.6.7</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">glusterpackager@rhs-vm-17:~$ RELEASE=1</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">glusterpackager@rhs-vm-17:~$ mkdir build packages glusterfs-${VERSION}-${RELEASE}-trusty</font></pre><pre><font face="Courier New, Courier, monospace" col!
 or="#00990
0">glusterpackager@rhs-vm-17:~$ cd ~/build</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">glusterpackager@rhs-vm-17:~/build$ wget <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://download.gluster.org/pub/gluster/glusterfs/$">http://download.gluster.org/pub/gluster/glusterfs/$</a>{SERIES}/${VERSION}/glusterfs-${VERSION}
.tar.gz</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">glusterpackager@rhs-vm-17:~/build$ ln -s glusterfs-${VERSION}.tar.gz glusterfs_${VERSION}.orig.tar.gz</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900">glusterpackager@rhs-vm-17:~/build$ tar xzf glusterfs-${VERSION}.tar.gz</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900"><font color="#009900">glusterpackager@rhs-vm-17:~/build$ cd glusterfs-${VERSION}</font></font></pre><pre><font face="Courier New, Courier, monospace" color="#009900"><font color="#009900"><a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:glusterpackager@rhs-vm-13:%7E/build/glusterfs-3.6.5$">glusterpackager@rhs-vm-1<font color="#009900">7</font>:~/build/glusterfs-3.6.5$</a> cp -a ~$yourusername/src/github/glusterfs-debian/debian .</font></font></pre><pre><font face="Courier New, Courier, monospace">Note: you might double check before proceeding th!
 at debian/
changelog has the changes you made.</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900"><font color="#000000">Now build the .source_changes file. You will need the deb.packages signing key passphrase from ~glusterpackager
/README. Do not share th</font>e passphrase with anyone. You can cut-and-paste here:</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900"><font color="#009900"><a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:glusterpackager@rhs-vm-13:%7E/build/glusterfs-3.6.5$">glusterpackager@rhs-vm-1<font color="#009900">7</font>:~/build/glusterfs-3.6.5$</a> debuild -S -sa -kF45ADF1C</font></font></pre><pre><font face="Courier New, Courier, monospace">Enter the passphrase twice when prompted.</font></pre><pre><font face="Courier New, Courier, monospace" color="#009900"><font color="#009900"><a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:glusterpackager@r%0Ahs-vm-13:%7E/build/glusterfs-3.6.5$">glusterpackager@rhs-vm-1<font color="#009900">7</font>:~/build/glusterfs-3.6.5$</a> cd ..</font></font></pre><font face="Courier New, Courier, monospace" color="#009900"><font color="#009900"><font color="#000000">Upload the sou!
 rce.change
s file to Launchpad</font></font></font><font face="Courier New, Courier, monospace" color="#009900"><font color="#009900">

<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:glusterpackager@r%0Ahs-vm-13:%7E/build/glusterfs-3.6.5$">glusterpackager@rhs-vm-1<font color="#009900">7</font>:~/build/<font color="#009900">$</font></a> </font>dput ppa:gluster/glusterfs-3.7 glusterfs_3.7.4-ubuntu1~precise1_source.changes</font><font face="Courier New, Courier, monospace">

<font color="#009900"><font color="#009900"><a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:glusterpackager@r%0Ahs-vm-13:%7E/build/glusterfs-3.6.5$">glusterpackager@rhs-vm-1<font color="#009900">7</font>:~/build/$</a></font> cd ..</font>

<font color="#009900"><font color="#009900">glusterpackager@rhs-vm-17:~$ mv build packages glusterfs-${VERSION}-${RELEASE}-trusty

<font color="#000000">That's it. 

If you have any questions, don't hesitate to ask.

</font></font>-- 

Kaleb
</font></font></pre>
      <font face="Courier New, Courier, monospace" color="#009900"> </font><font
        face="Courier New, Courier, monospace"><br>
      </font> </div>
    <font face="Courier New, Courier, monospace"> <br>
    </font>
  </body>
</html>