The libblkid library is used to identify block devices (disks) as to their
content (e.g., filesystem type) as well as extracting additional information
such as filesystem labels/volume names, unique identifiers/serial numbers.
A common use is to allow use of LABEL= and UUID= tags instead of hard-coding
specific block device names into configuration files.
===> The following configuration options are available for libblkid-2.42.2:
MANPAGES=on: Build and/or install manual pages
===> Use 'make config' to modify these settings
filesystems/libblkid: fix odd reads and fdisk
TL;DR: This fixes "invalid argument" in util-linux's fdisk.
libblkid assumes buffered block devices, skipping most character
devices (unless their name starts with "ubi") and failing because
it tries reads that aren't a multiple of the underlying I/O size.
Detail: util-linux assumes a Linux-like behavior and naming of devices,
and assumes it's looking at buffered block devices, which FreeBSD has
not been provided for many major releases. It also requires specific
layouts of procfs, sysfs, devfs, which FreeBSD or its Linuxulator does
not provide.
So we specifically need to patch the read_buffer function to make sure
it rounds up its read size to the io_size (often 512) and not attempt to
(Only the first 15 lines of the commit message are shown above )
filesystems/libblkid: enable symbol versioning
Some ports depend on versioned symbols in libuuid, and the meson
test appears off because it tries to look for the --version-script
without having build the library, and assumes the linker does
not support the --version-script. Force versioning.
Approved by: portmgr@ (blanket)
*/*libuuid, */*libblkid: build MANPAGES by default as before.
in libuuid, also replace mkdir --parents GNUism by POSIX mkdir -p
to avoid MANPAGES build issue.
While here, clean up with portfmt/portclippy.
PR: 251489