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

Re: Excluding a single arch on an arch: any



* Reinhard Tartler [Sun, 12 Aug 2007 21:27:50 +0200]:

> "Wesley J. Landaker" <wjl@icecavern.net> writes:

> > Is is possible to make the equivalent of an Architecture: any package except 
> > that it excludes one or two specific architectures? 

> I think the best you can do is to write a check for that specific
> architecture in the package's preinst script, and abort the installation
> if it is being installed on that 'blacklisted' architecture.

Uuh, that doesn't sound right. The correct thing to do would be to
ensure the package does not build on the broken architectures, and
remove the binaries from unstable. To do the former, and since the point
is not having to list all possible architectures in the Architecture
field, one can do in debian/rules:

    DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

    configure:
	    test "$(DEB_HOST_ARCH)" != "ia64"

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
- Blue flower, red thorns. This would be so much easier|if I wasn't
  colour-blind!
                -- Donkey in “Shrek”



Reply to: