Bug#679959: dpkg: 1.16.5 breaks binNMUs

July 02nd, 2012 - 01:20 pm ET by Julien Cristau | Report spam

Package: dpkg
Version: 1.16.5
Severity: grave

When binNMUing a package with dpkg 1.16.5, the debs end up with a
missing version in the Source field of their control file.
See e.g.
https://buildd.debian.org/status/fe...&stamp41244875
compared to
https://buildd.debian.org/status/fe...&stamp40892254
(the former has 1.16.5, the latter 1.16.4.3). 1.16.6 is also broken.

Cheers,
Julien






To UNSUBSCRIBE, email to debian-bugs-rc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Julien Cristau
July 02nd, 2012 - 01:40 pm ET | Report spam

tag 679959 patch
kthxbye

On Mon, Jul 2, 2012 at 19:14:58 +0200, Julien Cristau wrote:

Package: dpkg
Version: 1.16.5
Severity: grave

When binNMUing a package with dpkg 1.16.5, the debs end up with a
missing version in the Source field of their control file.



This seems to work:

/usr/bin/dpkg-gencontrol 2012-06-30 21:51:22.000000000 +0200
+++ ../dpkg-gencontrol 2012-07-02 19:24:18.000000000 +0200
@@ -308,10 +308,10 @@
}
}

-my $verdiff = $binaryversion ne $sourceversion;
+my $verdiff = $substvars->{'vars'}{'binary:Version'} ne $substvars->{'vars'}{'source:Version'};
if ($oppackage ne $sourcepackage || $verdiff) {
$fields->{'Source'} = $sourcepackage;
- $fields->{'Source'} .= " (" . $sourceversion . ")" if $verdiff;
+ $fields->{'Source'} .= " (" . $substvars->{'vars'}{'source:Version'} . ")" if $verdiff;
}

if (!defined($substvars->get('Installed-Size'))) {

Cheers,
Julien






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics