dpkg-dev: can't unpack old packages without Format field

Bug #632280 reported by Rolf Leggewie
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg (Debian)
Fix Released
Unknown
dpkg (Ubuntu)
Fix Released
Low
Unassigned
Lucid
Won't Fix
Low
Unassigned

Bug Description

From http://bugs.debian.org/574097:

".dsc files haven't always had a Format field. It was introduced in dpkg 1.6.13, in May 2000. This means that it's still not entirely implausible to run across source packages without Format"

This means that it isn't always possible to unpack old source packages on lucid, which can be inconvenient when doing archaeology.

Details of the fix, including the patch, are available in the linked Debian bug. This fix is in maverick via Debian.

TEST CASE: Download the source package from http://snapshot.debian.org/package/nethack-spoilers/3.2.2-1/ and attempt to unpack it using 'dpkg-source -x nethack-spoilers_3.2.2-1.dsc'.

I see little potential for regressions, but it would be worth double-checking that some other modern .dsc file can still be unpacked.

Tags: testcase
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is fixed in the maverick version

Changed in dpkg (Ubuntu):
status: New → Triaged
importance: Undecided → Low
status: Triaged → Fix Released
Changed in dpkg (Ubuntu Lucid):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

Subscribing Colin to the bug, do you think that's something that should be backported to lucid?

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 632280] Re: dpkg-dev: can't unpack old packages without Format field

Yes, it would be a good idea I think.

description: updated
Colin Watson (cjwatson)
Changed in dpkg (Ubuntu Lucid):
status: New → In Progress
assignee: nobody → Colin Watson (cjwatson)
description: updated
Revision history for this message
Colin Watson (cjwatson) wrote :

I've uploaded the patch in question to lucid-proposed for review.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I've enabled lucid-proposed and looked in http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/?C=M;O=D but FWIW cannot find the updated package there.

Revision history for this message
Colin Watson (cjwatson) wrote :

I didn't say it had been accepted into lucid-proposed.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I've now been pointed to the unapproved queue. Took the dsc file from there and rebuilt it locally. FWIW, the package did not fix the error for me. Furthermore, the package increased substantially in size (about 1MB), certainly much more than I would have expected.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted dpkg into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in dpkg (Ubuntu Lucid):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote :

I don't know why you had a huge size increase; if you look at the source diff, it's tiny. The official build will be in the archive in a few tens of minutes. I've checked, and the size change is trivial.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

doesn't work with the package from -proposed, either.

$ dpkg -l dpkg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=============================-=============================-==========================================================================
ii dpkg 1.15.5.6ubuntu4.2 Debian package management system

$ dpkg-source -x nethack-spoilers_3.2.2-1.dsc
dpkg-source: error: missing critical source control field Format

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

1.15.5.6ubuntu4.2 has been superseded by the security update 1.15.5.6ubuntu4.3. 1.15.5.6ubuntu4.3 was a no change rebuild since it statically links libbz2 and bzip2 had a recent security update. Feel free to simply reupload with a higher version number.

Revision history for this message
Martin Pitt (pitti) wrote :

Reopening, since this also failed verification.

Changed in dpkg (Ubuntu Lucid):
status: Fix Committed → In Progress
tags: removed: verification-needed
Changed in dpkg (Debian):
status: Unknown → Fix Released
Revision history for this message
Raphaël Hertzog (hertzog) wrote :

One year later I think it's no longer worth fixing in lucid... feel free to revert Colin if you still plan to update the package in lucid.

Changed in dpkg (Ubuntu Lucid):
assignee: Colin Watson (cjwatson) → nobody
status: In Progress → Won't Fix
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Well, for what it's worth lucid does still have almost 4 years of life left in it. If it's not too much trouble, I'd certainly welcome a fix in lucid.

tags: added: testcase
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.