Index | Thread | Search

From:
Rafael Sadowski <rafael@sizeofvoid.org>
Subject:
x11/qt6: disable SBOM?
To:
ports@openbsd.org
Date:
Mon, 15 Dec 2025 07:38:26 +0100

Download raw body.

Thread
  • Rafael Sadowski:

    x11/qt6: disable SBOM?

Simple diff to disable SBOM generation in Qt6 ports, as Qt
generates them by default otherwise.

OK? Any other opinions?

Index: qt6.port.mk
===================================================================
RCS file: /cvs/ports/x11/qt6/qt6.port.mk,v
diff -u -p -r1.14 qt6.port.mk
--- qt6.port.mk	26 Nov 2025 10:09:59 -0000	1.14
+++ qt6.port.mk	15 Dec 2025 06:34:25 -0000
@@ -62,6 +62,15 @@ COMPILER_LANGS ?= c c++
 ONLY_FOR_ARCHS ?= ${CXX11_ARCHS}
 .endif
 
+# https://wiki.qt.io/SBOM
+MODQT6_GENERATE_SBOM ?=	No
+
+.if ${MODQT6_GENERATE_SBOM:L} == "yes"
+CONFIGURE_ARGS +=	-DQT_GENERATE_SBOM=ON
+.else
+CONFIGURE_ARGS +=	-DQT_GENERATE_SBOM=OFF
+.endif
+
 # Detected locale "C" with character encoding "US-ASCII", which is not UTF-8.
 # Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
 CONFIGURE_ENV +=	LC_CTYPE=C.UTF-8