In FreeBSD, there are currently misc/e2fsprogs-libblkid and misc/e2fsprogs-libuuid packages: misc/e2fsprogs-libblkid https://svnweb.freebsd.org/ports/head/misc/e2fsprogs-libblkid/Makefile?view=markup misc/e2fsprogs-libuuid: https://svnweb.freebsd.org/ports/head/misc/e2fsprogs-libuuid/Makefile?view=markup These Makefiles include sysutils/e2fsprogs/Makefile: https://svnweb.freebsd.org/ports/head/sysutils/e2fsprogs/Makefile?view=markup In Gentoo, blkid and uuid libraries are now provided by sys-apps/util-linux. In FreeBSD, there is also a suggestion to provide uuid library from util-linux: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221293 I suggest that sys-apps/util-linux ebuild be modified to install some parts of this package on *-fbsd. There are some packages in Gentoo, which theoretically could support *-fbsd but they need uuid library from util-linux. (E.g. app-i18n/fcitx) Maybe libraries and *.pc files of sys-apps/util-linux can be installed in standard locations. If /usr/include/uuid/uuid.h would collide with a FreeBSD header, it could be installed in a subdirectory (e.g. /usr/include/util-linux/uuid/uuid.h) and uuid.pc could be adjusted. If man pages would collide, they could be renamed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73d3426b9af66c84b32ea0631205a0546049d9f3 commit 73d3426b9af66c84b32ea0631205a0546049d9f3 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2018-04-06 08:49:02 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-04-06 11:43:23 +0000 sys-apps/util-linux: Support library-only build for *BSD Closes: https://bugs.gentoo.org/651398 sys-apps/util-linux/util-linux-9999.ebuild | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-)