Bug#986704: xaw3dg: FTCBFS -- uses build compiler during cross build
Package: xaw3dg
Version: 1.5+F-1
Severity: normal
Tags: patch
User: debian-cross@lists.debian.org
X-Debbugs-Cc: nilesh@debian.org, nilesh@debian.org, debian-cross@lists.debian.org
Dear Maintainer,
xaw3dg fails to cross build because it uses build compiler rather than
the host compiler whilst cross building.
The attached patch fixes the situation, please consider applying
Nilesh
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.7.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages xaw3dg depends on:
ii libc6 2.31-3
ii libice6 2:1.0.9-2
ii libsm6 2:1.2.3-1
ii libx11-6 2:1.7.0-2
ii libxext6 2:1.3.3-1+b2
ii libxmu6 2:1.1.2-2+b3
ii libxpm4 1:3.5.12-1
ii libxt6 1:1.1.5-1+b3
xaw3dg recommends no packages.
xaw3dg suggests no packages.
-- no debconf information
diff --git a/debian/rules b/debian/rules
index f8f65f3..bdc2ae6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ SOURCE=xc/lib/Xaw3d
override_dh_auto_build:
rm -rf $(SOURCE)/X11 && install -m755 -d $(SOURCE)/X11
cd $(SOURCE) && ln -sf ../ X11/Xaw3d && xmkmf
- $(MAKE) -C $(SOURCE) \
+ dh_auto_build -- -C $(SOURCE) \
EXTRA_DEFINES="-D_REENTRANT -DARROW_SCROLLBAR" SHLIBDEF="-D_REENTRANT -DARROW_SCROLLBAR"
override_dh_auto_clean:
@@ -22,7 +22,7 @@ override_dh_auto_clean:
dh_clean `find . -name Makefile`
override_dh_auto_install:
- $(MAKE) -C $(SOURCE) install \
+ dh_auto_install -- -C $(SOURCE) install \
DESTDIR=$(CURDIR)/debian/tmp INCDIR=/usr/include \
SHLIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
USRLIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
Reply to: