DansGuardian Anti-Virus

I’m trying to build a debian package with the Aecio F. Neto’s DansGuardian Anti-Virus patch.
Unfortunately the patch was for 2.7.7-8 and debian is at the current 2.7.7-9.

Now normally this isn’t a problem, its easy enough to apt-get source the package, apt-get install any dependancies, apply the patch, deal with any minor rejects, then fakeroot dpkg-buildpackage and “bob’s your uncle”.

Unfortunately minor was not the operative word with this job. You know it is getting all bad when you see these lines:

1 out of 12 hunks FAILED -- saving rejects to file ConnectionHandler.cpp.rej
1 out of 2 hunks FAILED -- saving rejects to file DataBuffer.cpp.rej

1 out of 12! Not looking good, and it wasn’t. After a period and trying to make head and tail of the patch, the reject and both the 2.7.7-8 and 2.7.7-9 files, without having to actually fiddle what the fsck was going on I almost gave up.

Then I had a bright idea. Apply the difference between the unpatched 2.7.7-8 and 2.7.7-9 ConnectionHandler.cpp to the anti-virus patched 2.7.7-8 ConnectionHandler.cpp. And it worked!

Now I’m waiting for apt-get to grab some dependancies and then dpkg-buildpacked finish building.

Fingers crossed I don’t have any compile time errors. Otherwise I’ve probably wasted the evening.

1 Comment

  1. Somewhere out there! Said,

    July 17, 2004 @ 8:21 pm

    DansGuardian Anti-Virus, part ii
    Managed to get DansGuardian Anti-Virus working

RSS feed for comments on this post