Repository navigation
fix(smtp): build Postfix on Linux 7.x kernel hosts - #43
Open
maneesha-xyz wants to merge 1 commit into
Open
maneesha-xyz wants to merge 1 commit into
maneesha-xyz wants to merge 1 commit into
Conversation
GitHub runners now run kernel 7.0. Postfix 3.7's makedefs derives SYSTYPE from the host `uname -r` and only knows Linux 1-6, so the rebuild aborted with "Unknown system type: Linux 7.0.0-1017-azure". Accept 7.x in makedefs and add LINUX7 to the sys_defs.h Linux block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The `v0.2.2` "Publish container images" run failed on `pingmailer-smtp` (run):
GitHub runners moved from kernel 6.17 to 7.0. Postfix 3.7.11's `makedefs` takes SYSTYPE from the host's `uname -r` (which Docker builds inherit) and only matches `Linux.[3456].*`. `src/util/sys_defs.h` likewise only accepts `LINUX2`–`LINUX6`. Upstream 3.9/3.10 have the same patterns, so upgrading Postfix doesn't fix it.
Fix
Add a 4th patch step to the rootless smtp Dockerfile: accept `Linux.[34567].*` in `makedefs` and add `defined(LINUX7)` to the Linux block in `sys_defs.h`. Each change has a `grep -q` guard, so the build fails loudly if the patch no longer applies.
Testing
After merge, re-tag or cut `v0.2.3` to publish the smtp image.
🤖 Generated with Claude Code