Sunday 8 April 2007

Leptonica 1.43 in debian

What a load of effort! I've been developing a program using leptonica recently, using the debian package without thinking. Irritatingly, however, debian is at version 1.37 and upstream is at 1.43.

The good news is that the debian diff still works - to get a quick and dirty install (which is all I'm interested in!) do the following:


  1. Download the debian diff from this page.
  2. Patch a copy of the current source (from here) using the command:

    patch <../leptonlib_1.37-1.diff -p1


    from within the directory into which you extracted leptonica.
  3. Make the "debian/rules" file executable:

    chmod 0755 debian/rules

  4. Edit the "debian/docs" file and remove the line with library-notes.txt (it no longer exists in the package)
  5. cd into the debian directory and run the command

    dch -v 1.44-1

    (The dch program is part of the devscripts package)
  6. Finally, make sure a copy of the original 1.43 tar.gz is in the parent directory with the name
    leptonlib_1.43.orig.tar.gz
    and call
    debuild
    from the main source directory. Hopefully, it should compile and you'll have the relevant debfiles in the parent directory from which to install leptonica 1.43!

No comments: