How to build salt backports on Debian squeeze

There were packages of salt 0.10.1 in backports but they were removed, and the only saltstack packages in Debian are now in unstable.

However, building your own backport is quite easy. This assumes you have an up to date Debian squeeze install without any backported saltstack or other packages.

Use a fresh Debian install if you get dependency errors while installing packages, or get rid of everything that's not squeeze.

Alternatively you can try madduck's packages mentioned in https://groups.google.com/forum/?fromgroups=#!starred/salt-users/Q7Q1_Cg4mg4

# As root/with sudo
apt-get install fakeroot build-essential 
python-argparse python-zmq debhelper python-sphinx

echo deb http://backports.debian.org/debian-backports squeeze-backports main >> /etc/apt/sources.list
apt-get update
apt-get install -t squeeze-backports debhelper python-sphinx
# As normal user
git clone https://github.com/saltstack/salt.git
cd salt
git checkout v0.11.1 # or whichever tag you want
make -C doc html # Will be obsolete with salt > 0.11.1
fakeroot debian/rules binary
# To install e.g. the minion, as root:
dpkg -i salt-common*deb salt-minion*deb
apt-get -f install # You might need this twice

Published on Dec. 20, 2012 at 11 a.m. by Nicolas and tagged Debian, backport, saltstack. You can follow the discussion with the comment feed for this post. Feeling generous? Donate!

1 comment

  1. avatar
    wrote this comment on
    Nick,

    FYI:
    I was able to build the 12.0's ok, but I had to do the " make -C doc html" on a clean git install to do so. YOu may want to check both ways.
    Reply to this comment

Start a new thread

Cancel reply
Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.