[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Conditionally applying an architecture-dependent patch



Pierre Habouzit <madcoder@debian.org> writes:

> On Mon, Nov 27, 2006 at 07:21:53PM -0500, Daniel Jacobowitz wrote:
>> On Mon, Nov 27, 2006 at 04:04:41PM -0800, Steve Langasek wrote:
>> > I would normally recommend quilt, but I'm not sure it has a concept of
>> > conditional patches, which may make things awkward later if further patches
>> > are required.
>> 
>> It doesn't.  I think I've seen this done before by processing the
>> series file.  But it's not pretty.
>
>   well you also can have many series files, the basic one, and the extra
> one for architecture dependants files. I suppose one could hack quite
> esaily a makefile using quilt and debian/patches/series +
> debian/patches/series.$(arch) if it exists e.g.


I need exactly the same thing. I was lloking for an include statement
for series files though. Something like

debian/patches/series.common:
version.patch
foo.patch
barf.patch

debian/patches/series.amd64:
#include "series.common"
amd64.patch

debian/patches/series.i386:
#include "series.common" 
i386.patch 

Quilt does not seem to have this. But it shouldn't be hard to write a
makefile target that creates the series file by running
debian/patches/series.$ARCH through cpp. That is the way I'm going
anyway, hence the syntax.

MfG
        Goswin



Reply to: