[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#913094: marked as done (apache2 FTCBFS: multiple reasons)



Your message dated Fri, 05 Dec 2025 06:04:39 +0000
with message-id <E1vROvn-00GOCW-1d@fasolo.debian.org>
and subject line Bug#913094: fixed in apache2 2.4.66-1
has caused the Debian Bug report #913094,
regarding apache2 FTCBFS: multiple reasons
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.)


-- 
913094: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913094
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: apache2
Version: 2.4.37-1
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

apache2 fails to cross build from source. Let me explain the individual
subproblems.

 * The build dependency on the host architecture perl conflicts with the
   essential build architecture perl. It turns out, apache2 wants to run
   perl during build, so it actually needs the build architecture perl.
   Annotating the dependency with :any fixes that.

 * ./configure fails finding .pc files, because it uses the build
   architecture pkg-config. It should be using AC_PATH_TOOL (or better
   PKG_PROG_PKG_CONFIG) rather than AC_PATH_PROG.

 * Fixing configure.ac does not influence the build as ./configure is
   not built from source. dh-autoreconf fixes that.

 * Finally, the build fails running ./server/gen_test_char. It should be
   built with the build architecture compiler, but the build system is
   incapable of doing so. The mailing list suggests just compiling and
   running that file ahead of the actual build.

After applying the attached patch, apache2 cross builds successfully.
Please consider using it.

