How to install bzr on RPM-based distribution

I have used Bazaar-NG aka bzr for a month. It works well and I like it so much because I don’t need to have network to commit my change. The installer for win32-based system works perfectly on my laptop. Unfortunately, there is no official bzr distributed in RPM. I have to build it myself. This action is terrible for me because bzr requires at least Python 2.4. Below are my step to successfully install bzr on Fedora Core 1 i386 and CentOS 4.2 x86_64.

  1. Build Python 2.4. You might need to modify python-2.4.spec to fix incorrect changelog. In addition, you have to apply 3 patches to build on x86_64.
  2. Install Python 2.4.
  3. Build bzr 0.8.2. Just simply run given setup.py with python2.4 interpreter and option --python=python2.4. You might need to comment out bzr.1 to ignore missing tools for generating man.
  4. Install bzr 0.8.2.
  5. Build paramiko 1.6.
  6. Install paramiko 1.6.
  7. Build pycrypto 2.0.1.
  8. Install pycrypto 2.0.1.

So now your bzr should fully support sftp transport.

Technorati Tags: , , , , , ,

Post new comment