Bug#990422: randomsound FTCBFS -- uses build architecture compiler
Package: randomsound
Version: 0.2-5
Severity: normal
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
X-Debbugs-Cc: nilesh@debian.org, debian-cross@lists.debian.org
Dear Maintainer,
randomsound fails to cross build because it uses build compiler arch
instead of host compiler.
Also, it runs the tests in buildstamps, and does not respect nocheck
opts
Please consider applying the attached patch for the above fixes
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 randomsound depends on:
ii alsa-utils 1.2.2-2
ii libc6 2.31-3
randomsound recommends no packages.
randomsound suggests no packages.
--- debian/rules
+++ debian/rules
@@ -8,7 +8,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-
+-include /usr/share/dpkg/buildtools.mk
@@ -25,8 +25,10 @@
build-stamp:
dh_testdir
- $(MAKE)
+ $(MAKE) CC="$(CC)" LINK="$(CC)"
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
$(MAKE) check
+endif
touch $@
clean:
Reply to: