[Midnightbsd-cvs] [MidnightBSD/mports] d91dd1: mail/mlmmj: update to 2.1.0 (#721)

Lucas Holt noreply at github.com
Sun Aug 9 09:49:13 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: d91dd13605cbc8d9ead27313fb669619c66ee5bf
      https://github.com/MidnightBSD/mports/commit/d91dd13605cbc8d9ead27313fb669619c66ee5bf
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-08-09 (Sun, 09 Aug 2026)

  Changed paths:
    M mail/mlmmj/Makefile
    M mail/mlmmj/distinfo
    A mail/mlmmj/files/patch-mk_common.mk
    M mail/mlmmj/pkg-plist

  Log Message:
  -----------
  mail/mlmmj: update to 2.1.0 (#721)

Update `mail/mlmmj` from 1.5.0 to 2.1.0.

## New MidnightBSD-specific patch required

`files/patch-mk_common.mk` reorders the compile rules from `$(CFLAGS)
$(LOCAL_CFLAGS)` to `$(LOCAL_CFLAGS) $(CFLAGS)`.

MidnightBSD gets iconv from `converters/libiconv`, so `USES=iconv` puts
`-I/usr/local/include` into CPPFLAGS **ahead** of `-I${WRKSRC}/include`.
mlmmj 2.x's new `include/archive.h` and `include/unistr.h` were then
shadowed by libarchive's `/usr/local/include/archive.h` and
libunistring's `/usr/local/include/unistr.h`:

```
listcontrol.c:631:12: error: call to undeclared function 'archive_open'; ISO C99 and later
do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
prepstdreply.c:1704:11: error: call to undeclared function 'unistr_utf8_to_header'; ...
```

FreeBSD 14+ has iconv in base, so no `-I/usr/local/include` is added
there and they never hit this. No `files/` directory existed in this
port before.

## Build system change

2.x replaced autotools with the hand-rolled "bbuild" system, so
`GNU_CONFIGURE`+`GNU_CONFIGURE_MANPREFIX` becomes `HAS_CONFIGURE` plus
an explicit `--mandir=${PREFIX}/share/man` — autoconf-only args must not
be injected. `MASTER_SITES` modifier `:S/./_/g` → `:C/\./_/g`, matching
FreeBSD.

## pkg-plist

Adds two new PHP-option files,
`%%PHP%%%%WWWDIR%%/php-admin/htdocs/logs.php` and `.../texts.php`.
Verified empirically — `bmake fake && bmake makeplist`, then
set-compared `gen-plist` against `pkg-plist`. FreeBSD's 2.1.0 plist is
*also* missing these; their PHP option is off by default so it went
unnoticed. All 273 `text.skel`/man/bin/docs entries carried over
unchanged.

## Verification

makesum/patch/build/fake/package all OK → `mlmmj-2.1.0.mport`.
**distinfo SHA256 matches FreeBSD's exactly.** LICENSE unchanged —
upstream `LICENSE` reads "The MIT License"; mports `mit` is correct.
Dependencies unchanged; the MidnightBSD-only `kyua` `TEST_DEPENDS` is
preserved.

`bmake test` not run — `WITH_TESTING` is undefined so `--disable-tests`
is passed. amd64 only.

## Adjacent, not fixed

`makeplist` emits `@dir %%DOCSDIR%%`, `@dir %%DATADIR%%`, `@dir
%%DATADIR%%/text.skel` and 11 per-language `@dir` lines that `pkg-plist`
lacks. Pre-existing (1.5.0 had none) and `bmake package` succeeds
without them, so left alone under minimal-change.

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

## Summary by Sourcery

Update the mlmmj port to version 2.1.0 and adapt the build and packaging
to the new upstream build system and headers.

Enhancements:
- Adjust MASTER_SITES substitution to match upstream release naming for
mlmmj 2.1.0.
- Switch from GNU_CONFIGURE to HAS_CONFIGURE and pass an explicit mandir
to accommodate the new bbuild-based configure script.

Build:
- Add a MidnightBSD-specific patch to reorder LOCAL_CFLAGS ahead of
CFLAGS so in-tree headers are preferred over system includes during
compilation.
- Refresh distinfo and pkg-plist for the 2.1.0 release, including new
PHP-related installed files.

Signed-off-by: Lucas Holt <luke at foolishgames.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