[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

making more packages binary NMU safe



I noticed that glabels is broken on i386 because it's not binary NMU
safe, and someone did a binary NMU.

After poking around a bit, I found
http://lists.debian.org/debian-dpkg/2005/11/msg00000.html, which
discussed a possible solution to this problem. Since then, we have
changed the version number format for binary NMUs, so I wanted to submit
a patch (based on the one mentioned previously) to allow the creation
more binNMU safe packages.

This patch should patch /usr/lib/dpkg/controllib.pl in dpkg-dev.

--- controllib.pl.old	2006-01-15 22:50:55.000000000 -0600
+++ controllib.pl	2006-01-15 22:55:33.000000000 -0600
@@ -241,6 +241,11 @@
     &parsecdata('L',0,"parsed version of changelog");
     close(CDATA); $? && &subprocerr("parse changelog");
     $substvar{'Source-Version'}= $fi{"L Version"};
+    #Indep-Version is for supporting binary NMUs when a strict
+    #version dependancy is required against an arch independant package
+    $substvar{'Indep-Version'}= $fi{"L Version"};
+    #strip out the +bN format binary NMU version suffix
+    $substvar{'Indep-Version'} =~ s/\+b[0-9]+$//;
 }

This patch adds the Indep-Version substitution variable, which will be
the version number on the arch-independant packages corresponding to the
current verision of the other binary packages.

I'm not sure where to submit this, or whether there's a bug open for it
already, so I'm submitting this here.

--Ken Bloom

-- 
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: