Backport git 1.6 for debian

git 1.6 is available in debian experimental. I want to use it under debian stable (etch).

Let's backport it.

Kudos to Steve Kemp for walking me through this.

First you need dget installed:

aptitude install devscripts

Now - let's grab the experimental source and unpack it:

dget http://ftp.de.debian.org/debian/pool/main/g/git-core/git-core_1.6.0.6-1.dsc dpkg-source -x *.dsc

Let's take a look - change into the directory:

cd git-core_1.6.0.6

We need to make a couple of small changes.

Edit debian/changelog.

On the top line I changed experimental to stable and added -chris-1 to the version (I do not want my deb to cause issues when updates to debian mean that I'm going to get a real 1.6 git deb).

Edit debian/control.

Look for the Build-depends line. Remove the versions from asciidoc and docbook-xsl - and change tcl from 8.5 to 8.4 - I ended up with:

Build-Depends: libz-dev, libcurl4-gnutls-dev | libcurl3-gnutls-dev, asciidoc, xmlto, docbook-xsl,

libexpat1-dev, subversion, libsvn-perl | libsvn-core-perl, unzip, tcl8.4, gettext, cvs, cvsps,

libdbd-sqlite3-perl

Now let's build

debuild -sa

It will complain about missing .orig files in the parent dir (since we changed the version numbers). Say yes to continue. It will complain about missing deps (unless you have them all) I had to run:

sudo aptitude install libcurl3-gnutls-dev asciidoc xmlto docbook-xsl libexpat1-dev libsvn-perl cvsps libdbd-sqlite3-perl

Build again

debuild -sa

It will complain about missing .orig files in the parent dir (since we changed the version numbers). Say yes to continue. The build starts. And it runs tests. Lots and lots and lots of tests (good eh?).

At the end I got some signing errors - I don't have a key matching the e-mail address in the changelog file. The deb's are already created at this point.

Issues

  • git-daemon-run requires a later version of runit - I haven't looked at this as I don't use git-daemon-run
  • None of the gui apps work as I don't have the correct tk installed (this is a server - I don't need the gui apps - so I haven't looked at this either)

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].
  • Replace [debbug:xxxxx] with a link to the relevant debian bug. xxxxxx can be a bug id, package, or any of several others - see http://www.debian.org/Bugs/ and scroll down to the list of URL forms for other examples.
  • You may link to Gallery2 items on this site using a special syntax.
  • Insert Google Map macro.
  • Images can be added to this post.
  • You can link nodes to other nodes using the following syntax:
    [node:node_id,title="val2"]

More information about formatting options