[GLLUG] Tied up in Quilt

Philip Hands phil at hands.com
Thu Mar 5 19:38:15 UTC 2015


Chris Bell <chrisbell at chrisbell.org.uk> writes:

...
> I assume that I am making a mistake somewhere, and it is not a problem in 
> quilt.

Well, I'd have started out by:

  Making sure that I had this in my /etc/sources.list:

    deb-src http://ftp.uk.debian.org/debian unstable main

  Then, assuming I've done an 'apt-get update' recently, do:

    mkdir -p ~/src/zoneminder && cd ~/src/zoneminder
    # I like to have a working directory to remove when I'm done

    apt-get source zoneminder
    # which grabs the source and unpacks it

    wget -O zoneminder_1.28.1.orig.tar.gz https://github.com/ZoneMinder/ZoneMinder/archive/v1.28.1.tar.gz
    # get the new source, and give it a debian-style tarball name

    cd zoneminder-1.26.5
    # we're now in the old source

    uupdate ../zoneminder_1.28.1.orig.tar.gz
    # that unpacks the new source and tries to apply the debian patch to
    # it, which in this case means just populating the debian directory
    # BTW uupdate is in the devscripts package
    
    cd ../zoneminder-1.28.1

Now you're in a state to start work -- time to read this:

  http://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/

    Short version:

      export QUILT_PATCHES=debian/patches

      then loop around doing:

        quilt push -a

        Didn't work?  force the broken patch with:

          quilt push -f

          Look at the patch file, and make the changes it was after by
          hand, or fix them, or whatever.  When you're done:

          quilt refresh

          Then go back to the top.

Once you've done that, each refresh should have replaced the broken
patch with your new attempt.  You should be able to see how you're
getting on with:

  diff -ur ../zoneminder-1.26.5/debian/patches debian/patches | less

HTH

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/    http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,    GERMANY
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20150305/00ebbd81/attachment.pgp>


More information about the GLLUG mailing list