Bug#995613: guile-2.2: Please build with --without-threads on alpha to fix FTBFS

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.alpha
Message-ID <163325361133.2644413.17908551593054552303.reportbug__39762.3209677235$1633253787$gmane$org@nofan.physik.fu-berlin.de>
Source: guile-2.2
Version: 2.2.7+1-6
Severity: normal
Tags: patch
User: [email protected]
Usertags: alpha
X-Debbugs-Cc: [email protected]

Hello!

Both guile-2.2 and guile-3.0 FTBFS on alpha when built with thread
support. Passing --without-threads to configure disables thread
support and fixes the build.

We also suspect that the threading problems in guile affect other
packages on alpha such as gnutls28 but we're not sure yet.

Could you apply the attached patch for the next upload of guile-2.2?

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
guile-2.2-disable-threads-on-alpha.patch (text/plain, 838 B)
--- debian/rules.orig	2021-06-18 20:12:50.000000000 +0200
+++ debian/rules	2021-10-03 03:28:45.001439990 +0200
@@ -88,6 +88,11 @@
   march =
 endif
 
+deb_target_arch := $(shell dpkg-architecture -qDEB_TARGET_ARCH)
+ifneq (,$(filter $(deb_target_arch),alpha))
+  deb_config_args += --without-threads
+endif
+
 export DEB_CFLAGS_MAINT_APPEND := \
   -DPACKAGE_PACKAGER='"Debian"' \
   -DPACKAGE_PACKAGER_VERSION='"$(upstream_ver)-deb+$(deb_src_src_rev)-$(deb_src_rev)"' \
@@ -182,7 +187,7 @@
 
 override_dh_auto_configure:
 	dh_auto_configure -- --disable-error-on-warning --disable-rpath \
-	  --program-suffix "-$(deb_src_eff_ver)"
+	  --program-suffix "-$(deb_src_eff_ver)" $(deb_config_args)
 
 # Because some of the bootstrapping files compile for a very long time
 # with no output, the buildds don't have per-package limits, and we
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.