Helmut
diff --minimal -Nru apache2-2.4.37/debian/changelog apache2-2.4.37/debian/changelog
--- apache2-2.4.37/debian/changelog	2018-11-03 14:26:31.000000000 +0100
+++ apache2-2.4.37/debian/changelog	2018-11-06 20:19:31.000000000 +0100
@@ -1,3 +1,13 @@
+apache2 (2.4.37-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Annotate perl build dependency with :any.
+    + cross.patch: Use AC_PATH_TOOL to find pkg-config.
+    + Generate server/test_char.h ahead of the build
+
+ -- Helmut Grohne <helmut@subdivi.de>  Tue, 06 Nov 2018 20:19:31 +0100
+
 apache2 (2.4.37-1) unstable; urgency=medium
 
   * New upstream version
diff --minimal -Nru apache2-2.4.37/debian/control apache2-2.4.37/debian/control
--- apache2-2.4.37/debian/control	2018-11-03 12:34:33.000000000 +0100
+++ apache2-2.4.37/debian/control	2018-11-06 20:19:31.000000000 +0100
@@ -6,6 +6,7 @@
            Arno Töll <arno@debian.org>,
            Ondřej Surý <ondrej@debian.org>
 Build-Depends: debhelper (>= 9.20160709~),
+               dh-autoreconf,
                dpkg-dev (>= 1.16.1~),
                gawk | awk,
                libapr1-dev (>= 1.6.0),
@@ -17,7 +18,7 @@
                libssl-dev (>= 1.1.1),
                libxml2-dev,
                lsb-release,
-               perl,
+               perl:any,
                zlib1g-dev,
                libcurl4-openssl-dev | libcurl4-dev,
                libjansson-dev
diff --minimal -Nru apache2-2.4.37/debian/patches/cross.patch apache2-2.4.37/debian/patches/cross.patch
--- apache2-2.4.37/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ apache2-2.4.37/debian/patches/cross.patch	2018-11-06 20:19:31.000000000 +0100
@@ -0,0 +1,11 @@
+--- apache2-2.4.37.orig/configure.in
++++ apache2-2.4.37/configure.in
+@@ -370,7 +370,7 @@
+ dnl ## Check for programs
+ 
+ AC_PATH_PROG(RM, rm)
+-AC_PATH_PROG(PKGCONFIG, pkg-config)
++AC_PATH_TOOL(PKGCONFIG, pkg-config)
+ AC_PATH_PROG(RSYNC, rsync)
+ AC_PROG_AWK
+ AC_PROG_LN_S
diff --minimal -Nru apache2-2.4.37/debian/patches/series apache2-2.4.37/debian/patches/series
--- apache2-2.4.37/debian/patches/series	2018-11-03 14:26:31.000000000 +0100
+++ apache2-2.4.37/debian/patches/series	2018-11-06 20:19:31.000000000 +0100
@@ -8,3 +8,4 @@
 # This patch is applied manually
 #suexec-custom.patch
 setenvifexpr.diff
+cross.patch
diff --minimal -Nru apache2-2.4.37/debian/rules apache2-2.4.37/debian/rules
--- apache2-2.4.37/debian/rules	2018-11-03 12:34:33.000000000 +0100
+++ apache2-2.4.37/debian/rules	2018-11-06 20:19:31.000000000 +0100
@@ -9,6 +9,8 @@
 export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
 include /usr/share/dpkg/buildflags.mk
 include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
+CC_FOR_BUILD ?= cc
 
 LSB_RELEASE := $(shell lsb_release -i -s)
 SERVER_VERSION := $(shell dpkg-parsechangelog | perl -ne 'print $$1 if m/Version:\s*([\d\.]+)/')
@@ -100,7 +102,7 @@
 	touch $@
 
 clean build build-arch build-indep binary binary-arch binary-indep: %:
-	dh $@ --parallel --with systemd
+	dh $@ --parallel --with systemd --with=autoreconf
 
 override_dh_auto_configure: configure-stamp
 configure-stamp: prebuild-checks-stamp support/suexec-custom.c
@@ -118,6 +120,11 @@
 		--enable-mods-static="unixd logio watchdog version" \
 		CFLAGS="$(AP2_CFLAGS)" CPPFLAGS="$(AP2_CPPFLAGS)" LDFLAGS="$(AP2_LDFLAGS)" \
 		LTFLAGS="$(AP2_LTFLAGS)" SHELL=/bin/bash
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+	touch server/gen_test_char.lo
+	$(CC_FOR_BUILD) -DCROSS_COMPILE server/gen_test_char.c -o server/gen_test_char
+	./server/gen_test_char > server/test_char.h
+endif
 	touch $@
 
 debian/config-dir/apache2.conf: debian/config-dir/apache2.conf.in

--- End Message ---
--- Begin Message ---
Source: apache2
Source-Version: 2.4.66-1
Done: Yadd <yadd@debian.org>

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

Debian distribution maintenance software
pp.
Yadd <yadd@debian.org> (supplier of updated apache2 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: Fri, 05 Dec 2025 06:35:34 +0100
Source: apache2
Architecture: source
Version: 2.4.66-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Yadd <yadd@debian.org>
Closes: 713967 860087 900612 913094 927302 1091855 1105015 1121926
Changes:
 apache2 (2.4.66-1) unstable; urgency=medium
 .
   [ Laurent Bigonville ]
   * Enable systemd module (Closes: #860087).
   * debian/apache2ctl: Fix the restart and greceful when using system.
     When apache is not running and restart or greceful is called, apache
     was running in the user cgroup and system was be confused
     (Closes: #927302).
     This will also avoid to leak fd to apache
     (Closes: #713967).
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: (Closes: #913094)
     + Annotate perl build dependency with :any.
     + cross.patch: Use AC_PATH_TOOL to find pkg-config.
     + Generate server/test_char.h ahead of the build
 .
   [ Jason Perrin ]
   * Fix packaging steps undo setting of setuid bit
     (Closes: #900612)
 .
   [ Bastien Roucariès]
   * Harden systemd services. Set ProtectSystem=full
     ProtectHome=read-only, RestrictSUIDSGID=yes.
     This may break read-write CGI script to /home and
     WebDaV or other CGI/php/lua uses.
   * Move /var/run to /run and /var/lock to /run/lock
   * Allow CAP_SYS_CHROOT for chroot
     (Closes: #1091855)
   * Remove apache2 IPC
 .
   [ Moritz Schlarb ]
   * Support Rules-Requires-Root: no (Closes: #1105015)
 .
   [ Yadd ]
   * New upstream version (Closes: #1121926, CVE-2025-55753, CVE-2025-58098,
     CVE-2025-59775, CVE-2025-65082, CVE-2025-66200)
Checksums-Sha1: 
 353539cbd2a956141089d588d38ff4e89cb04113 3582 apache2_2.4.66-1.dsc
 9a2de37ab3a9e4603a0a98f4e2255a6bfed005d4 9828043 apache2_2.4.66.orig.tar.gz
 a0525bf2f2f51a508b61d7d78e3dca19276de0d0 833 apache2_2.4.66.orig.tar.gz.asc
 757d7919f2d453f71d2a8cd4768e474f349dc29c 828600 apache2_2.4.66-1.debian.tar.xz
Checksums-Sha256: 
 d54458d3c50920ec869701d87b57ab433f0b40777902f2f7f427bbf0793edff4 3582 apache2_2.4.66-1.dsc
 442184763b60936471b88a91275f79d2407733b7aac27e345f270e8bc31c3d49 9828043 apache2_2.4.66.orig.tar.gz
 d39cdcb8d723e3c5bd4edc1e248d52c4fd352fb10eeda91cae973b12325605bc 833 apache2_2.4.66.orig.tar.gz.asc
 cbc7a62876ef92efce41dd3bdfa4bdd6f299ce47a203de39e61cab7ba95de161 828600 apache2_2.4.66-1.debian.tar.xz
Files: 
 0146a571ee98c8af7da73af2f078a349 3582 httpd optional apache2_2.4.66-1.dsc
 91b20bb90cf7d1eeb225e5b7246ce93d 9828043 httpd optional apache2_2.4.66.orig.tar.gz
 2823799bf1d4b8e771a672d1d6f6ce60 833 httpd optional apache2_2.4.66.orig.tar.gz.asc
 106d6b2885fdf73cf6e579634429a9b6 828600 httpd optional apache2_2.4.66-1.debian.tar.xz

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

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmkycRYACgkQ9tdMp8mZ
7ukinQ//V3nDfUF9f6NvA4VoiWPQAsIfgabVNhDed/fX27WSwGt7A/AXykLje/By
P2+WWs6BbJcDaZby6E2iHXFwd3jx22hlItBV2lzr1Q0Kex2O23bAaqtk5qjhD5No
1n7rRAQtgmKHDtpkpPle0Z4FMJf3BxVdfYOvHyr3mTAkyYZqktcKtrFK9Kzo0J9B
kquKsvDNDo/SynUScjMX7L+VBxS4FQwJ2B6gY2iEI6guBhUmVS3RWRFQjh7iLSVX
anuegojZyxx2HFGFgLs56Bt81+KItBWoWbLr3kwD26s9ZCS/ViUMyA+JGhDu4cqu
EzstdVIGIiPSMHV+9gEeO5lPIirNo1vSiOKPxVoPdkQtOgWC/LlgxUPbMUv+gwtP
gDbWcialKhhRNn57ky7Jl9cB6J3wns7MslYZPRerAidXepNaXmMBrouGqlAZ0ofQ
NSXfKl7OwXc7JErG+tC9xpldTYsmcvECImhk8DlqyHP6Jz3lACIxLnm71xyXWLq5
cxx4LaFdQqLdDHFOzf/YtJdDxomlugnGgViNhfmtb4urrD0WTcE8JUl/ZpcAS39g
ys4MCWMq43pdks+cfW1gw591BbHmUpZdrjozq3EOQXK6BP651QCiDIi7jIxA6pT+
LXzwEcEv54nl+D644AHD2Um+m5EKfXb170jMe/4vXkhUPDs8s5Y=
=hVr9
-----END PGP SIGNATURE-----

Attachment: pgpkVv3YEkp09.pgp
Description: PGP signature


--- End Message ---

Reply to: