From 8a9859da548a6527f4826e0a29c28787f72b5b7d Mon Sep 17 00:00:00 2001 From: mauritium Date: Wed, 14 Jan 2026 00:41:43 +0100 Subject: [PATCH] (Defensively) rebuilding all-settings.c on every ./configure run. There were situations where a prebuilt all-settings.c would get stale in relation to the actual configuration, leading to all kinds of obscure failures downstream. This manifests itself, e.g., in relation to building on macOS, where the all-settings.c bundled with the official source release would include imap-hibernate, which is not available on macOS. For this reason, the homebrew project explicitly `rm`s the file prior to building. --- src/config/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/Makefile.am b/src/config/Makefile.am index 025ba04aa54..04f7b6e727b 100644 --- a/src/config/Makefile.am +++ b/src/config/Makefile.am @@ -88,7 +88,7 @@ pkginclude_HEADERS = \ config-parser-private.h \ config-request.h -all-settings.c: $(SETTING_FILES) $(SETTING_LINKED_FILES) $(top_srcdir)/src/config/settings-get.pl +all-settings.c: $(SETTING_FILES) $(SETTING_LINKED_FILES) $(top_srcdir)/src/config/settings-get.pl $(top_builddir)/config.status $(AM_V_GEN)$(top_srcdir)/src/config/settings-get.pl $(SETTING_FILES) -- $(SETTING_LINKED_FILES) > all-settings.c || rm -f all-settings.c EXTRA_DIST = \