Your message dated Sun, 15 Aug 2021 06:58:19 +0000
with message-id <[email protected]>
and subject line Bug#984877: fixed in cubature 1.0.4+ds-1
has caused the Debian Bug report #984877,
regarding cubature FTCBFS: multiple reasons
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
984877: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984877
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: cubature
Version: 1.0.3+ds-4
Tags: patch
User: [email protected]
Usertags: ftcbfs

cubature fails to cross build from source. The failure varies a bit with
the architecture combination. For instance cross building from amd64 to
mipsel results in a failure about finding -lfftw3l. Cross building from
amd64 to arm64 results in an Exec format error.

There are multiple causes at work here. The tool clencurt_gen is a build
tool and therefore should be built with the build architecture compiler,
not the host architecture compiler.

Once fixing that, the relevant fftw library is missing. It is a bit
special here, because fftw is needed for both the build architecture
(for clencurt_gen) and for the host architecture (for the actual
libcubature). Thus a dependency is required for both architectures.

Then, depending on the architecture combination, linking fftw fails
again. This time, it happens during the later host architecture compiler
invocations. The relevant fftw library to use depends on the
architecture. Thus we need the FFTWLIB variable for both build and host.

Please consider applying the attached patch to make cross building work.

Helmut
diff --minimal -Nru cubature-1.0.3+ds/debian/changelog 
cubature-1.0.3+ds/debian/changelog
--- cubature-1.0.3+ds/debian/changelog  2021-02-20 11:14:12.000000000 +0100
+++ cubature-1.0.3+ds/debian/changelog  2021-03-09 08:25:25.000000000 +0100
@@ -1,3 +1,13 @@
+cubature (1.0.3+ds-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Build build tool clencurt_gen with the build arch compiler.
+    + Add missing libfftw3-dev:native build dependency.
+    + Detect fftw/fftwl for the host objects using the host library.
+
+ -- Helmut Grohne <[email protected]>  Tue, 09 Mar 2021 08:25:25 +0100
+
 cubature (1.0.3+ds-4) unstable; urgency=medium
 
   * Replace DEB_BUILD_MULTIARCH with DEB_HOST_MULTIARCH
diff --minimal -Nru cubature-1.0.3+ds/debian/control 
cubature-1.0.3+ds/debian/control
--- cubature-1.0.3+ds/debian/control    2021-02-20 11:13:22.000000000 +0100
+++ cubature-1.0.3+ds/debian/control    2021-03-09 08:25:25.000000000 +0100
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Science Team 
<[email protected]>
 Uploaders: Ole Streicher <[email protected]>, Nilesh Patra 
<[email protected]>
-Build-Depends: debhelper-compat (= 12), dh-exec, libfftw3-dev
+Build-Depends: debhelper-compat (= 12), dh-exec, libfftw3-dev, 
libfftw3-dev:native
 Standards-Version: 4.4.1
 Vcs-Git: https://salsa.debian.org/science-team/cubature.git
 Vcs-Browser: https://salsa.debian.org/science-team/cubature
diff --minimal -Nru cubature-1.0.3+ds/debian/rules 
cubature-1.0.3+ds/debian/rules
--- cubature-1.0.3+ds/debian/rules      2021-02-20 11:04:04.000000000 +0100
+++ cubature-1.0.3+ds/debian/rules      2021-03-09 08:25:25.000000000 +0100
@@ -3,12 +3,18 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
--include /usr/share/dpkg/buildtools.mk
+include /usr/share/dpkg/buildtools.mk
 
 %:
        dh $@
 
 ifeq (,$(wildcard /usr/lib/$(DEB_BUILD_MULTIARCH)/libfftw3l*))
+FFTWDEF_FOR_BUILD=-DNO_LONG_DOUBLE_FFTW
+FFTWLIB_FOR_BUILD=-lfftw3
+else
+FFTWLIB_FOR_BUILD=-lfftw3l
+endif
+ifeq (,$(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/libfftw3l*))
 FFTWDEF=-DNO_LONG_DOUBLE_FFTW
 FFTWLIB=-lfftw3
 else
@@ -16,7 +22,7 @@
 endif
 
 override_dh_auto_build:
-       $(CC) $(CFLAGS) $(CPPFLAGS) $(FFTWDEF) $(LDFLAGS) -o clencurt_gen 
clencurt_gen.c $(FFTWLIB) -lm
+       $(CC_FOR_BUILD) $(CFLAGS) $(CPPFLAGS) $(FFTWDEF_FOR_BUILD) $(LDFLAGS) 
-o clencurt_gen clencurt_gen.c $(FFTWLIB_FOR_BUILD) -lm
        ./clencurt_gen 19 > clencurt.h
        $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -c hcubature.c pcubature.c
        $(CC) $(LDFLAGS) -shared -o libcubature.so.0 
-Wl,-soname,libcubature.so.0 hcubature.o pcubature.o -lm

--- End Message ---
--- Begin Message ---
Source: cubature
Source-Version: 1.0.4+ds-1
Done: Nilesh Patra <[email protected]>

We believe that the bug you reported is fixed in the latest version of
cubature, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nilesh Patra <[email protected]> (supplier of updated cubature package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 14 Aug 2021 02:44:02 +0530
Source: cubature
Architecture: source
Version: 1.0.4+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team 
<[email protected]>
Changed-By: Nilesh Patra <[email protected]>
Closes: 984877
Changes:
 cubature (1.0.4+ds-1) unstable; urgency=medium
 .
   * Make build cross buildable (Closes: #984877)
     - Thank you, Helmut Grohne
   * New upstream version 1.0.4+ds
   * Declare compliance with policy 4.5.1
   * Bump compat version to 13
Checksums-Sha1:
 a82a3f2eafb44b7b5cfe04e63a1259fadaed146d 2177 cubature_1.0.4+ds-1.dsc
 35c1bf044be62adc51b2151e64da3a4d160fda11 43552 cubature_1.0.4+ds.orig.tar.xz
 ae01fc252dea1f06964edbe0aa71da7e9c34851a 4140 cubature_1.0.4+ds-1.debian.tar.xz
 3a4c536f938fd625369b96053a191c73e1c4b806 6242 
cubature_1.0.4+ds-1_amd64.buildinfo
Checksums-Sha256:
 50355af84dccc3e4f3abfd4de1c2e75c232683d3d947e2063e84ca7d8cb31221 2177 
cubature_1.0.4+ds-1.dsc
 969da3b464f9581d12d8920c87a4972984834b33e37841d22b3188d0e881cd2f 43552 
cubature_1.0.4+ds.orig.tar.xz
 2172a3a3bd36c7f4cf0ea99d15ea2a0952c71c8afa97c1fecb32bf63d8c79b9d 4140 
cubature_1.0.4+ds-1.debian.tar.xz
 2910387db7dcda5a551d0d31316cc9ff70b090c549027454097285849e36c360 6242 
cubature_1.0.4+ds-1_amd64.buildinfo
Files:
 f805b5bec592c1ac9c3901e535cec0ac 2177 science optional cubature_1.0.4+ds-1.dsc
 a3330e2e50d961ed167f6b589195eb6d 43552 science optional 
cubature_1.0.4+ds.orig.tar.xz
 8397188a341c504bb4f5069393773fa2 4140 science optional 
cubature_1.0.4+ds-1.debian.tar.xz
 1a7b908b5c7dbc3daf65379e18b95f06 6242 science optional 
cubature_1.0.4+ds-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEPpmlJvXcwMu/HO6mALrnSzQzafEFAmEW4ZkUHG5wYXRyYTk3
NEBnbWFpbC5jb20ACgkQALrnSzQzafEvuQ/+Lp7sfb1+JLK/P+obn8aH9Gg12Lv7
cX7kOQvorryxqxzxVvN+SWRcvI3HDrkW51wbSaMTLpx8V39UXvdbDhcqpSIwGPK0
AqSrDUDpoV/k3afLOH1GtvQU1hQ3QUEuoIV9Xi6jRKFD+v0yoR8djionIG2hjYK0
NWo27UOpOs4n93jclFUj/ZXrR6/veJAhNnJB3MgRNPu+CWBKd4xgYfsM2gJ5zzb6
3n8HEXxtFZ/FMqwJuwbmd8YakDDE9H1KCS1mtnG1YM5PoJArFmdpGbjP06oSWSd+
ijiLqI36MYrlUlYLN8St8MmjiKicBNBivIoGLDmzpxD+qD1JJRLlgrjkzRX768mq
4rzifV6x5hMFpG1JI/4sZh2O3hYJq2xLVFR7PXh3HmyQdJL7/at4e7+mSATB2f7Y
cmm869YPLIxvfuwcigaJjcf3ESafnBHAYK/UKRv9TwUqvr/UbR2vls1q0q8+kdGT
DSCrA0ZWH+PzSUiVb2mfSu3Ie9KJcFXBuy/g9Vt2VKYQmF9pAd2umbZrqGMb8Mnd
SH/hM1F3eTeD2kHmwHvF5YzgJpGGIGFFM+LVt871+pX8/8K6j0bvz4nR2J8vIDWV
BAVku6qLo9h0fKjQf2uwjMbxYBdOvEoKKKpJbPaVV+Aj72AJbOlTb2D0Jo4hrK9S
9DcvbHgTSr81RWw=
=hfF4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to