Source: intel2gas
Version: 1.3.3-17
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

intel2gas cross builds a broken package, because it builds for the build
architecture. It needs to pass --host to configure. I'm attaching a
patch for your convenience.

Helmut
diff -u intel2gas-1.3.3/debian/changelog intel2gas-1.3.3/debian/changelog
--- intel2gas-1.3.3/debian/changelog
+++ intel2gas-1.3.3/debian/changelog
@@ -1,3 +1,10 @@
+intel2gas (1.3.3-17.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --build and --host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 10 Mar 2023 13:03:19 +0100
+
 intel2gas (1.3.3-17) unstable; urgency=low
 
   * lifted standards version
diff -u intel2gas-1.3.3/debian/rules intel2gas-1.3.3/debian/rules
--- intel2gas-1.3.3/debian/rules
+++ intel2gas-1.3.3/debian/rules
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 DOCDIR=debian/tmp/usr/share/doc/intel2gas
 
+include /usr/share/dpkg/architecture.mk
+
 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags 
--get CPPFLAGS)
@@ -25,7 +27,7 @@
 
 build:
        if [ ! -f debian/rules ]; then echo "wrong dir!"; exit 1; fi
-       ./configure --prefix=/usr 
+       ./configure --prefix=/usr --build=$(DEB_BUILD_GNU_TYPE) 
--host=$(DEB_HOST_GNU_TYPE)
        $(MAKE) CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" 
INSTALL_OPTS="$(INSTALL_OPTS)"
        touch build
 

Reply via email to