dpkg/DebSrc3.0 should accept git-format-patch output (or error out)

Bug #1185102 reported by Björn Michaelsen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cgit
New
Undecided
Unassigned
dpkg (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

dpkg/DebSrc3.0 patches should accept git format-patch output. In most cases this is done, which causes even more confusion if it doesnt, e.g. for this commit:

 http://cgit.freedesktop.org/libreoffice/core/commit/?id=faf72664d11deaa570a0f8c7e702ff07bf5914c8

git writes the diff base filename for the newly-created file as a/dev/null.

Observed behaviour:
The debian toolchain does neither abort hard on this, nor create the file as one would expect.

Expected behaviour:
A hard abort on such a patch in debian/patches/ or (better): handling such patches as git does.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Changed in dpkg (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

If one goes into libreoffice git checkout and executes:
git format-patch faf72664d11deaa570a0f8c7e702ff07bf5914c8^..faf72664d11deaa570a0f8c7e702ff07bf5914c8

the generated patch has the following headers for the newly created file:
diff --git a/liborcus/liborcus_0.1.0-boost-include.patch.1 b/liborcus/liborcus_0.1.0-boost-include.patch.1
new file mode 100644
index 0000000..07558b0
--- /dev/null
+++ b/liborcus/liborcus_0.1.0-boost-include.patch.1

But freedesktop cgit web-interface generates "/a/dev/null". Maybe it's a bug in cgit or git as installed on freedesktop.org?

Changed in dpkg (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Hmmm, indeed the good gitweb installation on TDF infra seems to get it right:
https://gerrit.libreoffice.org/gitweb?p=core.git;a=patch;h=faf72664d11deaa570a0f8c7e702ff07bf5914c8

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.