Bug#1081069: ghc: Don't do tests on crossbuild
Samuel Thibault
sthibault at debian.org
Sat Sep 7 22:05:09 BST 2024
Package: ghc
Version: 9.4.7-5
Severity: normal
Hello,
Arguably, when cross-building, one should always be using the nocheck
profile, but it'd still be convenient that debian/rules already avoids
running tests.
Samuel
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64
Kernel: Linux 6.10.6-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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 ghc depends on:
ii dpkg 1.22.11
ii gcc 4:14.1.0-2
ii libbsd-dev 0.12.2-1
ii libc6 2.40-2
ii libc6-dev 2.40-2
ii libffi-dev 3.4.6-1
ii libffi8 3.4.6-1
ii libgmp-dev 2:6.3.0+dfsg-2+b1
ii libgmp10 2:6.3.0+dfsg-2+b1
ii libncurses-dev 6.5-2
ii libtinfo6 6.5-2
ghc recommends no packages.
Versions of packages ghc suggests:
pn ghc-doc <none>
pn ghc-prof <none>
pn llvm-15 <none>
ii perl 5.38.2-5
-- no debconf information
--
Samuel
il y a 10 catégories de personnes dans le monde : ceux qui comprennent le
binaire, et ceux qui ne le comprennent pas
-------------- next part --------------
--- debian/rules.original 2024-09-07 23:04:14.489645147 +0200
+++ debian/rules 2024-09-07 23:04:15.401631651 +0200
@@ -165,6 +165,7 @@
override_dh_auto_test:
ifeq (NO,$(BUILD_CROSS))
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
# Do some very simple tests that the compiler actually works
rm -rf debian/testghc
mkdir debian/testghc
@@ -180,6 +181,7 @@
@inplace/bin/ghc-stage2 --info
@printf "====END GHC INFO OUTPUT====\n"
endif
+endif
FILES = \( -type f -o -type l \)
PROF_FILE = \( -name "*.p_*" -o -name "lib*_p.a" \)
More information about the Pkg-haskell-maintainers
mailing list