Dpkg::Deps mishandles newlines in Build-Dependencies
Bug #391165 reported by
Andrew Sayers
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Debian) |
Fix Released
|
Unknown
|
|||
dpkg (Ubuntu) |
Fix Released
|
Undecided
|
Colin Watson |
Bug Description
Binary package hint: dpkg
When parsing a control file, the version of Dpkg/Deps.pm in Jaunty will correctly spot the missing comma in this line:
Build-Depends: foo bar
But not in this:
Build-Depends: foo
bar
This is because Dpkg/Deps.pm searches for whitespace using "\s", which doesn't match newlines. The attached patch fixes the problem by removing newlines from $dep_line. The patch can be applied in the normal way, by doing `patch -p1 < build-deps-
This bug is the root cause of bug #365770, so the fix is likely to uncover bugs in other packages. I haven't tested this in Karmic or upstream.
Changed in dpkg (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
This should be fixed by merging dpkg with Debian (they committed a fixed patch in 1.15.3).