notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Remember
I remember
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details
libblkid Library to identify block devices (disks) as to their content
2.41.1_2 filesystems on this many watch lists=4 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.41.1_2Version of this port present on the latest quarterly branch.
Maintainer: arrowd@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-06-30 15:06:09
Last Update: 2025-09-29 23:09:52
Commit Hash: fd46b8c
People watching this port, also watch:: libXdamage, libevent, xcb-util-image, libthai, wayland
License: BSD3CLAUSE
WWW:
https://github.com/util-linux/util-linux
Description:
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (16 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/libblkid-2.41.1_2/catalog.mk
  3. /usr/local/share/licenses/libblkid-2.41.1_2/LICENSE
  4. /usr/local/share/licenses/libblkid-2.41.1_2/BSD3CLAUSE
  5. include/blkid/blkid.h
  6. lib/libblkid.a
  7. lib/libblkid.so
  8. lib/libblkid.so.1
  9. lib/libblkid.so.1.1.0
  10. libdata/pkgconfig/blkid.pc
  11. sbin/blkid
  12. share/man/man3/libblkid.3.gz
  13. share/man/man8/blkid.8.gz
  14. @owner
  15. @group
  16. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • libblkid>0:filesystems/libblkid
To install the port:
cd /usr/ports/filesystems/libblkid/ && make install clean
To add the package, run one of these commands:
  • pkg install filesystems/libblkid
  • pkg install libblkid
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: libblkid
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1751103248 SHA256 (util-linux-util-linux-v2.41.1_GH0.tar.gz) = 61a9785cbf04091286ec2bbfb78e87c35e6380f084f38115a4677b90b9ad4437 SIZE (util-linux-util-linux-v2.41.1_GH0.tar.gz) = 16084246

Packages (timestamps in pop-ups are UTC):
libblkid
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.41.1_22.41.1_2-2.41.1_12.41.1_2n/an/an/a
FreeBSD:13:quarterly2.41.1_22.41.1_2-2.41.1_12.41.1_2n/an/an/a
FreeBSD:14:latest2.41.1_22.41.1_2-2.41.1_12.41.1_2---
FreeBSD:14:quarterly2.41.1_22.41.1_2-2.41.1_12.41.1_2---
FreeBSD:15:latest2.41.1_22.41.1_2n/a2.41.1_1n/an/a--
FreeBSD:15:quarterly2.41.1_22.41.1_2n/a-n/an/a--
FreeBSD:16:latest2.41.1_22.41.1_2n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. asciidoctor : textproc/rubygem-asciidoctor
  2. bison : devel/bison
  3. meson : devel/meson
  4. ninja : devel/ninja
  5. pkgconf>=1.3.0_1 : devel/pkgconf
This port is required by:
for Build
  1. sysutils/fwupd
for Libraries
  1. filesystems/e2fsprogs-core
  2. sysutils/util-linux

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. devel/util-linux*
  2. Collapse this list of deleted ports.
for Run
  1. sysutils/fwupd

Configuration Options:
===> The following configuration options are available for libblkid-2.41.1_2: MANPAGES=on: Build and/or install manual pages ===> Use 'make config' to modify these settings
Options name:
filesystems_libblkid
USES:
bison meson pkgconfig tar:xz
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/util-linux/util-linux/tar.gz/v2.41.1?dummy=/
Collapse this list.
Port Moves

Number of commits found: 5

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.41.1_2
29 Sep 2025 23:09:52
commit hash: fd46b8c7f0d78952a1a60e56aacccbdccdc76dc1commit hash: fd46b8c7f0d78952a1a60e56aacccbdccdc76dc1commit hash: fd46b8c7f0d78952a1a60e56aacccbdccdc76dc1commit hash: fd46b8c7f0d78952a1a60e56aacccbdccdc76dc1 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
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 View all of this commit message)
2.41.1_1
06 Jul 2025 12:29:40
commit hash: ccd11d773505a90ed37208bc2dff1d4a8d3ec495commit hash: ccd11d773505a90ed37208bc2dff1d4a8d3ec495commit hash: ccd11d773505a90ed37208bc2dff1d4a8d3ec495commit hash: ccd11d773505a90ed37208bc2dff1d4a8d3ec495 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
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)
2.41.1
30 Jun 2025 15:00:45
commit hash: 91138af92c77590f5bf1c6ea2ec6f9486683c576commit hash: 91138af92c77590f5bf1c6ea2ec6f9486683c576commit hash: 91138af92c77590f5bf1c6ea2ec6f9486683c576commit hash: 91138af92c77590f5bf1c6ea2ec6f9486683c576 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
*: 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-ReleaseNotes
2.41
30 Jun 2025 15:00:31
commit hash: db056622d6457f10c143e3f13312fdd737841c35commit hash: db056622d6457f10c143e3f13312fdd737841c35commit hash: db056622d6457f10c143e3f13312fdd737841c35commit hash: db056622d6457f10c143e3f13312fdd737841c35 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
*/*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
2.41
30 Jun 2025 14:48:23
commit hash: 96f0ac0d877ab5f0b4c48fceb84b2ea9c29927b9commit hash: 96f0ac0d877ab5f0b4c48fceb84b2ea9c29927b9commit hash: 96f0ac0d877ab5f0b4c48fceb84b2ea9c29927b9commit hash: 96f0ac0d877ab5f0b4c48fceb84b2ea9c29927b9 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
Author: Alexander Shursha
filesystems/libblkid: Add new port

Number of commits found: 5