[Midnightbsd-cvs] [MidnightBSD/mports] 512a84: ports-mgmt/mport: key the ohash ABI switch on __Mi...

Lucas Holt noreply at github.com
Mon Sep 21 23:19:04 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 512a840f26f090294699ff3805fc7d136f0d2a87
      https://github.com/MidnightBSD/mports/commit/512a840f26f090294699ff3805fc7d136f0d2a87
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    A ports-mgmt/mport/files/patch-libmport_upgrade.c

  Log Message:
  -----------
  ports-mgmt/mport: key the ohash ABI switch on __MidnightBSD_version 402000 (#1511)

Fixes the Magus 4.1 build failure at
https://www.midnightbsd.org/magus/ports/2268826:

\`\`\`
upgrade.c:99:38: error: incompatible function pointer types initializing
'void *(*)(size_t, void *)' with an expression of type 'void *(size_t,
size_t, void *)'
\`\`\`

Timeline from MidnightBSD/src and MidnightBSD/mport:

| Date | Event |
|---|---|
| 2026-03-17 | master bumped to 401002 |
| 2026-06-11 | \`include/ohash.h\` ABI changed (calloc/free style
callbacks), no version bump |
| 2026-06-26 | master bumped to 402000; mport "fix build on current"
landed the same day but keyed on 401002 |
| 2026-09-08 | mport 2.8.1 tagged |

A 401002 world installed before June 11 (the Magus 4.1 node, by the look
of it) has the old struct but takes mport's new-ABI branch. This patch
moves the threshold to 402000, the first version that guarantees the new
header. Updating the node's world would also clear the failure, but the
port is then correct regardless. The same one-line change is worth
pushing upstream to mport.

Build-tested locally on MidnightBSD 4.0.6 amd64 (old-ABI branch):
\`bmake build\`, \`bmake fake\` and \`bmake package\` pass. The new-ABI
branch on a 402000+ world is not verified here. Portlint reports only
pre-existing warnings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

## Summary by Sourcery

Bug Fixes:
- Fix mport builds on MidnightBSD worlds with the pre-ABI-change ohash
interface by selecting the callback ABI at version 402000 instead of
401002.

Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Claude Fable 5.1 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications



More information about the Midnightbsd-cvs mailing list