Your message dated Thu, 27 Nov 2025 16:34:34 +0000 with message-id <E1vOex0-008vMp-1G@fasolo.debian.org> and subject line Bug#1085503: fixed in libapache-mod-musicindex 1.4.1-5 has caused the Debian Bug report #1085503, regarding libapache-mod-musicindex FTCBFS: multiple configure issues 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 owner@bugs.debian.org immediately.) -- 1085503: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085503 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: libapache-mod-musicindex FTCBFS: multiple configure issues
- From: Helmut Grohne <helmut@subdivi.de>
- Date: Sun, 20 Oct 2024 11:23:24 +0200
- Message-id: <20241020092324.GA2822693@subdivi.de>
Source: libapache-mod-musicindex Version: 1.4.1-3.1 Tags: patch upstream User: debian-cross@lists.debian.org Usertags: ftcbfs libapache-mod-musicindex fails to cross build from source for multiple reasons, all of which relate to its configure script. It determines the apache version by running a compiled C program. This of course does not work at all for cross building. Fortunately, what it needs here is the value of the MODULE_MAGIC_COOKIE macro and AC_COMPUTE_INT can determine that in a cross setting. It then uses apr1-config, which does not work for cross compilation. I suggest adding an alternate path that queries apr-1.pc using pkg-config. Likewise, mysql_config does not work and querying mysqlclient.pc using pkg-config works. The resulting patch is a bit lengthy, but should improve the situation in a generic way also applicable to distributions other than Debian. Helmut--- libapache-mod-musicindex-1.4.1.orig/configure.ac +++ libapache-mod-musicindex-1.4.1/configure.ac @@ -85,75 +85,46 @@ AC_SUBST(APXS_INCLUDE) AC_MSG_CHECKING([for which version of Apache we should build]) - -################################ ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $APXS_INCLUDE" -cat >conftest.$ac_ext <<_ACEOF -#include <stdio.h> -#include <ap_mmn.h> - -int main(void) -{ -#if (MODULE_MAGIC_COOKIE == 0x41503133UL) - printf("AP13\n"); -#elif (MODULE_MAGIC_COOKIE == 0x41503230UL) - printf("AP20\n"); -#elif (MODULE_MAGIC_COOKIE == 0x41503232UL) - printf("AP22\n"); -#elif (MODULE_MAGIC_COOKIE == 0x41503234UL) - printf("AP24\n"); -#endif -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - apache_version=`./conftest$ac_exeext` -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_lib_mad_mad_bit_init=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +AC_COMPUTE_INT([apache_version_magic],[MODULE_MAGIC_COOKIE],[#include <ap_mmn.h>]) CFLAGS=$ac_save_CFLAGS -################################ + +AC_MSG_RESULT([:$apache_version_magic:]) +case "$apache_version_magic" in + 1095774515) + apache_version=AP13 + ;; + 1095774768) + apache_version=AP20 + AC_DEFINE([AP20], [], ["AP20"]) + ;; + 1095774770) + apache_version=AP22 + AC_DEFINE([AP22], [], ["AP22"]) + ;; + 1095774772) + apache_version=AP24 + AC_DEFINE([AP24], [], ["AP24"]) + ;; +esac AC_MSG_RESULT([${apache_version}]) +PKG_CHECK_MODULES([APR],[apr-1],[ + AC_DEFINE([BUILD_FOR_APACHE2], [], ["apache2"]) + AM_CONDITIONAL(BUILD_FOR_APACHE2, true) + APR_INCLUDE= + AC_SUBST(APR_INCLUDE) + APR_CPPFLAGS= + AC_SUBST(APR_CPPFLAGS) +],[ if test x$apache_version = xAP20; then AC_CHECK_PROG(APR_CONFIG, apr-config, apr-config, [], [], [exit1]) - AC_DEFINE([AP20], [], ["AP20"]) fi -if test x$apache_version = xAP22; then - AC_CHECK_PROG(APR_CONFIG, apr-1-config, apr-1-config, [], [], [exit1]) - AC_DEFINE([AP22], [], ["AP22"]) -fi - -if test x$apache_version = xAP24; then +if test x$apache_version = xAP22 || test x$apache_version = AP24; then AC_CHECK_PROG(APR_CONFIG, apr-1-config, apr-1-config, [], [], [exit1]) - AC_DEFINE([AP24], [], ["AP24"]) fi if test "x$APR_CONFIG" != "x"; then @@ -173,6 +144,7 @@ else AM_CONDITIONAL(BUILD_FOR_APACHE2, false) fi +]) # Checks for libraries. ########################################################################## @@ -306,16 +278,20 @@ ########################################################################## -#check if the user has a prefered mysql_config tool. by default, use mysql_config +#check if the user has a prefered mysql_config tool. by default, use pkg-config AC_ARG_WITH([mysql_config], AC_HELP_STRING([--with-mysql_config=ARG], [mysql_config executable]), [MYSQL_CONFIG="${withval}"], - [MYSQL_CONFIG="mysql_config"]) + [MYSQL_CONFIG="pkg-config"]) + +AS_IF([test "x$MYSQL_CONFIG" = xpkg-config],[ + PKG_CHECK_MODULES([MYSQL],[mysqlclient],[],[MYSQL_CONFIG="mysql_config"]) +]) #check if the mysql_config tool actually exists -if test x$MYSQL_CONFIG != xnone; then +AS_IF([test "x$MYSQL_CONFIG" != xnone && test "x$MYSQL_CONFIG" != xpkg-config],[ AC_PATH_PROG([MYSQL_CONFIG], [$MYSQL_CONFIG], [], [$PATH:/usr/sbin:/usr/local/bin]) -fi +]) AC_ARG_ENABLE([mysqlcache], AC_HELP_STRING([--disable-mysqlcache], [MySQL cache support]), @@ -330,11 +306,15 @@ mysqlcache=false fi -if test x$mysqlcache = xtrue; then +if test "x$mysqlcache" = xtrue && test "x$MYSQL_CONFIG" != xpkg-config; then MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" MYSQL_LIBS="`$MYSQL_CONFIG --libs`" MYSQL_INCLUDE="`$MYSQL_CONFIG --include`" fi +if test "x$mysqlcache" = xfalse; then + MYSQL_CFLAGS= + MYSQL_LIBS= +fi AC_SUBST(MYSQL_CFLAGS) AC_SUBST(MYSQL_LIBS)
--- End Message ---
--- Begin Message ---
- To: 1085503-close@bugs.debian.org
- Subject: Bug#1085503: fixed in libapache-mod-musicindex 1.4.1-5
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Thu, 27 Nov 2025 16:34:34 +0000
- Message-id: <E1vOex0-008vMp-1G@fasolo.debian.org>
- Reply-to: Andreas Tille <tille@debian.org>
Source: libapache-mod-musicindex Source-Version: 1.4.1-5 Done: Andreas Tille <tille@debian.org> We believe that the bug you reported is fixed in the latest version of libapache-mod-musicindex, 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 1085503@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Andreas Tille <tille@debian.org> (supplier of updated libapache-mod-musicindex 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 ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Thu, 27 Nov 2025 17:21:03 +0100 Source: libapache-mod-musicindex Architecture: source Version: 1.4.1-5 Distribution: unstable Urgency: medium Maintainer: Debian QA Group <packages@qa.debian.org> Changed-By: Andreas Tille <tille@debian.org> Closes: 1085503 Changes: libapache-mod-musicindex (1.4.1-5) unstable; urgency=medium . * QA upload. . [ Andreas Tille ] * Set Vcs fields * Standards-Version: 4.7.2 (routine-update) * Fix day-of-week for changelog entry 1.1.1-1. * d/copyright: Remove old FSF address . [ Helmut Grohne * Fix FTCBFS: multiple configure issues Closes: #1085503 Checksums-Sha1: 6158d0aefaabd177781bb0ac5771aed25f1fc2c5 2278 libapache-mod-musicindex_1.4.1-5.dsc 727f894ed00f51d664526c08f3a15c5fcc3bf121 11516 libapache-mod-musicindex_1.4.1-5.debian.tar.xz 18a32e852a673f3ac9eb3d23066c9faa37c3c5f1 8620 libapache-mod-musicindex_1.4.1-5_amd64.buildinfo Checksums-Sha256: 24079d79c3138f270aecb7d28e17537800201b282dbe5be4f4d068318d409e17 2278 libapache-mod-musicindex_1.4.1-5.dsc a782adb71bee545327f5e2e2699900ad46f890444d4d9367db284fe483e838b7 11516 libapache-mod-musicindex_1.4.1-5.debian.tar.xz 1e2afbef84bad257f14f2d74286686eee36cc9ed455003d04e48372ef189f45d 8620 libapache-mod-musicindex_1.4.1-5_amd64.buildinfo Files: 1d2a1d962008a3e1428d3aedc6a682d1 2278 httpd optional libapache-mod-musicindex_1.4.1-5.dsc b953d813c0cde4024a0a3d3fdab73b28 11516 httpd optional libapache-mod-musicindex_1.4.1-5.debian.tar.xz 8aba0e9be93804beb0d9b42e8393d2eb 8620 httpd optional libapache-mod-musicindex_1.4.1-5_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmkoetURHHRpbGxlQGRl Ymlhbi5vcmcACgkQV4oElNHGRtEzDQ//Uh9w02YllHrPJoLcYA9ohXwm1alEWZyK 3+zaInayeiSvqjha10KMgAPT9z80Cc4j+kD34OUNuOJptSe4rf5UhRHhzCaG/tBw CA0Dqg86NoLEqpbHuX72Ud8l86FInCHqfFD456846Ch9sLSDMGxKc/246pT6EICY PPISSsbq/6jED29M3AbyGxMvYq5sQNiVnqbLvxAVsm78LqPRzNbI4AsnelQrdK41 XGD14/gRCctgpDOxMnQhu/j9KzsBiKqj8LQGA6URoZ66cTxtEzq0h2Q1V20ilgGY M35mJ471r4E5XSjou5PwyEVeprbmhkWeSZIK4s5Vo12ZZDS3tJQyAPUwXRaIO5Q6 HWDajPfvzS3TQfpbRIZufQyp9+XJ9yOCeixAZShE1hcTD/MfSwVlTlggmfN71wGm V6P31IQ7I32OkZ8eljs1D45GXBReAL65XnaQ/jy2xARxehOpWiP4R6JM63Ordh55 TpeMuNFcNPgWJBMnqaKFPjOEhc6OIbQ5vApRJ72MAZGP9X33ldFXQoHTNny2ETqb Umt+TjU2Ok5MHvBf6l/Jj7NyGPreyiS/caEu6xxADnlsyMHHXeRiVDl9OKxDRJfR Y6KEFLhZ1Y9q1k2Wt0Gl2uzRanzUS3jwgjQvfVeAkBiv00kmIy0QNQ+GOsfM8PQ8 P1Rn70Gk+BQ= =SiJW -----END PGP SIGNATURE-----Attachment: pgp2OIrGYX6VJ.pgp
Description: PGP signature
--- End Message ---