git: c470365f7cc9 - main - sysutils/fwupd: Unbreak for FreeBSD 14 and shorten install message (so hopefully people read it!)

From: Bernhard Froehlich <decke_at_FreeBSD.org>
Date: Fri, 17 Oct 2025 12:02:50 UTC
The branch main has been updated by decke:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c470365f7cc996e3f78314f2c040464ce2986d7b

commit c470365f7cc996e3f78314f2c040464ce2986d7b
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2025-10-17 12:01:22 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2025-10-17 12:01:22 +0000

    sysutils/fwupd: Unbreak for FreeBSD 14 and shorten install message (so hopefully people read it!)
---
 sysutils/fwupd/Makefile                       | 13 ++++++++++---
 sysutils/fwupd/files/extrapatch14-meson.build | 10 ++++++++++
 sysutils/fwupd/pkg-message                    | 16 ++++------------
 3 files changed, 24 insertions(+), 15 deletions(-)

diff --git a/sysutils/fwupd/Makefile b/sysutils/fwupd/Makefile
index dcc775d522c9..e9d7692f6683 100644
--- a/sysutils/fwupd/Makefile
+++ b/sysutils/fwupd/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	fwupd
 DISTVERSION=	2.0.16
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils
 
 MAINTAINER=	decke@FreeBSD.org
@@ -8,8 +8,7 @@ COMMENT=	Update firmware automatically, safely, and reliably
 
 LICENSE=	LGPL21
 
-BROKEN_FreeBSD_13=	requires at least FreeBSD 15
-BROKEN_FreeBSD_14=	requires at least FreeBSD 15
+BROKEN_FreeBSD_13=	requires at least FreeBSD 14
 
 BUILD_DEPENDS=	blkid:filesystems/libblkid \
 		flashrom>0:sysutils/flashrom \
@@ -63,4 +62,12 @@ MESON_ARGS+=	-Dpolkit=disabled \
 		-Dplugin_modem_manager=disabled \
 		-Dpython=${PYTHON_CMD}
 
+.include <bsd.port.options.mk>
+
+# FreeBSD 14.x needs extra libinotify dependency
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500000
+LIB_DEPENDS+=	libinotify.so:devel/libinotify
+EXTRA_PATCHES=	${PATCHDIR}/extrapatch14-meson.build
+.endif
+
 .include <bsd.port.mk>
diff --git a/sysutils/fwupd/files/extrapatch14-meson.build b/sysutils/fwupd/files/extrapatch14-meson.build
new file mode 100644
index 000000000000..3065b094040c
--- /dev/null
+++ b/sysutils/fwupd/files/extrapatch14-meson.build
@@ -0,0 +1,10 @@
+--- meson.build.orig	2025-09-12 09:55:19 UTC
++++ meson.build
+@@ -484,6 +484,7 @@ if get_option('default_library') != 'static'
+   endif
+   if host_machine.system() == 'freebsd'
+     platform_deps += dependency('efivar')
++    platform_deps += dependency('libinotify')
+   endif
+ endif
+ 
diff --git a/sysutils/fwupd/pkg-message b/sysutils/fwupd/pkg-message
index 497a5ea45d27..f9dd35f3b471 100644
--- a/sysutils/fwupd/pkg-message
+++ b/sysutils/fwupd/pkg-message
@@ -4,20 +4,12 @@
 
  Warning: fwupd is highly experimental and DANGEROUS
 
- The fwupd utility is currently highly experimental on FreeBSD
- and may be unstable or unsafe to use.
- Proceed with caution - flashing firmware carries a significant
- risk of rendering your device unusable (“bricking”).
+ PLEASE do not attempt to flash any devices yet!
 
- Only attempt to flash firmware if you are prepared to accept
- this risk.
+ If you want to help testing use those non-destructive commands:
 
- If you successfully flash a device — or encounter a failure —
- please send a detailed report to decke@FreeBSD.org
-
- Include information about your hardware and the firmware you
- attempted to flash. This feedback will help track which devices
- work correctly and which do not.
+   fwupdmgr get-devices
+   fwupdmgr verify [DEVICE-ID|GUID]
 EOM
 }
 ]