[Midnightbsd-cvs] [MidnightBSD/mports] e93ab7: benchmarks: add p5-Benchmark-Forking and p5-Benchm...

Lucas Holt noreply at github.com
Sun Aug 23 01:48:38 EDT 2026


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

  Changed paths:
    M benchmarks/Makefile
    A benchmarks/p5-Benchmark-Forking/Makefile
    A benchmarks/p5-Benchmark-Forking/distinfo
    A benchmarks/p5-Benchmark-Forking/pkg-descr
    A benchmarks/p5-Benchmark-Forking/pkg-plist
    A benchmarks/p5-Benchmark-Stopwatch/Makefile
    A benchmarks/p5-Benchmark-Stopwatch/distinfo
    A benchmarks/p5-Benchmark-Stopwatch/pkg-descr
    A benchmarks/p5-Benchmark-Stopwatch/pkg-plist

  Log Message:
  -----------
  benchmarks: add p5-Benchmark-Forking and p5-Benchmark-Stopwatch (#771)

Adds two related Perl benchmarking modules, imported from FreeBSD ports
and adapted for mports.

- **benchmarks/p5-Benchmark-Forking** 1.01 — runs each timed code block
in a forked child so side-effects cannot leak between test cases.
- **benchmarks/p5-Benchmark-Stopwatch** 0.05 — times the progression of
a script via lap marks, printing elapsed time and percentage of total
per event.

Kept as one PR since the two are companion benchmarking modules and
share the same `benchmarks/Makefile` SUBDIR change.

## mports adaptation

The imported Makefiles carried FreeBSD-only license identifiers (`ART10
GPLv1+`), which mports does not recognize — `check-license` aborted
before fetch:

```
===>  License not correctly defined: for unknown licenses, defining LICENSE_PERMS_ART10 is mandatory
```

Changes applied to both ports:

- `LICENSE= ART10 GPLv1+` → `artistic gpl+`
- `MAINTAINER` → `ports at MidnightBSD.org`
- Dropped the `PORTREVISION` values carried over from FreeBSD
- `bmake makesum` added the missing `TIMESTAMP` lines (SHA256/SIZE were
already correct)
- Registered both directories in `benchmarks/Makefile`

## Dependencies

No new ports required. `devel/p5-Clone` and `devel/p5-Test-LongString`
(Stopwatch) already exist and are registered; Forking has no non-core
prerequisites.

## Validation

|  | Forking | Stopwatch |
|---|---|---|
| `bmake check-license` | pass | pass |
| `bmake build` / `fake` / `package` | pass | pass |
| `pkg-plist` vs staged tree | matches | matches |
| `bmake test` | 4/4 pass | 22/22 pass |
| `portlint` | looks fine | looks fine |

Built on amd64. The tree's `lang/perl5.40` is at 5.40.5 while the build
host had perl5-5.40.4 installed, so builds were run with `NO_DEPENDS=yes
PERL_VERSION=5.40.4` to avoid an unrelated perl upgrade. Both ports are
pure perl with no arch-specific components, but they have not been built
against 5.40.5.

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

## Summary by Sourcery

Add two CPAN benchmarking modules for isolated forked benchmarks and
stopwatch-style timing to the benchmarks collection.

New Features:
- Add the Benchmark-Forking and Benchmark-Stopwatch Perl benchmarking
ports.
- Register both benchmarking modules in the benchmarks port collection.

Enhancements:
- Adapt both ports to mports licensing and packaging conventions.

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