Source: jags
Version: 4.3.2-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability
jags cannot be cross built from source, because it depends on g++ and
gfortran. These dependencies refer to the host architecture toolchain
installed for the host architecture. If it were installable, it could
not be run. What is really needed here is a native toolchain for the
host architecture. We may get that by appending a "-for-host" suffix.
That comes with a downside attached though. We may no longer just run
"gfortran" and instead must invoke it as "${DEB_HOST_GNU_TYPE}-gfortran"
even in native builds. dpkg's buildtools.mk may export a suitable F77
environment variable to achieve that. I'm attaching a patch meant for
forky for your convenience.
Helmut
diff --minimal -Nru jags-4.3.2/debian/changelog jags-4.3.2/debian/changelog
--- jags-4.3.2/debian/changelog 2023-03-08 02:28:57.000000000 +0100
+++ jags-4.3.2/debian/changelog 2025-06-19 12:26:14.000000000 +0200
@@ -1,3 +1,10 @@
+jags (4.3.2-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Multiarchify toolchain dependencies. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Thu, 19 Jun 2025 12:26:14 +0200
+
jags (4.3.2-1) unstable; urgency=medium
* New upstream release
diff --minimal -Nru jags-4.3.2/debian/control jags-4.3.2/debian/control
--- jags-4.3.2/debian/control 2023-03-08 02:28:23.000000000 +0100
+++ jags-4.3.2/debian/control 2025-06-19 12:26:12.000000000 +0200
@@ -2,7 +2,7 @@
Section: math
Priority: optional
Maintainer: Dirk Eddelbuettel <[email protected]>
-Build-Depends: debhelper-compat (= 12), gfortran (>= 4:5.2), liblapack-dev,
libltdl-dev (>= 2.2.6b), texlive-base, texlive-latex-base,
texlive-plain-generic, texlive-fonts-recommended, texlive-extra-utils,
texlive-latex-recommended, texlive-latex-extra, texinfo, faketime, g++ (>=
4:5.2), libcppunit-dev, pkg-config, mercurial
+Build-Depends: debhelper-compat (= 12), gfortran-for-host (>= 4:5.2),
liblapack-dev, libltdl-dev (>= 2.2.6b), texlive-base, texlive-latex-base,
texlive-plain-generic, texlive-fonts-recommended, texlive-extra-utils,
texlive-latex-recommended, texlive-latex-extra, texinfo, faketime, g++-for-host
(>= 4:5.2), libcppunit-dev, pkg-config, mercurial:native
Standards-Version: 4.6.2
Homepage: https://mcmc-jags.sourceforge.io
diff --minimal -Nru jags-4.3.2/debian/rules jags-4.3.2/debian/rules
--- jags-4.3.2/debian/rules 2018-07-09 05:47:45.000000000 +0200
+++ jags-4.3.2/debian/rules 2025-06-19 12:26:14.000000000 +0200
@@ -1,5 +1,8 @@
#!/usr/bin/make -f
+DPKG_EXPORT_BUILDTOOLS := 1
+include /usr/share/dpkg/buildtools.mk
+
## cf
https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX
DEB_DATE_RFC_2822 := $(shell dpkg-parsechangelog -S date)
DEB_DATE_RFC_3339 := $(shell date -u "--rfc-3339=seconds" -d
"$(DEB_DATE_RFC_2822)")