Bug#538556: texlive-extra: FTBFS with new source format 3.0 (quilt): unprotected quilt push -a
To prepare a possible switch to the new source package format "3.0
(quilt)" , I converted all source packages and rebuilt the packages
afterwards to see what breaks, and texlive-extra does break. To reproduce the
problem you can do this:
$ apt-get source texlive-extra
$ mkdir -p texlive-extra-2007.dfsg.17/debian/source
$ echo "3.0 (quilt)" >texlive-extra-2007.dfsg.17/debian/source/format
$ dpkg-source -b texlive-extra-2007.dfsg.17
$ dpkg-source -x texlive-extra_2007.dfsg.17-2.dsc
$ cd texlive-extra-2007.dfsg.17 && debuild -us -uc
In this process, if the .diff.gz contains changes to upstream files,
dpkg-source will have created a corresponding patch in
debian/patches/debian-changes-2007.dfsg.17-2 and will have registered that
patch in a quilt series (debian/patches/series, it is created if needed).
All the patches listed in the "series" file are applied directly during
the extraction (dpkg-source -x). quilt itself is used if available (and
will thus lead to the creation of the .pc directory), otherwise
dpkg-source applies the patches by itself. For more information about the
new source package format see the manual page dpkg-source(1).
In the case of texlive-extra, it fails to build when the patches are
already applied as quilt push -a will exit with error code 2.
To avoid this kind of mistakes, you should really not reinvent the wheel
and simply use /usr/share/quilt/quilt.make provided by quilt (include it
and add the proper target dependencies).