Your message dated Sun, 31 Mar 2024 22:51:36 +0000
with message-id <e1rr41y-008fum...@fasolo.debian.org>
and subject line Bug#1027405: fixed in regina-rexx 3.9.5+dfsg1-0.1
has caused the Debian Bug report #1027405,
regarding regina-rexx 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 ow...@bugs.debian.org
immediately.)


-- 
1027405: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027405
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: regina-rexx
Version: 3.6-2.4
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

regina-rexx fails to cross build from source, because it builds for the
build architecture. Fixing this is not entirely trivial. The obvious fix
of passing --build and --host to configure is insufficient. Beyond that,
the C compiler must be forced via the CC environment variable. Even
then, the build system fails to transfer this assignment over to make.
To make matters worse, it skips checking for --version-script (and thus
symbol versioning) unless the compiler is exactly gcc. I'm attaching a
patch for your convenience.

Helmut
diff --minimal -Nru regina-rexx-3.6/debian/changelog 
regina-rexx-3.6/debian/changelog
--- regina-rexx-3.6/debian/changelog    2021-05-06 18:28:52.000000000 +0200
+++ regina-rexx-3.6/debian/changelog    2022-12-23 23:43:11.000000000 +0100
@@ -1,3 +1,13 @@
+regina-rexx (3.6-2.5) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Pass --build and --host to configure.
+    + Pass CC to configure and make.
+    + cross.patch: Check for --version-script even if the compiler is prefixed.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 23 Dec 2022 23:43:11 +0100
+
 regina-rexx (3.6-2.4) unstable; urgency=medium
 
   * Non-maintainer upload with maintaner agreement.
diff --minimal -Nru regina-rexx-3.6/debian/patches/cross.patch 
regina-rexx-3.6/debian/patches/cross.patch
--- regina-rexx-3.6/debian/patches/cross.patch  1970-01-01 01:00:00.000000000 
+0100
+++ regina-rexx-3.6/debian/patches/cross.patch  2022-12-23 23:43:11.000000000 
+0100
@@ -0,0 +1,33 @@
+--- regina-rexx-3.6.orig/configure.in
++++ regina-rexx-3.6/configure.in
+@@ -346,9 +346,7 @@
+ AC_SUBST(GCI_SHO)
+ AC_SUBST(HAVE_GCI)
+ 
+-if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
+-   MH_CHECK_GCC_VERSION_SCRIPT
+-fi
++MH_CHECK_GCC_VERSION_SCRIPT
+ 
+ dnl enable_posix_threads="yes"
+ MH_CHECK_POSIX_THREADS
+--- regina-rexx-3.6.orig/configure
++++ regina-rexx-3.6/configure
+@@ -5862,8 +5862,6 @@
+ 
+ 
+ 
+-if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
+-
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands 
--version-script" >&5
+ $as_echo_n "checking whether gcc understands --version-script... " >&6; }
+ if test "${mh_cv_version_script+set}" = set; then :
+@@ -5909,8 +5907,6 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_version_script" >&5
+ $as_echo "$mh_cv_version_script" >&6; }
+ 
+-fi
+-
+ 
+ MH_MT_LIBS=""
+ THREADING_COMPILE=""
diff --minimal -Nru regina-rexx-3.6/debian/patches/series 
regina-rexx-3.6/debian/patches/series
--- regina-rexx-3.6/debian/patches/series       2021-05-06 17:13:47.000000000 
+0200
+++ regina-rexx-3.6/debian/patches/series       2022-12-23 23:43:11.000000000 
+0100
@@ -7,3 +7,4 @@
 0000_Makefile.in_Debian-Installation.diff
 2000_regina-config_use-wrapper.diff
 2000_Makefile.in_Do-not-hardcode-FLAGS.diff
+cross.patch
diff --minimal -Nru regina-rexx-3.6/debian/rules regina-rexx-3.6/debian/rules
--- regina-rexx-3.6/debian/rules        2021-05-06 18:28:52.000000000 +0200
+++ regina-rexx-3.6/debian/rules        2022-12-23 23:43:11.000000000 +0100
@@ -18,9 +18,8 @@
 
 rexxpkg=regina-rexx
 
