aboutsummaryrefslogtreecommitdiffstats
path: root/filesystems
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2025-06-28 10:45:12 +0200
committerMatthias Andree <mandree@FreeBSD.org>2025-06-30 17:00:31 +0200
commitdb056622d6457f10c143e3f13312fdd737841c35 (patch)
treeb109a6cbce4516d52c1766ab4c050d52ba782288 /filesystems
parent169ac0b9380f6ed8d0ff4e8cbfad131fd226812e (diff)
*/*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
Diffstat (limited to 'filesystems')
-rw-r--r--filesystems/libblkid/Makefile9
-rw-r--r--filesystems/libblkid/files/patch-meson.build8
-rw-r--r--filesystems/libblkid/files/patch-tools_poman-translate.sh11
-rw-r--r--filesystems/libblkid/pkg-plist1
4 files changed, 24 insertions, 5 deletions
diff --git a/filesystems/libblkid/Makefile b/filesystems/libblkid/Makefile
index f628c92cb681..84849f62ca2e 100644
--- a/filesystems/libblkid/Makefile
+++ b/filesystems/libblkid/Makefile
@@ -17,16 +17,17 @@ 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 \
+ -Db_lundef=false \
-Dbuild-libblkid=enabled \
- -Dbuild-libsmartcols=enabled # dependency of libblkid
+ -Dbuild-libsmartcols=enabled \
+ -Dprogram-tests=false # dependency of libblkid
OPTIONS_DEFINE= MANPAGES
+OPTIONS_DEFAULT= MANPAGES
+OPTIONS_SUB= yes
MANPAGES_BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor
.include <bsd.port.mk>
diff --git a/filesystems/libblkid/files/patch-meson.build b/filesystems/libblkid/files/patch-meson.build
index 757fff747c84..ba004eb9d977 100644
--- a/filesystems/libblkid/files/patch-meson.build
+++ b/filesystems/libblkid/files/patch-meson.build
@@ -57,3 +57,11 @@
if not is_disabler(exe)
exes += exe
manadocs += wdctl_manadocs
+@@ -4026,7 +4005,6 @@ run_target(
+ depends : exes)
+
+
+-manadocs += lib_tcolors_manadocs
+ if build_libblkid
+ manadocs += lib_blkid_manadocs + lib_smartcols_manadocs
+ endif
diff --git a/filesystems/libblkid/files/patch-tools_poman-translate.sh b/filesystems/libblkid/files/patch-tools_poman-translate.sh
new file mode 100644
index 000000000000..ed558d9f2d9a
--- /dev/null
+++ b/filesystems/libblkid/files/patch-tools_poman-translate.sh
@@ -0,0 +1,11 @@
+--- tools/poman-translate.sh.orig 2025-03-18 12:50:51 UTC
++++ tools/poman-translate.sh
+@@ -82,7 +82,7 @@ mapfile -t PO4ACFG_TRANSLATIONS < <( awk '/\[type:asci
+ mapfile -t LOCALES < <( awk '/\[po4a_langs\]/ {for (i=2; i<=NF; i++) print $i}' "$PO4ACFG" )
+ mapfile -t PO4ACFG_TRANSLATIONS < <( awk '/\[type:asciidoc\]/ {print $2;}' "$PO4ACFG" )
+
+-mkdir --parents "$DESTDIR"
++mkdir -p "$DESTDIR"
+
+ DESTDIR=$( OLDPWD=- CDPATH='' cd -P -- "$DESTDIR" && pwd )
+
diff --git a/filesystems/libblkid/pkg-plist b/filesystems/libblkid/pkg-plist
index 31f9a10f43fe..bac365512776 100644
--- a/filesystems/libblkid/pkg-plist
+++ b/filesystems/libblkid/pkg-plist
@@ -23,7 +23,6 @@ sbin/wipefs
%%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