filesystems/libblkid: Update to 2.42.2 Pass maintainership to Matthias (discussed via Matrix) Reported by: portscout!b530ced019
Port details
filesystems/libblkid2.42.2
Library to identify block devices (disks) as to their content
- Maintainer
- mandree@FreeBSD.org
- Packages
- libblkid 2.42.2
- Upstream
- Higher version available: 2.42.3
- CPE
- none, CVEs only via VuXML
- WWW
- https://github.com/util-linux/util-linux
- Links
- cgit · VuXML
Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE
None. There is no CVE without a VuXML entry for this version.
VuXML only (0) · listed, port not fixed yet
None.
pkg audit reports nothing for this version.Fixed (0)
No VuXML entries for this package.
Commits (7)
filesystems/libblkid: Update to 2.42.19e5679aa9f
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 read 36, 256, 548 or other strange sizes and emulate a buffered disk character device; we also need to patch many of the S_ISCHR checks so they accept our character devices. This patching is apparently enough to fix the "invalid argument" (EINVAL, errno==22) errors from the util-linux fdisk tools. This patch set is not complete, but is sufficient to get the util-linux fdisk/cfdisk/sfdisk back up to their feet so we can nuke the dangerous linuxfdisk port now and for good. Note that many uses will require sysctl to allow foot-shooting by setting kern.geom.debugflags=16. blkid can not yet enumerate disk character devices if run without argument. Approved by: portmgr@ (blanket just-fix it) Could the port maintainer please check with the upstream what their stance on supporting non-GNU userspaces and non-Linux kernels is? Can we work with them to get such fixes upstreamed or will they turn us down because the tools are specifically called "util-linux"?fd46b8c7f0
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)ccd11d7735
*: Update util-linux libuuid and libblkid to 2.41.1. ChangeLog: https://github.com/util-linux/util-linux/blob/v2.41.1/Documentation/releases/v2.41.1-ReleaseNotes91138af92c
*/*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: 251489db056622d6
filesystems/libblkid: Add new port96f0ac0d87