-export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-export DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+export DEB_HOST_ARCH DEB_BUILD_ARCH DEB_HOST_MULTIARCH
 
 ifeq ($(DEB_BUILD_ARCH), ia64)
        DEB_CFLAGS_MAINT_STRIP=""
@@ -31,7 +30,10 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+include /usr/share/dpkg/buildtools.mk
+
 confflags=--prefix=/usr \
+       --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
        --with-addon-dir=/usr/lib/$(DEB_HOST_MULTIARCH)/$(rexxpkg)/$(soversion) 
\
        --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
 
@@ -47,7 +49,7 @@
        [ -e "$(CONFIGTGZ)" ] || tar -cvzf $(CONFIGTGZ) $(addprefix 
common/,$(CONFIGS))
        for i in $(CONFIGS); do cp -f /usr/share/misc/$$i common/$$i; done
        # Add here commands to configure the package.
-       ./configure $(confflags)
+       CC=$(CC) ./configure $(confflags)
        touch configure-stamp
 
 build: build-arch build-indep
@@ -57,7 +59,7 @@
        dh_testdir
 
        # Add here commands to compile the package.
-       $(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
+       $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
        #docbook-to-man debian/pam-encfs.sgml > pam-encfs.1
        cat README.0* README.2* README.3* > $(HISTORY)
 

--- End Message ---
--- Begin Message ---
Source: regina-rexx
Source-Version: 3.9.5+dfsg1-0.1
Done: Agustin Martin Domingo <agmar...@debian.org>

We believe that the bug you reported is fixed in the latest version of
regina-rexx, 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 1027...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Agustin Martin Domingo <agmar...@debian.org> (supplier of updated regina-rexx 
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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 01 Apr 2024 00:06:09 +0200
Source: regina-rexx
Architecture: source
Version: 3.9.5+dfsg1-0.1
Distribution: unstable
Urgency: medium
Maintainer: Alen Zekulic <a...@nms.hr>
Changed-By: Agustin Martin Domingo <agmar...@debian.org>
Closes: 1027405 1066314
Changes:
 regina-rexx (3.9.5+dfsg1-0.1) unstable; urgency=medium
 .
   * Non-maintainer upload with maintaner agreement.
 .
   [ Debian Janitor ]
   * Use secure URI in debian/watch.
   * Fix day-of-week for changelog entry 2.2-1.
   * Update standards version to 4.5.1, no changes needed.
   * Use secure URI in Homepage field.
   * Update standards version to 4.6.1, no changes needed.
 .
   [ Agustin Martin Domingo ]
   * New upstream version (Closes: #1066314).
     - Remove REGUTIL_TERM_LIB stuff (#930005). Fixed upstream in a
       simpler way.
     - 0000_configures_fix-alpha-compilation.diff: renamed from
       0000_AZ_configures.diff for clarity.
     - 0001_configures_do-not-regenerate-debian-rules.diff: Do not
       regenerate debian/rules. We do not use upstream debian dir.
     - 0000_AZ_regina.1.diff: Remove. Fixed upstream.
     - 0000_Makefile.in_Debian-Installation.diff. Remove. Unneeded.
     - 0000_AZ_Makefile.in.diff: Remove. Seems no longer needed.
     - 2000_regina-config_use-wrapper.diff: Upgrade.
     - 2000_Makefile.in_Do-not-hardcode-FLAGS.diff: Better use "?=".
     - libregina3.symbols: Upgrade for new symbols added in 3.7.
     - Upgrade install, links and manpages stuff for new upstream version.
   * Build for the host arch, thanks Helmut Grohne (Closes: #1027405).
   * debian/rules:
     - Read relevant version info from regina.ver file.
     - Revert file ordering in HISTORY FILE. Newer first.
     - Install HACKERS.txt.
     - Let configure deal with GCI on supported platforms.
   * debian/watch: fix to narrow allowed extensions.
   * debian/copyright: Make DEP5 format.
   * README.source,copyright,watch: Exclude files with unclear license.
   * debian/control:
     - Bump Standards-Version. No changes required.
     - Change BD libncurses5-dev => libncurses-dev.
     - Bump debhelper-compat to 13.
Checksums-Sha1:
 2f3d3864a49fc25d302798c35f2a4489eef5d9ee 2043 regina-rexx_3.9.5+dfsg1-0.1.dsc
 04163da224611702a83cd74f203a0e043d6e9860 2281208 
regina-rexx_3.9.5+dfsg1.orig.tar.xz
 3dcbf124e43492152bd54101322ff4784d3d95bb 14064 
regina-rexx_3.9.5+dfsg1-0.1.debian.tar.xz
 18cfdc48275cd0eab9eed1704c0fbc220e1e9829 7511 
regina-rexx_3.9.5+dfsg1-0.1_amd64.buildinfo
Checksums-Sha256:
 fbe5bfe058c0c83e7344eb04e606d534f66976c64dc878cdf9ccf38926200486 2043 
regina-rexx_3.9.5+dfsg1-0.1.dsc
 fa4b269aca72e959b2c991bbbccd516c76d7d2ed1db147707721d1808a045264 2281208 
regina-rexx_3.9.5+dfsg1.orig.tar.xz
 1062ff4bb6eea27d42341d1948dfe547b5f696878954bc892c5bdcf364781a2e 14064 
regina-rexx_3.9.5+dfsg1-0.1.debian.tar.xz
 1d95df28479d36317f16eddc8c9de9048e6f791ce56d7099bccfc8b83d719f2c 7511 
regina-rexx_3.9.5+dfsg1-0.1_amd64.buildinfo
Files:
 e8307ba54c79d0b80802f9c3daaeddc3 2043 libs optional 
regina-rexx_3.9.5+dfsg1-0.1.dsc
 f4da84b6ce439c900900994e0f6df5d6 2281208 libs optional 
regina-rexx_3.9.5+dfsg1.orig.tar.xz
 41bea8dbbfd3d3881e4259942d62191f 14064 libs optional 
regina-rexx_3.9.5+dfsg1-0.1.debian.tar.xz
 c52ea7215d768a23af746a708d48e252 7511 libs optional 
regina-rexx_3.9.5+dfsg1-0.1_amd64.buildinfo

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

iQIzBAEBCAAdFiEEEehey7p+gYd346SEFJrCLeiggvwFAmYJ4pQACgkQFJrCLeig
gvywqg//cqsCdEyhwWGF9Q7SCsxoovpqMELWyMJGvFYCzhesStjyhMbtRMCrF/tA
OAV0da/bC9tRu2OG8LFkQPupyOlG1HF+A7uQe7McI974lJ1HVPs3iQzlCceWPRIm
+RU4Io+zqXOLskm83+0Nq/CsTfvOCg6wVvnScIGpj7OsHNmngM6zu7wM++GUpcx5
p6oHmAvNjzAZ3cexkPrewnfZCFkk8IsVdFFoTtqIQwv+mpZ3zdhtQj1od++yYBcy
CPOurJiMp99SUUT120hDJaQ3KiHTPy+sVfUB5EJx19dAbL4dxDHGMyiIwGWCQ9AJ
u5N/f36SMx1yjRcpA9P8vNO50vgIyNLiTYEA2Ml3OLW/OgFuJCjQRBTwDVfPqZr5
X7LYVvq0FWAoohS7/NauE4zkZKTJGNRsDfQpsMhLzONUNWrDVO/EDhd3SQqvipPa
WX4LHIaLfOIzZYjc+8o/PFIlioMnPuzhKQ5+5v73/1zeDr1GqXCGLfYVHFAH/GS9
OzfcBmERlBwIYauJgLiMGjPo/qmZwrTVsbyVrB5HgrDiTguRzpFoTEzlcf1NFeqf
/2dZk8owPomQZrCoSr0+Ob9dl5d8TTdK93oqOxd+m7Fz1zIfPhuzEiupURqahDtI
5AEuVLTfNuvId0pKUIoY6/U3GNcYvzZzwWDN4rkBp5S84jw+1c4=
=7p6k
-----END PGP SIGNATURE-----

Attachment: pgpOO3BEq1joZ.pgp
Description: PGP signature


--- End Message ---

Reply via email to