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

Re: Configurable debian/control & debian/rules



Mathieu Malaterre <mathieu.malaterre@gmail.com> writes:

> Let's consider one source package 'foo' which can be build using a
> --enable-super-duper-3rd-party-lib. My control file is then:
>
> ########################
> Source: foo
> Build-Depends: super-duper-3rd-party-lib
> ...
>
> Package: libfoo
> ...
>
> Package: libfoo-super-duper-3rd-party-lib
> ...
> ########################
>
> Clearly only 'libfoo-super-duper-3rd-party-lib' 'Build-Depends' on
> package 'libfoo-super-duper-3rd-party-lib', which make libfoo only
> available on the limited subset of Arch for
> libfoo-super-duper-3rd-party-lib...
>
> Clearly this is an issue with availability on Arch, but I do not see
> how to express: "Use libfoo-super-duper-3rd-party-lib only if
> available" (I would then need to tweak debian/rules but this should be
> easier).

You want an arch-specific build-dependency, like:

    super-duper-3rd-party-lib [i386 amd64]

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: