Your message dated Wed, 23 Sep 2020 06:18:35 +0000
with message-id <[email protected]>
and subject line Bug#968482: fixed in monit 1:5.27.0-2
has caused the Debian Bug report #968482,
regarding monit FTCBFS: new AC_RUN_IFELSE checks
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.)
--
968482: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968482
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: monit
Version: 1:5.27.0-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
monit fails to cross build from source. It is well prepared for cross
compilation in many places and likely crossed in the past, but recently
gained an incompatible check for __STDC_VERSION__. It can be easily
replaced with AC_COMPUTE_INT, which is cross build compatible. Please
consider applying the attached patch.
Helmut
--- monit-5.27.0.orig/configure.ac
+++ monit-5.27.0/configure.ac
@@ -434,15 +434,8 @@
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return 0;])], [], [CFLAGS="$svd_CFLAGS"])
# Require at least C99 and use C11 if available
-AC_RUN_IFELSE(
-[AC_LANG_PROGRAM([], [dnl
- #ifdef __STDC_VERSION__
- #if __STDC_VERSION__ >= 201112L
- return 0;
- #endif
- #endif
- return 1;
- ])], [CFLAGS="$CFLAGS -std=c11"], [CFLAGS="$CFLAGS -std=c99"])
+AC_COMPUTE_INT([STDC_VERSION],[__STDC_VERSION__],,[STDC_VERSION=0])
+AS_IF([test "$STDC_VERSION" -ge 201112],[CFLAGS="$CFLAGS -std=c11"],[CFLAGS="$CFLAGS -std=c99"])
AC_CHECK_HEADERS([stdint.h stdbool.h], [], [AC_MSG_ERROR([toolchain does not have C99 headers])])
--- monit-5.27.0.orig/libmonit/configure.ac
+++ monit-5.27.0/libmonit/configure.ac
@@ -332,15 +332,8 @@
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return 0;])], [], [CFLAGS="$svd_CFLAGS"])
# Require at least C99 and use C11 if available
-AC_RUN_IFELSE(
-[AC_LANG_PROGRAM([], [dnl
- #ifdef __STDC_VERSION__
- #if __STDC_VERSION__ >= 201112L
- return 0;
- #endif
- #endif
- return 1;
- ])], [CFLAGS="$CFLAGS -std=c11"], [CFLAGS="$CFLAGS -std=c99"])
+AC_COMPUTE_INT([STDC_VERSION],[__STDC_VERSION__],,[STDC_VERSION=0])
+AS_IF([test "$STDC_VERSION" -ge 201112],[CFLAGS="$CFLAGS -std=c11"],[CFLAGS="$CFLAGS -std=c99"])
AC_CHECK_HEADERS([stdint.h stdbool.h], [], [AC_MSG_ERROR([toolchain does not have C99 headers])])
# ------------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
Source: monit
Source-Version: 1:5.27.0-2
Done: Sergey B Kirpichev <[email protected]>
We believe that the bug you reported is fixed in the latest version of
monit, 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.
Sergey B Kirpichev <[email protected]> (supplier of updated monit 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: SHA256
Format: 1.8
Date: Wed, 23 Sep 2020 08:43:03 +0300
Source: monit
Architecture: source
Version: 1:5.27.0-2
Distribution: unstable
Urgency: medium
Maintainer: Sergey B Kirpichev <[email protected]>
Changed-By: Sergey B Kirpichev <[email protected]>
Closes: 968482
Changes:
monit (1:5.27.0-2) unstable; urgency=medium
.
* Restore cross-build compatibility. Closes: #968482,
thanks to Helmut Grohne.
* Update debhelper-compat version
* Drop obsoleted (in bullseye) DEB_LDFLAGS_MAINT_APPEND
* Fix Forwarded header in 07_cross.patch
Checksums-Sha1:
1e1aea00d083d82a13f5b29a2d34803392b3da69 1901 monit_5.27.0-2.dsc
179a3ccd8b6332c560d3c4bbf397c8ebf7454a4f 29644 monit_5.27.0-2.debian.tar.xz
351c24909dd41d849243404e3e46b257a8636cff 6449 monit_5.27.0-2_amd64.buildinfo
Checksums-Sha256:
d32207de7ee3ec7f895a31cd705933de426d53af3bca464c286d52f4fbf9e1ed 1901
monit_5.27.0-2.dsc
f7a0a502763dc7760051db6de7d2406f8617e63924fe500aa23eb1d6a07321f0 29644
monit_5.27.0-2.debian.tar.xz
efe5ae94ce1b2640c282950989b6d4b535ad5195dee9e3fc37534423c59c9d93 6449
monit_5.27.0-2_amd64.buildinfo
Files:
4432fc08d835ee2626f4599907d92e23 1901 admin optional monit_5.27.0-2.dsc
38af09746ecafef2ebe6b69dec0bc158 29644 admin optional
monit_5.27.0-2.debian.tar.xz
4078ac76e4b9db7e8b2330364451fb05 6449 admin optional
monit_5.27.0-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE22Z64ufHku9jdO/fOcmgtkAmKvAFAl9q5koACgkQOcmgtkAm
KvBHSg//REkAthxkNfCBztfvf53c9R2grqA0TFWExfuzF+mpxXQpGf7yx3GIjmwi
80Uvp4BZG6kgqIdrG1pip5snrV3nEsQ4dHLUVPYyEzZbthl6KXcsjW5Q50xEVlrb
AU2lclcReKnU2Bpq69O4/eckm+b7ZyEVaDATrWF7TF9cOgomSEv7QAA/vGU74sCT
1h54BcyyJ3KhOu8dkSn2xb7tLyNiA5aLcuIFuLWKJjNFJ2F4AIYUc2ZNahMIQo3h
pfRkFmRsL9KC+NmA47I2XORSCEwVn6ajfqH+CkupLg3VMLn3dw6a6I3YgrD5yz8v
NGlfBlnkuH97TYBlXuom0Vu9ZYWbD0nPt5e1iTiVy0LqOAhNANXJeGld5+fq/Dtl
eXJu+FVA6wexh0dD5+dfrY3p9+G9Bq2UJBpi1EZjTtuaPxosJDNAV0ThzHv2SfF/
IEP0PKyWxYgwzEysPGuL8X64eYTlYfIk8pMDVX4JSnbg4CsI2z9Dgfjp775L16bz
1iaU0MB8G/A/Bur+DDwl/p/1Hkp+Yx59I98xMWNuoEl84Y3hBAHJN7VenCdMpewJ
QXPPBNU84RWJ1xZxNxaHarD+uEwXQCP2CKm+glTUhzUOe0JbiF3Mm7d/Zxi3lF/h
25+Qm5AkCkDbne86H2bOGXW9SE4IvcNPiwr0dlcKrtCujDlY7VA=
=USLr
-----END PGP SIGNATURE-----
--- End Message ---