Your message dated Sun, 19 Oct 2025 19:04:28 +0000
with message-id <[email protected]>
and subject line Bug#1117018: fixed in acr 2.2.4-2
has caused the Debian Bug report #1117018,
regarding acr: fails to detect a C++ cross compiler by default
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.)


-- 
1117018: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1117018
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: acr
Version: 2.2.2-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
Control: affects -1 + src:tudu

tudu fails to cross build from source, because it fails to detect a 
working cross compiler. It uses acr and that happens to roughly work in 
this way:
 * Consider the environment variable CXX.
 * When it is unset, default it to "c++".
 * When cross compiling, try <triplet>-$CXX.
 * Fall back to $CXX (i.e. c++).

Now Debian has /usr/bin/c++, but no /usr/bin/<triplet>-c++. That might 
be considered a bug, but even if that were to change, acr would be 
incompatible with older versions of Debian. I propose adding another 
fallback. If <triplet>-$CXX is not to be found, I suggest additionally 
checking <triplet>-g++ as that's also what autoconf does. Once doing so, 
tudu cross builds successfully. I'm attaching a patch for your 
convenience.

Helmut
--- acr-2.2.2.orig/src/acr-sh
+++ acr-2.2.2/src/acr-sh
@@ -929,7 +929,10 @@
 ochof \"checking for c++ compiler... \"
 if [ \"${S}{CROSSBUILD}\" = 1 ]; then
 (command -v ${S}{HOST}-${S}{CXX} 2>&1 >/dev/null)
-if [ \"${S}?\" = 0 ]; then CXX=\"${S}{HOST}-${S}{CXX}\"; fi
+if [ \"${S}?\" = 0 ]; then CXX=\"${S}{HOST}-${S}{CXX}\"; else
+(command -v ${S}{HOST}-g++ 2>&1 >/dev/null)
+if [ \"${S}?\" = 0 ]; then CXX=\"${S}{HOST}-g++\"; fi
+fi
 fi
 echo \"#include <iostream>\" > test.cxx
 echo \"int main(){ std::cout << 1; return 0;}\" >> test.cxx

--- End Message ---
--- Begin Message ---
Source: acr
Source-Version: 2.2.4-2
Done: Akash Doppalapudi <[email protected]>

We believe that the bug you reported is fixed in the latest version of
acr, 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.
Akash Doppalapudi <[email protected]> (supplier of updated acr 
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: Sun, 19 Oct 2025 13:18:58 +0530
Source: acr
Architecture: source
Version: 2.2.4-2
Distribution: unstable
Urgency: medium
Maintainer: Akash Doppalapudi <[email protected]>
Changed-By: Akash Doppalapudi <[email protected]>
Closes: 1117018
Changes:
 acr (2.2.4-2) unstable; urgency=medium
 .
   * d/p/002-cxx-cross-compiler.patch:
     - Patch for cxx cross compiler detection (Closes: #1117018)
Checksums-Sha1:
 09076db58c0f21739d92f01f9962f4ecd3f949fa 1652 acr_2.2.4-2.dsc
 283182292ed1afa7e982c875212c62f60aa1274d 5556 acr_2.2.4-2.debian.tar.xz
 f600606ee7ed8aa32d037c64742e28b6ec0454b3 5466 acr_2.2.4-2_source.buildinfo
Checksums-Sha256:
 c4e1bf116f925aa85452f260e3547fc43f9f2a9e6f0cca76a04808c7c076efdf 1652 
acr_2.2.4-2.dsc
 53becb81bcf001085336fdc0cd5dbda9447d538e9f77a5c2cbc4d3b083596d8a 5556 
acr_2.2.4-2.debian.tar.xz
 e827e89fe63698f2a34a636e33f314839db3c19198407e792fecaff60dc5279f 5466 
acr_2.2.4-2_source.buildinfo
Files:
 f705be373563b11cf2e1326a448078b4 1652 devel optional acr_2.2.4-2.dsc
 330372c195009278c6f040b3ba5406ac 5556 devel optional acr_2.2.4-2.debian.tar.xz
 f0b4bb7e30f035258b763a7f237ad73b 5466 devel optional 
acr_2.2.4-2_source.buildinfo

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

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmj1MjoQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFODZDACMsGzJokNVdok9OuN1CbAvfic2AJhHsoRf
gVlu3ZGAWvx42/DgZlQf9CREX2lhxJkn38P2kPFifjwFcKYBPN7B6UW/mwxOrpFk
ZlbC6L4jJy0pJBbQDtpw/bXEMTBWDYqWOsVGUSSPtF3NuL4rS+Pez9oKphKn6/LH
G/TstX4d0aL370kpYLW1MluM2oaBxQGli9Gbbn7oDgxI0OUajOAM1R9v+T8GBY7c
UVwNYM0n0tLcwaj2103uhywUOfESm4SgaldeSH4RL8M1gKOgGmXHFxZh3/LFqoB7
xD1rKQsPgf12uiLVJxDCyanK+0EkEVTkoltBsIJPcUkGvjxCeIR5DT+ZmBTVW3MK
jeCFWLe24meR7pgBYViGt889s/iYIcOFIjcN60AXepUAKkv04FR56sNCdU5lYoxj
Rlo0/W44rv32IULP5b25LbW1ae9Zhi3ZyUJlypNBKyDsafGdYcbKIlIF0ryDtQ1k
buJo9mnw6q0ifMFra8z7awDQLSX28NM=
=v4Le
-----END PGP SIGNATURE-----

Attachment: pgp2Vtn5PY9Nt.pgp
Description: PGP signature


--- End Message ---

Reply via email to