dpkg source/format 3.0 (quilt) → 1.0
The former backports.org (now http://backports.debian.org/) page contained a nice conversion howto, which I will repost here in case someone needs it.
- Change debian/source/format to contain 1.0 (or remove it alltogether)
If there are patches in debian/patches/series listed it is best to convert the package to using quilt. This isn't too complicated, actually it boils down to adding “quilt (>= 0.46-7~)” to the Build-Depends in debian/control, and depending on either:
- The package uses the “dh” short style rules file: Adding the “--with quilt” switch to the dh calls is sufficient.
- For all other rules files it isn't much more complicated:
- “include /usr/share/quilt/quilt.make” at the very top of debian/rules
- Add “patch” as dependency to the first target, which might be configure, build-stamp or build (in that order usually), like: “build-stamp: patch”
- Add “$(MAKE) -f debian/rules unpatch” at the end of the clean target. Actually adding unpatch as dependency for the clean target usually works too this is cleaner because there might be patches that patched the build system itself.
- Additionally please note that dpkg-source -x applies the patches automatically, so running “fakeroot debian/rules unpatch” after applying the above mentioned changes might be required depending on your setup.