[Midnightbsd-cvs] [MidnightBSD/mports] 8a9667: Mk/docs: bring bsd.mport.mk(5) up to date with the...

Lucas Holt noreply at github.com
Sat Oct 3 19:25:26 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 8a9667574afb0c7e3fc3402c36694c828bff00d6
      https://github.com/MidnightBSD/mports/commit/8a9667574afb0c7e3fc3402c36694c828bff00d6
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M AGENTS.md
    M Mk/docs/Makefile
    M Mk/docs/bsd.mport.mk.pod

  Log Message:
  -----------
  Mk/docs: bring bsd.mport.mk(5) up to date with the current framework (#1688)

The manual at `Mk/docs/bsd.mport.mk.pod` still described the framework
as it was around 2010. Every variable and target in it was checked
against `Mk/bsd.mport.mk`, `Mk/components` and `Mk/extensions`.

## Removed (no longer in the framework)

`PORTOBJFORMAT`, `UNIQUENAME`/`LATEST_LINK`/`NO_LATEST_LINK`, the bare
`DEPENDS` variable,
`MAN<sect>`/`MLINKS`/`MANCOMPRESSED`/`NO_INSTALL_MANPAGES`,
`INSTALLS_SHLIB`/`LDCONFIG_DIRS`, `MAKE_JOBS_SAFE`/`FORCE_MAKE_JOBS`,
`NO_SIZE`, `CD_MOUNTPTS`,
`IGNOREFILES`/`NOFETCHFILES`/`ALWAYS_KEEP_DISTFILES`, the `EXTENSIONS`
variable, the old `OPTIONS` string format, `deinstall-all`, and the
whole "Built-In Depends" section (`USE_GHOSTSCRIPT*`, `USE_MOTIF`,
`USE_BISON`, `USE_XLIB`, `USE_CSTD`, `USE_KDEBASE_VER`,
`WANT_FAM_SYSTEM`, …). A paragraph maps the old `USE_*` knobs to the
`USES` replacements that `sanity.mk` reports.

## Corrected

`PKGVERSION`/`PKGNAME` definitions, `MASTER_SITE_BACKUP` (MidnightBSD
mirrors, not ftp.FreeBSD.org), `CHECKSUM_ALGORITHMS` (sha256),
`CONFIGURE_TARGET` (`-portbld-midnightbsd4.0`), `EXTRACT_CMD`/args
(tar), `MTREE_FILE` defaults, `DEPENDS_TARGET` semantics, `PORT_DBDIR`,
`INFO_PATH`, `FETCH_*` defaults, `OPSYS` (MidnightBSD only),
`PACKAGE_BUILDING` and `MPORT_MAINTAINER_MODE` effects, `WITH_DEBUG`
(cmake only), the `all` sequence, `install` going through `package`.

## Added

USES extensions and their `USE_*` companion lists; the options framework
(`OPTIONS_DEFINE`, groups, `OPTIONS_SUB`, `PORT_OPTIONS`, `OPT_*`
helpers); the license framework (`LICENSE_COMB`, `_FILE`, `_TEXT`,
`_NAME`, `_PERMS`, `_GROUPS`, per-license forms, `license-list`,
`check-license`); flavors and `flavor_*` helpers; subpackages;
`USE_GITHUB`/`GH_*` and `USE_GITLAB`/`GL_*`;
`DISTVERSION`/`DISTVERSIONPREFIX`/`SUFFIX`; `WWW` and `COMMENT` as
mandatory; `NO_ARCH`; `TEST_DEPENDS`, `BUILD_RUN_DEPENDS` and the
per-option/flavor/subpackage dependency forms; the test stage
(`TEST_TARGET`, `NO_TEST`, `TESTING_UNSAFE`); `fake-qa`, `fake-sanity`,
`HAS_SYMBOL_VERSION`, `TRUE_PREFIX` and the do-install prefix rule;
`PLIST` keywords; `PKG_NOTES`, `BUNDLE_LIBS` and the shared library
records; `WRKSRC_SUBDIR`, `DISTINFO_FILE`, `PATCH_STRIP`,
`GNU_CONFIGURE_PREFIX`, `MAKE_CMD`, `MAKE_JOBS_NUMBER_LIMIT`,
`WITH_LTO`, `BINARY_ALIAS`, `LIB_DIRS`, `USE_RC_SUBR`, `USE_LOCALE`,
`PORTEXAMPLES`/`PORTDATA`, `INSTALL_LIB`, `COPYTREE_*`; the actual stage
sequences and global knobs (`BATCH`, `INTERACTIVE`, `DEVELOPER`,
`NOCLEANDEPENDS`).

## Mk/docs/Makefile

It could not build the page: it looked for `pod2man` in `/usr/bin`,
where it is not since perl left base, and its rule generation never
produced a rule for the `.5` target. Now uses the ports perl's `pod2man`
through a `.pod.5` suffix rule, plus a `check` target running
`podchecker`.

```
$ make -C Mk/docs        # builds bsd.mport.mk.5 (55 KB)
$ make -C Mk/docs check  # pod syntax OK
```

## AGENTS.md

Points agents at the manual as the reference for how the framework is
meant to behave, and asks that it be updated in the same commit as any
change to a public target or variable, with `podchecker` run.

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

## Summary by Sourcery

Synchronize the bsd.mport.mk(5) documentation and its build instructions
with the current MidnightBSD ports framework.

Bug Fixes:
- Fix generation of the bsd.mport.mk(5) manual by using the
ports-provided pod2man and adding a working POD-to-manpage rule.

Enhancements:
- Bring the bsd.mport.mk(5) reference manual up to date with the current
framework, including modern variables, targets, dependency, options,
license, flavor, subpackage, testing, and extension APIs while
documenting obsolete interfaces and their replacements.

Build:
- Update Mk/docs to build the manual with the available Perl tooling and
add a syntax-check target using podchecker.

Documentation:
- Document the framework manual as the authoritative reference for
public Mk targets and variables, and require it to be updated alongside
framework changes.

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