Your message dated Fri, 10 Jul 2020 23:33:44 +0000
with message-id <[email protected]>
and subject line Bug#964374: fixed in libf2c2 20140711-1
has caused the Debian Bug report #964374,
regarding libf2c2 FTCBFS: builds for the build architecture
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.)


-- 
964374: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964374
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libf2c2
Version: 20130926-3
Tags: patch
User: [email protected]
Usertags: ftcbfs

libf2c2 fails to cross build from source, because it does not pass cross
tools to make. The easiest way of fixing that - using dh_auto_build - is
insufficient here. debian/make_lib hard codes the build architecture C
compiler and makefile.u hard codes the build architecture ld. Both need
to be made substitutable. Since dh_auto_build does not pass an LD
variable, we must pass it explicitly. The attached patch makes libf2c2
cross buildable. Please consider applying it.

Helmut
diff -Nru libf2c2-20130926/debian/changelog libf2c2-20130926/debian/changelog
--- libf2c2-20130926/debian/changelog   2018-02-22 13:36:24.000000000 +0100
+++ libf2c2-20130926/debian/changelog   2020-07-06 11:12:17.000000000 +0200
@@ -1,3 +1,14 @@
+libf2c2 (20130926-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Make debian/make_lib use the passed cross compiler.
+    + Pass a cross ld from dpkg's buildtools.mk to make.
+    + cross.patch: Make ld substitutable in makefile.u.
+
+ -- Helmut Grohne <[email protected]>  Mon, 06 Jul 2020 11:12:17 +0200
+
 libf2c2 (20130926-3) unstable; urgency=medium
 
   * Team upload.
diff -Nru libf2c2-20130926/debian/make_lib libf2c2-20130926/debian/make_lib
--- libf2c2-20130926/debian/make_lib    2018-02-22 13:36:24.000000000 +0100
+++ libf2c2-20130926/debian/make_lib    2020-07-06 11:12:17.000000000 +0200
@@ -4,7 +4,7 @@
        $(MAKE) -f makefile.u CFLAGS="$(CFLAGS) $(GCCOPT) -fPIC \
         -I ../ -DNON_UNIX_STDIO -D$(INTSIZE)" 
 
-       gcc -shared -Wl,-soname,lib$(INTSIZE).so.2 $(LDFLAGS) \
+       $(CC) -shared -Wl,-soname,lib$(INTSIZE).so.2 $(LDFLAGS) \
                         -o lib$(INTSIZE).so.2.1 *.o -lc -lm
 
        ar r lib$(INTSIZE).a *.o
diff -Nru libf2c2-20130926/debian/patches/cross.patch 
libf2c2-20130926/debian/patches/cross.patch
--- libf2c2-20130926/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 
+0100
+++ libf2c2-20130926/debian/patches/cross.patch 2020-07-06 11:12:17.000000000 
+0200
@@ -0,0 +1,20 @@
+Index: libf2c2-20130926/makefile.u
+===================================================================
+--- libf2c2-20130926.orig/makefile.u
++++ libf2c2-20130926/makefile.u
+@@ -14,13 +14,14 @@
+ 
+ .SUFFIXES: .c .o
+ CC = cc
++LD ?= ld
+ SHELL = /bin/sh
+ CFLAGS = -O
+ 
+ # compile, then strip unnecessary symbols
+ .c.o:
+       $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
+-      ld -r -x -o $*.xxx $*.o
++      $(LD) -r -x -o $*.xxx $*.o
+       mv $*.xxx $*.o
+ ## Under Solaris (and other systems that do not understand ld -x),
+ ## omit -x in the ld line above.
diff -Nru libf2c2-20130926/debian/patches/series 
libf2c2-20130926/debian/patches/series
--- libf2c2-20130926/debian/patches/series      2018-02-22 13:36:24.000000000 
+0100
+++ libf2c2-20130926/debian/patches/series      2020-07-06 11:12:17.000000000 
+0200
@@ -4,3 +4,4 @@
 0004-add-clapack-files.patch
 0005-format-security.patch
 0006-weak-MAIN__.patch
+cross.patch
diff -Nru libf2c2-20130926/debian/rules libf2c2-20130926/debian/rules
--- libf2c2-20130926/debian/rules       2018-02-22 13:36:24.000000000 +0100
+++ libf2c2-20130926/debian/rules       2020-07-06 11:12:17.000000000 +0200
@@ -11,7 +11,9 @@
 # prefix-dev=debian/libf2c2-dev
 # prefix=debian/libf2c2
 
-DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
+LD ?= ld
 
 dir=$(package)-$(version)
 file=$(package)_$(version)-$(debian)
@@ -30,16 +32,18 @@
    GCCOPT=$(GCCOP1)
 endif
 
+MAKE_LIB=dh_auto_build --buildsystem=makefile -- -f ./debian/make_lib 
'LD=$(LD)'
+
 override_dh_auto_build:
        if [ $(DEB_HOST_ARCH) = "i386" ] ;\
            then echo "Building for i386" ;\
         fi
 
 ## These take gcc options from GCCOPT 
-       $(MAKE) -f ./debian/make_lib INTSIZE=f2c GCCOPT="$(GCCOPT)"
+       $(MAKE_LIB) INTSIZE=f2c GCCOPT="$(GCCOPT)"
 ## Make sure everything rebuilt for -I2 lib
-       $(MAKE) -f ./debian/make_lib clean
-       $(MAKE) -f ./debian/make_lib INTSIZE=f2c_i2 GCCOPT="$(GCCOPT)"
+       $(MAKE_LIB) clean
+       $(MAKE_LIB) INTSIZE=f2c_i2 GCCOPT="$(GCCOPT)"
 
        ln -s libf2c.so.$(flibver) libf2c.so.$(flibmajorver)
        ln -s libf2c_i2.so.$(flibver) libf2c_i2.so.$(flibmajorver)

--- End Message ---
--- Begin Message ---
Source: libf2c2
Source-Version: 20140711-1
Done: [email protected] (Barak A. Pearlmutter)

We believe that the bug you reported is fixed in the latest version of
libf2c2, 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.
Barak A. Pearlmutter <[email protected]> (supplier of updated libf2c2 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, 11 Jul 2020 00:07:57 +0100
Source: libf2c2
Architecture: source
Version: 20140711-1
Distribution: unstable
Urgency: medium
Maintainer: Barak A. Pearlmutter <[email protected]>
Changed-By: Barak A. Pearlmutter <[email protected]>
Closes: 748989 800040 964373 964374
Changes:
 libf2c2 (20140711-1) unstable; urgency=medium
 .
   [Helmut Grohne]
   * Fix FTCBFS: (Closes: #964374)
     + Let dh_auto_build pass cross tools to make.
     + Make debian/make_lib use the passed cross compiler.
     + Pass a cross ld from dpkg's buildtools.mk to make.
     + cross.patch: Make ld substitutable in makefile.u.
 .
   [ Ondřej Nový ]
   * d/changelog: Remove trailing whitespaces
   * d/control: Remove trailing whitespaces
   * d/rules: Remove trailing whitespaces
 .
   [ Barak A. Pearlmutter ]
   * Trim trailing whitespace.
   * Use secure URI in Homepage field.
   * Bump debhelper from old 11 to 13.
   * Set debhelper-compat version in Build-Depends.
   * Expand comment in debian/watch
   * Patches to use u?int*_t and size_t (closes: #748989, #800040)
   * Take multi-arch hinter's hints (closes: #964373)
   * Ditch dh-exec in favour of dh13 facilities
   * Rules-Requires-Root: no
Checksums-Sha1:
 a46436d27380c442a8fa5ac665e53643a3a4c552 1916 libf2c2_20140711-1.dsc
 53899976d2bb43f9adc596482d7533e43b6b35d6 65824 libf2c2_20140711.orig.tar.xz
 bd5cc5516b0336ba8cfc735f9ef785bd321f0e91 57256 libf2c2_20140711-1.debian.tar.xz
 884c7a9f68c4d22f09bef61e34f6aeef1dbd02b5 5938 
libf2c2_20140711-1_source.buildinfo
Checksums-Sha256:
 5ba22922c47f652303383b260142095d659efc36955740d7644fdc6285f5c9b3 1916 
libf2c2_20140711-1.dsc
 348c21e93752fd93d80ac5cc75f2e34e09bd7de3ae1aa3539eb8005c5a7e61d6 65824 
libf2c2_20140711.orig.tar.xz
 64060522dcd7b826b023f5989621a0aea075f62d25717125bba892819a4c55ad 57256 
libf2c2_20140711-1.debian.tar.xz
 822648202d97a37aba54bdfb3086b64c7b8e7d8c36ff43f23c5c0189df06fbf0 5938 
libf2c2_20140711-1_source.buildinfo
Files:
 80d30095225f517ca4b6b94e7c89d3b6 1916 devel optional libf2c2_20140711-1.dsc
 490040503fa48a671e1bda1d101b8ca3 65824 devel optional 
libf2c2_20140711.orig.tar.xz
 b42815175343b4ce64e384ab2def7689 57256 devel optional 
libf2c2_20140711-1.debian.tar.xz
 973d1ba62e4a33dc35eec922d6d946f9 5938 devel optional 
libf2c2_20140711-1_source.buildinfo

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

iQJDBAEBCgAtFiEEZPQp426hHMLZZlRvEltXR14ZDRgFAl8I9NoPHGJhcEBkZWJp
YW4ub3JnAAoJEBJbV0deGQ0YO7sP/3z62xi7ZCQ80CW7jkI0EeJoh28UvXeKhoAC
qkyR/O6az7VVGgQY2p3MK22l8yeVo9ek2oGnv848r5gSrlMI7Y5rH/RhxbP0C9g3
yhoo8AqJrpMHBjoHWtoewoccrZHXhr6QSbu0uOtzCpWsd2oOzL+tko+d8YvVSL2M
Ts5ky+uTBp7ZfLH7psXjNz8MbjLILM2RHornRBO1S45jZEd+mhuKWctdiBvcKrEZ
MifawOUnjLGTymDavbOTRdkc8ki8/SfCJjAleZ6g1VCG+4TnhU2ZkVWhVr0vflLS
5BSaUQy2YZ8I1HR8Sn24TrDjtryQNVIKEWBLTmTeyNkhzTLMx0RmZ5J1xpHTrEuW
kiiDlqqBxNfElE4io2UQPTsr485J8H5JtX1Akpsbk1Naf30Qw85yYDl1gGMmARG8
JozyJVIJXH5pqoOXWEhRpPEw/4bgvfTL/mQV2OM8NYhMXR1qxs0D9OMlDZlKwruw
1ZZ6qp76PuEEhpQ2qwgOb54zbql/BAPNrqBLP54pG7XBasTt9CIROJKIkaUJ9ODe
mmdMpA7QxoC1fskahlBT4VmWzx6vGc8rI6Vbpor5so7nIOZs/nOEJ6v9AHMK9aON
ZxlfTLb7BXYuYEZbDLb1oKT03e0cMpfVlXFZaPRTt3BurqMmUctGF8E8lBVqAkzn
Zsq85Pg+
=7etZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to