diff --git a/debian/changelog b/debian/changelog index 1a6f38b..6a22736 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +apache2 (2.4.71-1~deb13u1deepin1) unstable; urgency=medium + + * Fix build failure on sw64 architecture by adding $(CRYPT_LIBS) to PROGRAM_LDADD + - Add $(CRYPT_LIBS) to PROGRAM_LDADD in Makefile.in for the main apache2 binary + - Add $(CRYPT_LIBS) to PROGRAM_LDADD in support/Makefile.in for the support tools + - On sw64, libcrypt.so.1.1 is not available, causing undefined reference to + crypt_r@XCRYPT_2.0 for tools that do not explicitly link with -lcrypt + - Restore the patch that was dropped during the 2.4.71 sync + + -- lichenggang Wed, 18 Nov 2026 15:57:09 +0800 + apache2 (2.4.71-1~deb13u1) trixie-security; urgency=medium * New upstream release diff --git a/debian/patches/htdigest-link-crypt.patch b/debian/patches/htdigest-link-crypt.patch new file mode 100644 index 0000000..40c10f7 --- /dev/null +++ b/debian/patches/htdigest-link-crypt.patch @@ -0,0 +1,42 @@ +From: lichenggang +Date: Mon, 08 Jun 2026 10:58:00 +0800 +Subject: Fix build failure on sw64 by adding $(CRYPT_LIBS) to PROGRAM_LDADD + +On sw64 architecture, libcrypt.so.1.1 is not available, causing linker +failures for any tool linking against libaprutil-1.so which depends on +crypt_r. Unlike htpasswd and htdbm which explicitly link with $(CRYPT_LIBS), +other tools and the main apache2 binary only use $(PROGRAM_LDADD) which +does not include $(CRYPT_LIBS). + +Adding $(CRYPT_LIBS) to PROGRAM_LDADD in both Makefile.in and +support/Makefile.in ensures all binaries explicitly link against libcrypt, +resolving the undefined reference to crypt_r@XCRYPT_2.0 on sw64. + +Signed-off-by: lichenggang +--- +diff --git a/Makefile.in b/Makefile.in +index 11fbb20..9a3d786 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -4,7 +4,7 @@ CLEAN_SUBDIRS = test + + PROGRAM_NAME = $(progname) + PROGRAM_SOURCES = modules.c +-PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(PCRE_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS) ++PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(PCRE_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS) $(CRYPT_LIBS) + PROGRAM_PRELINK = $(COMPILE) -c $(top_srcdir)/server/buildmark.c + PROGRAM_DEPENDENCIES = \ + server/libmain.la \ +diff --git a/support/Makefile.in b/support/Makefile.in +index c7d7687..c1d8809 100644 +--- a/support/Makefile.in ++++ b/support/Makefile.in +@@ -7,7 +7,7 @@ bin_PROGRAMS = htpasswd htdigest htdbm ab logresolve httxt2dbm + sbin_PROGRAMS = htcacheclean rotatelogs $(NONPORTABLE_SUPPORT) + TARGETS = $(bin_PROGRAMS) $(sbin_PROGRAMS) + +-PROGRAM_LDADD = $(UTIL_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS) ++PROGRAM_LDADD = $(UTIL_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) $(AP_LIBS) $(CRYPT_LIBS) + PROGRAM_DEPENDENCIES = + + include $(top_builddir)/build/rules.mk diff --git a/debian/patches/series b/debian/patches/series index 450653a..08e8a6e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ customize_apxs.patch build_suexec-custom.patch reproducible_builds.diff fix-macro.patch +htdigest-link-crypt.patch