The changes since version 1.0.2 were significant enough to warrant
a major library version bump. However, libnvpair.so.2 exists in
FreeBSD base, so the port version builds libnvpair.so.3 instead.
With one exception, all of the Solaris/Illumos types have been
replaced with BSD equivalents, including boolean_t. This changes
several prototypes, and also allows for the type compatibility header
to be removed. The one type that remains is hrtime_t (equivalent to
int64_t).
Internally, the regression tests for print_json (functionality that
does not exist in FreeBSD base, at least on F9) have been added from
Illumos regression tests and both DragonFly and FreeBSD pass.
libnvpair is a name-value pair library originating from Solaris
The nvpair library was released in OpenSolaris and has been extended
by the Illumos project. It exports a set of functions used for managing
name-value pairs. This is a base library for Solaris and its descendents.
However, the kernel-specific code has been removed thus libnvpair is
strictly meant for the userland. The XDR functionality has been masked
for now due to RPC differences between *BSD and Illumos.