On Wed, 06 Oct 2010, Martin Godisch wrote:
> On Wed, Oct 06, 2010 at 11:03:26 +0200, Raphael Hertzog wrote:
>
> > > When applying patches in dpkg source format 3.0 (quilt) with -p0 in
> > > debian/patches/series, files in top level directory (without /) let
> > > dpkg-source print the following error message:
> >
> > User error. The dpkg-source manual page documents that 3.0 (quilt) only
> > supports -p1 patches.
> >
> > Quoting the manual page:
> >
> > Note however that while dpkg-source parses correctly series files with
> > explicit options used for patch application (stored on each line
> > after the patch filename and one or more spaces), it does ignore those
> > options and always expect patches that can be applied with the -p1
> > option of patch. It will thus emit a warning when it encounters such
> > options, and the build is likely to fail.
>
> How about fixing the warning which should say something about -p0 being
> ignored, instead of "filename not relative in diff"?
I think that if you look through your log you will see:
warning(_g("the series file (%s) contains unsupported " .
"options ('%s', line %s), dpkg-source might " .
"fail when applying patches."),
$file, $2, $.) if $opts{"warn_options"};
You only spotted the failure but the warning is more explicit and should be
there too.
If you don't see it during "dpkg-source -b" then it's probably a bug.
Cheer,s
--
Raphaël Hertzog ◈ Debian Developer ◈ [Flattr=20693]
Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]