Skip to content

fix(postfix): update package names for Debian 13 (trixie) compatibility#323

Merged
mrrobot47 merged 2 commits into
EasyEngine:developfrom
mrrobot47:fix/postfix-debian13-packages
Jun 5, 2026
Merged

fix(postfix): update package names for Debian 13 (trixie) compatibility#323
mrrobot47 merged 2 commits into
EasyEngine:developfrom
mrrobot47:fix/postfix-debian13-packages

Conversation

@mrrobot47

Copy link
Copy Markdown
Member

The postfix build has been failing since the base image was bumped to debian:13.x-slim because three packages were removed or renamed in Debian 13 (trixie).

Root cause

Old package Debian 13 replacement Reason
libpcre3 libpcre2-8-0 PCRE1 removed; PCRE2 is now standard
libpcre3-dev libpcre2-dev Same — build dep
libicu72 libicu76 ICU bumped to v76 in trixie
libldap-2.4 libldap2 Versioned suffix dropped

The Postfix build flags also reference pcre-config (PCRE1 tool) which no longer exists. Updated to use pcre2-config and the DHAS_PCRE2 compile flag, which Postfix 3.7+ supports natively.

Changes

  • libpcre3libpcre2-8-0 (runtime)
  • libicu72libicu76 (runtime)
  • libldap-2.4libldap2 (runtime)
  • libpcre3-devlibpcre2-dev (build dep)
  • -DHAS_PCRE $(pcre-config --cflags)-DHAS_PCRE2 $(pcre2-config --cflags)
  • AUXLIBS_PCRE="$(pcre-config --libs)"AUXLIBS_PCRE="$(pcre2-config --libs)"
  • Base image bumped to debian:13.5-slim (latest)

mrrobot47 added 2 commits June 5, 2026 14:43
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.
@mrrobot47 mrrobot47 merged commit abb0ae7 into EasyEngine:develop Jun 5, 2026
15 checks passed
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.

1 participant