[Midnightbsd-cvs] [MidnightBSD/mports] 089f50: converters/p5-Unicode-UTF8: new port (#705)
Lucas Holt
noreply at github.com
Fri Aug 7 23:20:31 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/mports
Commit: 089f5005c511e8d067a0c894ca2353986eaa4c03
https://github.com/MidnightBSD/mports/commit/089f5005c511e8d067a0c894ca2353986eaa4c03
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-08-07 (Fri, 07 Aug 2026)
Changed paths:
M converters/Makefile
A converters/p5-Unicode-UTF8/Makefile
A converters/p5-Unicode-UTF8/distinfo
A converters/p5-Unicode-UTF8/pkg-descr
A converters/p5-Unicode-UTF8/pkg-plist
Log Message:
-----------
converters/p5-Unicode-UTF8: new port (#705)
New port: `converters/p5-Unicode-UTF8` 0.62 — encoding and decoding of
the UTF-8 encoding form as specified by Unicode and ISO/IEC 10646:2011.
## Why
`mail/sympa` 6.2.76 adds this as a dependency, and it is not optional.
`src/cgi/wwsympa.fcgi.in:1909` calls it unguarded inside the
request-parameter loop:
```perl
unless (Encode::is_utf8($v) or Unicode::UTF8::valid_utf8($v)) {
```
Perl short-circuits `or`, so any parameter lacking the UTF-8 flag
reaches that call and dies with an undefined-subroutine error. FASTCGI
is default-on, so sympa's web UI is affected in the default
configuration. (Upstream's `cpanfile` files it under an optional
`safe-unicode` feature, but that code path isn't guarded.) The sympa
6.2.76 bump is blocked on this port.
## Import notes
Based on FreeBSD `converters/p5-Unicode-UTF8`, adapted to MidnightBSD
conventions:
- `MAINTAINER= ports at MidnightBSD.org`
- `LICENSE= artistic gpl+` with `LICENSE_COMB= dual` — the mports
identifiers for FreeBSD's `ART10 GPLv1+`, matching what
`converters/p5-Convert-ASN1` already uses for the same dual license.
One deliberate improvement over the FreeBSD port: **`TEST_DEPENDS=
p5-Test-Fatal>=0.006:devel/p5-Test-Fatal`**. `Makefile.PL` declares
`test_requires 'Test::Fatal' => '0.006'`, and without it 10 of 17 test
files abort at `BEGIN` with `Can't locate Test/Fatal.pm`. FreeBSD's port
omits it, so `make test` there is effectively broken.
`devel/p5-Test-Fatal` already exists in mports.
## Verification
`makesum`, `build`, `test`, `fake`, `package` all succeeded on amd64
with perl 5.40 → `p5-Unicode-UTF8-0.62.mport`.
```
All tests successful.
Files=17, Tests=12031
Result: PASS
```
Three test files skip cleanly on optional modules not installed here
(Test::LeakTrace, Taint::Runtime, Test::Pod). distinfo and pkg-plist are
byte-identical to FreeBSD's.
Added to `converters/Makefile` `SUBDIR` in sort order after
`p5-Unicode-String`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Summary by Sourcery
Add a new p5-Unicode-UTF8 port and register it in the converters
category to satisfy the Unicode::UTF8 dependency for other ports.
New Features:
- Introduce the converters/p5-Unicode-UTF8 port providing UTF-8 encoding
and decoding functionality for Perl.
- Expose the Unicode::UTF8 module via mports for use by dependent
software such as mail/sympa.
Enhancements:
- Declare an explicit Test::Fatal test dependency so the port's upstream
test suite runs successfully during builds.
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