git: 5d5e79472abe - main - x11/plasma6-plasma-workspace: Fix build on older stable

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sun, 04 Oct 2026 14:53:42 UTC
The branch main has been updated by joneum:

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

commit 5d5e79472abe666bc5747877a405270c0c454b4e
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-10-04 14:52:28 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-10-04 14:52:28 +0000

    x11/plasma6-plasma-workspace: Fix build on older stable
    
    On FreeBSD older than 1501503 the cameraindicator plugin is excluded
    from the package, but it still gets installed into the stage directory.
    ldd crashes on it during stage-qa and leaves ld-elf.so.1.core behind,
    so check-plist fails. Remove the plugin from the stage directory as well.
    
    Reviewed by:    arrowd
    Differential Revision:  https://reviews.freebsd.org/D60301
    Sponsored by:   Netzkommune GmbH
---
 x11/plasma6-plasma-workspace/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/x11/plasma6-plasma-workspace/Makefile b/x11/plasma6-plasma-workspace/Makefile
index 34cc31c739dd..b940fcd40170 100644
--- a/x11/plasma6-plasma-workspace/Makefile
+++ b/x11/plasma6-plasma-workspace/Makefile
@@ -58,6 +58,9 @@ GTK_RUN_DEPENDS=	appmenu-gtk-module>0:x11/gtk-app-menu
 # https://reviews.freebsd.org/D59635
 .if ${OSVERSION} < 1501503
 PLIST_SUB+=	RTLD="@comment "
+
+post-install:
+	${RM} ${STAGEDIR}${QT_PLUGINDIR}/plasma/applets/org.kde.plasma.cameraindicator.so
 .else
 PLIST_SUB+=	RTLD=""
 .endif