On Sun, Jun 22, 2008 at 09:33:14PM +0200, Goswin von Brederlow wrote:
> On a hunch I checked the Packages.gz files on my system and found the
> following example:
> 
> Package: libgnomevfs2-dev
> Architecture: amd64
> Source: gnome-vfs
> Version: 1:2.22.0-4
> Depends: libgnomevfs2-0 (= 1:2.22.0-4), libgconf2-dev (>= 2.8.0-1), 
> libgnutls-dev, libxml2-dev, libavahi-client-dev (>= 0.6) | hurd, 
> libavahi-glib-dev (>= 0.6) | hurd, libdbus-1-dev | hurd, libselinux1-dev | 
> not+linux-gnu
> 
> So there actually is a provision for that and here is the magic:
> 
> Package: type-handling
> Architecture: amd64
> Version: 0.2.23
> Provides: amd64, linux, linux-gnu, not+alpha, not+arm, not+armeb, 
> not+bsd-darwin, not+bsd-freebsd, not+bsd-netbsd, not+bsd-openbsd, not+darwin, 
> not+freebsd, not+gnu, not+gnu-hurd, not+gnu-kfreebsd, not+gnu-knetbsd, 
> not+gnu-linux, not+gnueabi-linux, not+gnulp-linux, not+hppa, not+i386, 
> not+i486, not+ia64, not+kfreebsd-gnu, not+knetbsd-gnu, not+linux-gnueabi, 
> not+linux-gnulp, not+m32r, not+m68k, not+mips, not+mipsel, not+netbsd, 
> not+openbsd, not+powerpc, not+powerpc64, not+ppc64, not+s390, not+s390x, 
> not+sh3, not+sh3eb, not+sh4, not+sh4eb, not+solaris, not+sparc, 
> not+sysv-solaris, x86-64-linux-gnu
> 
> So you just add
> 
> Depends: libopenmpi-dev | not+linux, lam4-dev | linux
> 
> or whatever set you need.

Well, that's the good-old type-handling, something we hoped we wouldn't
need in 2008 anymore.  


Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to