git: e78dc018f22d - main - sysutils/tracker3: fix build with clang 16

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Thu, 15 Jun 2023 16:24:59 UTC
The branch main has been updated by dim:

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

commit e78dc018f22d87c8a6e7b8b267e141b0161499d7
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-06-12 18:53:44 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-06-15 16:23:54 +0000

    sysutils/tracker3: fix build with clang 16
    
    Clang 16 has a new error about incompatible function types, which shows
    up when building sysutils/tracker3:
    
      ../src/libtracker-sparql/bus/tracker-bus.vala:20:56: error: incompatible function pointer types assigning to 'void (*)(TrackerSparqlConnection *, GCancellable *, GAsyncReadyCallback, gpointer)' (aka 'void (*)(struct _TrackerSparqlConnection *, struct _GCancellable *, void (*)(struct _GObject *, struct _GAsyncResult *, void *), void *)') from 'void (*)(TrackerSparqlConnection *, GAsyncReadyCallback, gpointer)' (aka 'void (*)(struct _TrackerSparqlConnection *, void (*)(struct _GObject *, struct _GAsyncResult *, void *), void *)') [-Wincompatible-function-pointer-types]
              ((TrackerSparqlConnectionClass *) klass)->close_async = (void (*) (TrackerSparqlConnection*, GAsyncReadyCallback, gpointer)) tracker_bus_connection_real_close_async;
                                                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Since the error occurs in vala-generated code, it does not make sense to
    patch the .c file. Suppress the warning instead.
    
    PR:             271968
    Approved by:    vishwin, fernape
    MFH:            2023Q2
---
 sysutils/tracker3/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sysutils/tracker3/Makefile b/sysutils/tracker3/Makefile
index 3e89e2c11fec..75d07ea3df5f 100644
--- a/sysutils/tracker3/Makefile
+++ b/sysutils/tracker3/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	tracker
 PORTVERSION=	3.1.2
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	sysutils gnome
 MASTER_SITES=	GNOME
 PKGNAMESUFFIX=	3
@@ -43,8 +43,14 @@ MAN_BUILD_DEPENDS=	asciidoc:textproc/asciidoc
 MAN_MESON_TRUE=		man
 MAN_DESC=		Install manual pages
 
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang
+CFLAGS+=	-Wno-incompatible-function-pointer-types
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e 's|/etc/asciidoc|${PYTHONPREFIX_SITELIBDIR}/asciidoc/resources|' \
 		${WRKSRC}/docs/manpages/meson.build
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>