• Bug#265510: mono: FTBFS on i386 with amd64 kernel.

    From Kurt Roeckx@1:229/2 to All on Fri Aug 13 16:20:10 2004
    From: [email protected]

    Package: mono
    Version: 1.0.1-1
    Tags: patch

    When trying to build the mono package on and amd64 machine with
    an amd64 kernel in i386 userland, it FTBFS.

    I've attached a patch for this. See also /usr/share/doc/autotools-dev/README.Debian.gz.


    Kurt


    --- rules.orig 2004-08-13 15:41:47.000000000 +0200
    +++ rules 2004-08-13 15:41:36.000000000 +0200
    @@ -28,6 +28,15 @@
    VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\ -f2)
    UPVERSION = $(shell echo $(VERSION) | sed 's,-.*,,')

    +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
    +
    +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
    + confflags += --build $(DEB_HOST_GNU_TYPE)
    +else
    + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif
    +
    include /usr/share/dpatch/dpatch.make

    cli-wrapper: debian/cli-wrapper.c
    @@ -39,7 +48,7 @@
    dh_testdir
    # using a better dllmap (should be fixed since beta1)
    #cp $(CURDIR)/debian/config.in $(CURDIR)/data/config.in
    - ./configure --prefix=/usr --with-gc=included \
    + ./configure $(confflags) --prefix=/usr --with-gc=included \
    --mandir=\$${prefix}/share/man \
    --infodir=\$${prefix}/share/info \
    --sys