Bug#465262: libopenobex: long term mass bug filing for cross build support.
On Mon, 2008-02-11 at 22:44 +0100, Hendrik Sattler wrote: Am Montag 11 Februar 2008 schrieb Neil Williams: The cache file is handled externally. + --cache-file=$(DEB_HOST_GNU_TYPE).cache What is this about. See my explanation in #465294 Is this absolutely necessary for cross-build support? Yes. Certain variables cannot be determined by ./configure during a cross build because the m4 macros expect a test program to be compiled and executed. Not surprisingly, this fails in a cross build so the cached value (obtained from the native Debian buildd log for the --host architecture) is used. See also my follow-up to debian-devel. -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ signature.asc Description: This is a digitally signed message part
Bug#465262: libopenobex: long term mass bug filing for cross build support.
Am Montag 11 Februar 2008 schrieb Neil Williams: +CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc Thanks for answering the first part. What is the CROSS variable about? Is it not needed as configure finds right gcc by default. HS -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#465262: libopenobex: long term mass bug filing for cross build support.
On Tue, 2008-02-12 at 00:09 +0100, Hendrik Sattler wrote: Am Montag 11 Februar 2008 schrieb Neil Williams: +CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc Thanks for answering the first part. What is the CROSS variable about? Is it not needed as configure finds right gcc by default. Hmm, indeed it does. Sorry about that. You can drop the CROSS variable - it is normally for situations where $(MAKE) insists on using gcc despite --host. Would you like a revised patch? -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ signature.asc Description: This is a digitally signed message part
Bug#465262: libopenobex: long term mass bug filing for cross build support.
Am Montag 11 Februar 2008 schrieb Neil Williams: The cache file is handled externally. + --cache-file=$(DEB_HOST_GNU_TYPE).cache What is this about. Is this absolutely necessary for cross-build support? I don't think so. HS -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#465262: libopenobex: long term mass bug filing for cross build support.
Am Dienstag 12 Februar 2008 schrieb Neil Williams: On Tue, 2008-02-12 at 00:09 +0100, Hendrik Sattler wrote: Am Montag 11 Februar 2008 schrieb Neil Williams: +CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc Thanks for answering the first part. What is the CROSS variable about? Is it not needed as configure finds right gcc by default. Hmm, indeed it does. Sorry about that. You can drop the CROSS variable - it is normally for situations where $(MAKE) insists on using gcc despite --host. Would you like a revised patch? No, I already have one. HS signature.asc Description: This is a digitally signed message part.
Bug#465262: libopenobex: long term mass bug filing for cross build support.
Package: libopenobex Version: 1.3-3 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: crossbuilt In line with the other cross-building support bugs: http://lists.debian.org/debian-devel/2007/11/msg00116.html This patch is necessary to allow libopenobex to cross-build in Debian, including following the recommendation in autotools-dev to only supply --host when cross building and use --build for all builds. The cache file is handled externally. Thanks. *** ../crossbuild.diff --- libopenobex-1.3.debian/debian/rules +++ libopenobex-1.3.emdebian/debian/rules @@ -14,7 +14,14 @@ # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc +confflags= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) \ + --cache-file=$(DEB_HOST_GNU_TYPE).cache +else +confflags= --build $(DEB_BUILD_GNU_TYPE) +CROSS= +endif CFLAGS = -Wall -g @@ -39,10 +46,9 @@ dh_testdir autoreconf #CFLAGS=$(CFLAGS) -Wl,-z,defs \ - ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ - --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ --with-usb=/usr \ - --enable-apps + --enable-apps $(confflags) build: build-stamp build-stamp: config.status -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash signature.asc Description: Digital signature