Skip to content

Conversation

@mauritium
Copy link

(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 rms the file prior to building. This commit gets rid of the need for the ugly downstream workaround (see Homebrew/homebrew-core@8eed350). @cho-m

…re 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.
@sirainen
Copy link
Contributor

The problem with this change is that we intentionally didn't want to require Perl for building Dovecot from a tarball. Doesn't the BUILD_IMAP_HIBERNATE handling in configure already fix this? Or could be changed somehow further to fix this? Adding some #ifdef check to imap-hibernate-settings.c?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants