Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

Rebuilding all-settings.c on every ./configure run - #265

#265
Open
mauritium wants to merge 1 commit into
dovecot:maindovecot/core:mainfrom
mauritium:pr/bugfix-all-settings-regeneratemauritium/dovecot-core:pr/bugfix-all-settings-regenerateCopy head branch name to clipboard
Open

Rebuilding all-settings.c on every ./configure run#265
mauritium wants to merge 1 commit into
dovecot:maindovecot/core:mainfrom
mauritium:pr/bugfix-all-settings-regeneratemauritium/dovecot-core:pr/bugfix-all-settings-regenerateCopy head branch name to clipboard

Conversation

@mauritium

Copy link
Copy Markdown
Contributor

(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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.