Skip to content

Use Alpine-provided dovecot-fts-flatcurve package instead of building from source#206

Closed
Copilot wants to merge 2 commits into
renovate-alpine-3-xfrom
copilot/sub-pr-202
Closed

Use Alpine-provided dovecot-fts-flatcurve package instead of building from source#206
Copilot wants to merge 2 commits into
renovate-alpine-3-xfrom
copilot/sub-pr-202

Conversation

Copy link
Copy Markdown

Copilot AI commented Nov 13, 2025

Alpine 3.22 upgrades Dovecot from 2.3 to 2.4. The manual build of the Flatcurve FTS plugin fails with Dovecot 2.4, and Flatcurve support for Dovecot 2.3 is EOL.

Changes

  • build-images.sh: Replace 13-line git clone + compilation with apk add --no-cache dovecot-fts-flatcurve
    • Alpine 3.22 provides dovecot-fts-flatcurve 2.4.x as an official package
    • Removes build dependencies: build-base, git, autoconf, automake, libtool, dovecot-dev, xapian-core-dev, icu-dev
    • Existing configuration (fts = flatcurve) is compatible with Dovecot 2.4
-(
-    apk add --no-cache build-base git autoconf automake libtool dovecot-dev xapian-core-dev  icu-dev
-    mkdir /tmp/build
-    cd /tmp/build
-    git clone https://github.com/slusarz/dovecot-fts-flatcurve.git
-    cd dovecot-fts-flatcurve/
-    ash autogen.sh
-    ./configure --disable-static --with-dovecot=/usr/lib/dovecot/
-    make
-    make install
-    rm -rf /tmp/build
-    apk del build-base git autoconf automake libtool xapian-core-dev dovecot-dev icu-dev
-)
+# Install pre-built dovecot-fts-flatcurve package from Alpine repository
+apk add --no-cache dovecot-fts-flatcurve

Faster builds, smaller images, official package maintenance.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Nov 13, 2025
Co-authored-by: DavidePrincipi <2920838+DavidePrincipi@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Nov 13, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 10.0.2.3

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update alpine docker tag to v3.22.2 Use Alpine-provided dovecot-fts-flatcurve package instead of building from source Nov 13, 2025
Copilot AI requested a review from DavidePrincipi November 13, 2025 21:37
Copy link
Copy Markdown
Member

@DavidePrincipi DavidePrincipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DavidePrincipi
Copy link
Copy Markdown
Member

The commit has been cherry-picked in #202 but...
#202 (review)

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