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

Re: Bug#85850: lxdoom: problem building on alpha



On Tue, 13 Feb 2001, Joe Drew wrote:

> > dh_shlibdeps
> > dh_gencontrol
> > dpkg-gencontrol: error: current build architecture alpha does not appear in package's list (i386)
> > dh_gencontrol: command returned error code
> > make: *** [binary-arch] Error 1
> >
> > This probably corresponds to lxdoom-svga which is only for i386.
> > So there must be a way of convincing the debhelper tools / dpkg-gencontrol
> > to not try to process lxdoom-svga on non-i386.
>
> lxdoom creates a couple of binary packages, one of which (the svgalib binary)
> is useful only on i386. Therefore, I assigned lxdoom-svga Architecture: i386
> only, assuming dpkg-gencontrol would work properly with this. Apparently
> not. How can I get around this problem?


Look e.g. at the debian/rules of my package tmview:

<--  snip  -->

#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

ARCH=$(shell dpkg --print-architecture)
SVGA_ARCHS=i386 alpha
ifneq ($(findstring $(ARCH),$(SVGA_ARCHS)),)
DO_SVGA=1
endif

...

        dh_compress
        dh_fixperms
        dh_installdeb
        dh_shlibdeps
ifdef DO_SVGA
        dh_gencontrol -pdvisvga
endif
        dh_gencontrol -pdvilx
        dh_gencontrol -pdvifb
        dh_md5sums
ifdef DO_SVGA
        dh_builddeb -pdvisvga
endif
        dh_builddeb -pdvilx
        dh_builddeb -pdvifb

...

<--  snip  -->

cu,
Adrian

-- 

Nicht weil die Dinge schwierig sind wagen wir sie nicht,
sondern weil wir sie nicht wagen sind sie schwierig.



Reply to: