From nobody Mon Jun 30 15:03:07 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bW8Y914fFz60ZjM; Mon, 30 Jun 2025 15:03:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bW8Y801vYz3H5D; Mon, 30 Jun 2025 15:03:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751295788; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VUiLLoRmKUXm8kjQIaIJcbp5pr2tSR/CrdiK3gbKowk=; b=esto1Qq3rYYRu0cBsX9iSCVfImHsSDkXAx9HYLVzI1IvWUjB6q3hqtfTLbylK1fYyHc55U SkmlU6GyoXXPJ7rDRVooHQhYOAw70xMiL9So7RrXzQDcrnYZJa48BxnBTUVj+TY8POZOmA dD9+rpsHcSOyFdjikQJqdiFcgeN/T9ejAcZAyjw1AY7/oX1jYrvDy735jL9TZqEr26CdUT GrmUcYNa1rD66enqOFIEM3tKKRx4NxLJiZFleCaLITOu9oONx2aE+NlNcNBPgxtqOHhQAS ffCzgYvZLKpNKKQF4uUQy4u7sc7WwzLhHgOMRGluIN6uyyfZYP8ULQR+JXCRug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751295788; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VUiLLoRmKUXm8kjQIaIJcbp5pr2tSR/CrdiK3gbKowk=; b=tHvFaL/k9wr4puOl77isf+kG6A9V4UykemcV5Gl3YshJcfpdoanRxhynzl5yMOKqRdTN8N ZlHByUX+pLy3wFtJChoxrh+MRItlzdNyuq2HJhYwOyPcVyQF6/cVB1igMy8rc7Ca8bBmGo MuUi1CwdWfRLWK+qTr5ncyb3QDktTJDv+cUsrg0wHyDubdlEb1Cb+IbT5f3zbGAIjmsTGp V8fJ4WFYg+6SWcbS7TZfegpxNjxpfI+0okgQgghuQeMXRJtgc2PvjFyWG4S8MtHE+I5cI4 IY77B6fkLfu0UB6GPWVVgwN49ws+BGeRfn/YAIaezhfkCfWwnPTSgYCjKESI3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1751295788; a=rsa-sha256; cv=none; b=qfkL67WT31JUCmtZcKx6zP6nhA0KipI6tzk+SP0zL1HiWeJIU/qFptnguU9iXaIMGOzbV+ rNQwDsuxYNnHy1buHq+WfuOg/ZwqTCw/wnPBA2oBog4zVwMZ+qlIKI8M9wCWER5mD/kyTa ao+qqrxJYOLtUmeAr+F6JPbci1337ZI95Ny+2twcOfOy54PD4ZaDmieyAVFKoH1H4h3tvH io2dUxGpT0JnBrgG9qDb7beFFThUoHEv8QvHiac3Y6/p8FWtNAoMg27Ozz/6J1FUsXzC08 CngB9LKM/moR10MpFskO233U2dPKSsQbX5/SH/PNus83ZyXWgYvQlmimkL82Zg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bW8Y76jHCz188B; Mon, 30 Jun 2025 15:03:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55UF37ur055882; Mon, 30 Jun 2025 15:03:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55UF37qa055879; Mon, 30 Jun 2025 15:03:07 GMT (envelope-from git) Date: Mon, 30 Jun 2025 15:03:07 GMT Message-Id: <202506301503.55UF37qa055879@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: 96f0ac0d877a - main - filesystems/libblkid: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 96f0ac0d877ab5f0b4c48fceb84b2ea9c29927b9 Auto-Submitted: auto-generated The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=96f0ac0d877ab5f0b4c48fceb84b2ea9c29927b9 commit 96f0ac0d877ab5f0b4c48fceb84b2ea9c29927b9 Author: Alexander Shursha AuthorDate: 2024-12-19 07:34:06 +0000 Commit: Matthias Andree CommitDate: 2025-06-30 14:48:23 +0000 filesystems/libblkid: Add new port --- filesystems/Makefile | 1 + filesystems/libblkid/Makefile | 32 +++++++++++++++ filesystems/libblkid/distinfo | 3 ++ filesystems/libblkid/files/patch-meson.build | 59 ++++++++++++++++++++++++++++ filesystems/libblkid/pkg-descr | 5 +++ filesystems/libblkid/pkg-plist | 29 ++++++++++++++ 6 files changed, 129 insertions(+) diff --git a/filesystems/Makefile b/filesystems/Makefile index 06b3f1f189ca..e5e504cb16f4 100644 --- a/filesystems/Makefile +++ b/filesystems/Makefile @@ -43,6 +43,7 @@ SUBDIR += jmtpfs SUBDIR += kio-fuse SUBDIR += libbde + SUBDIR += libblkid SUBDIR += libfsapfs SUBDIR += libfsext SUBDIR += libfsfat diff --git a/filesystems/libblkid/Makefile b/filesystems/libblkid/Makefile new file mode 100644 index 000000000000..f628c92cb681 --- /dev/null +++ b/filesystems/libblkid/Makefile @@ -0,0 +1,32 @@ +PORTNAME= libblkid +DISTVERSIONPREFIX= v +DISTVERSION= 2.41 +CATEGORIES= filesystems + +MAINTAINER= arrowd@FreeBSD.org +COMMENT= Library to identify block devices (disks) as to their content +WWW= https://github.com/util-linux/util-linux + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/Documentation/licenses/COPYING.BSD-3-Clause + +USES= bison meson pkgconfig tar:xz + +USE_GITHUB= yes +GH_ACCOUNT= util-linux +GH_PROJECT= util-linux + +USE_LDCONFIG= yes +OPTIONS_SUB= yes +# disable all Meson features because the project has gazillion of them and we only need few +MESON_ARGS= --auto-features=disabled \ + -Db_lundef=false \ + -Dprogram-tests=false \ + -Dallow-32bit-time=true \ + -Dbuild-libblkid=enabled \ + -Dbuild-libsmartcols=enabled # dependency of libblkid + +OPTIONS_DEFINE= MANPAGES +MANPAGES_BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor + +.include diff --git a/filesystems/libblkid/distinfo b/filesystems/libblkid/distinfo new file mode 100644 index 000000000000..c983115c941c --- /dev/null +++ b/filesystems/libblkid/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1742552423 +SHA256 (util-linux-util-linux-v2.41_GH0.tar.gz) = 277407acf21815006eb4bb2ee9c2fa2ea6f4f84bfc57486c460c6bc8c77a4445 +SIZE (util-linux-util-linux-v2.41_GH0.tar.gz) = 16079500 diff --git a/filesystems/libblkid/files/patch-meson.build b/filesystems/libblkid/files/patch-meson.build new file mode 100644 index 000000000000..757fff747c84 --- /dev/null +++ b/filesystems/libblkid/files/patch-meson.build @@ -0,0 +1,59 @@ +--- meson.build.orig 2025-03-18 12:50:51 UTC ++++ meson.build +@@ -861,7 +861,7 @@ conf.set('HAVE_DECL_VMADDR_CID_LOCAL', have ? 1 : fals + prefix : '#include ') + conf.set('HAVE_DECL_VMADDR_CID_LOCAL', have ? 1 : false) + +-build_plymouth_support = (not build_plymouth_support.disabled() and ++build_plymouth_support = (not build_plymouth_support.disabled() and + have_tiocglcktrmios and + have_sock_cloexec and + have_sock_nonblock and +@@ -1870,14 +1870,7 @@ endif + bashcompletions += ['zramctl'] + endif + +-exe = executable( +- 'prlimit', +- prlimit_sources, +- include_directories : includes, +- link_with : [lib_common, +- lib_smartcols], +- install_dir : usrbin_exec_dir, +- install : true) ++exe = disabler() + if not is_disabler(exe) + exes += exe + manadocs += prlimit_manadocs +@@ -1993,15 +1986,7 @@ endif + bashcompletions += ['swapoff'] + endif + +-exe = executable( +- 'lscpu', +- lscpu_sources, +- include_directories : includes, +- link_with : [lib_common, +- lib_smartcols], +- dependencies : [rtas_libs], +- install_dir : usrbin_exec_dir, +- install : true) ++exe = disabler() + if not is_disabler(exe) + exes += exe + manadocs += lscpu_manadocs +@@ -2023,13 +2008,7 @@ endif + bashcompletions += ['chcpu'] + endif + +-exe = executable( +- 'wdctl', +- wdctl_sources, +- include_directories : includes, +- link_with : [lib_common, +- lib_smartcols], +- install : true) ++exe = disabler() + if not is_disabler(exe) + exes += exe + manadocs += wdctl_manadocs diff --git a/filesystems/libblkid/pkg-descr b/filesystems/libblkid/pkg-descr new file mode 100644 index 000000000000..52777d437567 --- /dev/null +++ b/filesystems/libblkid/pkg-descr @@ -0,0 +1,5 @@ +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. diff --git a/filesystems/libblkid/pkg-plist b/filesystems/libblkid/pkg-plist new file mode 100644 index 000000000000..31f9a10f43fe --- /dev/null +++ b/filesystems/libblkid/pkg-plist @@ -0,0 +1,29 @@ +bin/column +bin/fincore +bin/renice +bin/setpgid +bin/setsid +include/blkid/blkid.h +include/libsmartcols/libsmartcols.h +lib/libblkid.a +lib/libblkid.so +lib/libblkid.so.1 +lib/libblkid.so.1.1.0 +lib/libsmartcols.a +lib/libsmartcols.so +lib/libsmartcols.so.1 +lib/libsmartcols.so.1.1.0 +libdata/pkgconfig/blkid.pc +libdata/pkgconfig/smartcols.pc +sbin/blkid +sbin/readprofile +sbin/wipefs +%%MANPAGES%%share/man/man1/column.1.gz +%%MANPAGES%%share/man/man1/fincore.1.gz +%%MANPAGES%%share/man/man1/renice.1.gz +%%MANPAGES%%share/man/man3/libblkid.3.gz +%%MANPAGES%%share/man/man5/scols-filter.5.gz +%%MANPAGES%%share/man/man5/terminal-colors.d.5.gz +%%MANPAGES%%share/man/man8/blkid.8.gz +%%MANPAGES%%share/man/man8/readprofile.8.gz +%%MANPAGES%%share/man/man8/wipefs.8.gz