fix(postfix): update package names for Debian 13 (trixie) compatibility#323
Merged
mrrobot47 merged 2 commits intoJun 5, 2026
Merged
Conversation
libpcre3 and libpcre3-dev were removed in Debian 13 in favor of PCRE2; libicu72 was renamed to libicu76; libldap-2.4 was renamed to libldap2. Update Postfix build flags to use DHAS_PCRE2 and pcre2-config accordingly. Also bumps base image from debian:13.4-slim to debian:13.5-slim.
- -DHAS_PCRE2 is not a valid Postfix flag; Postfix 3.7+ uses -DHAS_PCRE=2 (numeric) to select PCRE2 at compile time (see src/util/dict_pcre.c). - pcre2-config --libs exits with code 1 (usage error); the correct flag for linking the 8-bit library is --libs8. - debian:13.5-slim no longer ships adduser/addgroup; add the adduser package to the initial apt-get install block. - debian:13.5-slim auto-enables HAS_NIS via makedefs but rpcsvc/ypclnt.h is only available from libnsl-dev (not installed); add -DNO_NIS to CCARGS to disable legacy NIS support, which is unnecessary in a container environment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The postfix build has been failing since the base image was bumped to
debian:13.x-slimbecause three packages were removed or renamed in Debian 13 (trixie).Root cause
libpcre3libpcre2-8-0libpcre3-devlibpcre2-devlibicu72libicu76libldap-2.4libldap2The Postfix build flags also reference
pcre-config(PCRE1 tool) which no longer exists. Updated to usepcre2-configand theDHAS_PCRE2compile flag, which Postfix 3.7+ supports natively.Changes
libpcre3→libpcre2-8-0(runtime)libicu72→libicu76(runtime)libldap-2.4→libldap2(runtime)libpcre3-dev→libpcre2-dev(build dep)-DHAS_PCRE $(pcre-config --cflags)→-DHAS_PCRE2 $(pcre2-config --cflags)AUXLIBS_PCRE="$(pcre-config --libs)"→AUXLIBS_PCRE="$(pcre2-config --libs)"debian:13.5-slim(latest)