ReleaseEngineering/How To/Update Mercurial: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "Mercurial is one of our core binaries that we need to install everywhere. ==Philosophy== We install Mercurial into ''/tools/python27-mercurial/'' everywhere* (* - On windows...")
 
No edit summary
Line 66: Line 66:
** Edit the spec file to account for them and retry subsequent steps, you'll need to carry these spec file changes over into the [[#Creating the puppet patch|Puppet Section]] of the work.
** Edit the spec file to account for them and retry subsequent steps, you'll need to carry these spec file changes over into the [[#Creating the puppet patch|Puppet Section]] of the work.
* scp the files in output to somewhere local, in prep for the [[#Deploy to PuppetAgain]] Section
* scp the files in output to somewhere local, in prep for the [[#Deploy to PuppetAgain]] Section
* Halt the system (avoids need for aws console)
sudo su -
users # Check for other logged in users first, be nice!
halt
=== Ubuntu ===
==== Precise (12.04) ====
<small>(This is an informative description of [[ReleaseEngineering/PuppetAgain/HowTo/Build_DEBs|The PuppetAgain How to Build DEBs]])</small>
* In <code>us-east</code> '''AWS console''' find and start <code>ubuntu64packager1.srv.releng.use1.mozilla.com</code>
* Connect
USER=`whomai`
ssh $USER@ubuntu64packager1.srv.releng.use1.mozilla.com
* Get old from repo
NEWHGVER=4.0  # Set this appropriately
OLDHGVER=3.2.1
PUPPETAGAIN=http://puppetagain.pub.build.mozilla.org
HGREPO=data/repos/apt/custom/mozilla-mercurial/pool/precise
mkdir old
wget $PUPPETAGAIN/$HGREPO/mozilla-python27-mercurial_3.2.1.debian.tar.gz
cd old
tar -xzf ../mozilla-python27-mercurial_3.2.1.debian.tar.gz 
cd ..
* Get old deb folder from puppet
hg clone https://hg.mozilla.org/build/puppet repo-puppet
cp -r puppet/modules/packages/manifests/mozilla/mozilla-python27-mercurial-debian ./
* Check for surprising differences
diff -r ./mozilla-python27-mercurial-debian/ old/debian/
* Edit changelog (adding new entry)
** '''Note''' DEB Changelogs follow a specific format, add to top, match the one below yours.
EDITOR=vim
$EDITOR ./mozilla-python27-mercurial-debian/changelog
* Get the new .tar.gz from selenic (and make sure its named correctly post-download)
wget http://mercurial.selenic.com/release/mercurial-$NEWHGVER.tar.gz -O mozilla-python27-mercurial_$HGNEWVER.orig.tar.gz
* Build it
puppetagain-build-deb precise amd64 mozilla-python27-mercurial-debian
puppetagain-build-deb precise i386 mozilla-python27-mercurial-debian
* Copy the artifacts out
cp /tmp/mozilla-python27-mercurial-precise-amd64/* output/
cp /tmp/mozilla-python27-mercurial-precise-i386/* output/
* scp the files in output to somewhere local, in prep for the [[#Deploy to PuppetAgain]] Section
* copy out any/all changes you have made to the puppet deb directory (the changelog edit above) - You'll include that with your puppet patch.
* Halt the system (avoids need for aws console)
* Halt the system (avoids need for aws console)
  sudo su -
  sudo su -
  users # Check for other logged in users first, be nice!
  users # Check for other logged in users first, be nice!
  halt
  halt
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
1,529

edits

Navigation menu