Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2025 21:24:03 GMT
From:      Charlie Li <vishwin@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cbae1dc4de45 - main - security/libsecret: fix build by accounting for cmsgcred
Message-ID:  <202506102124.55ALO3QT031888@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vishwin:

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

commit cbae1dc4de452e8f2f15830a8d26de35c5abca6e
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-06-10 20:48:02 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-10 21:23:35 +0000

    security/libsecret: fix build by accounting for cmsgcred
    
    The relevant errored code comes directly from security/gnome-keyring,
    which builds successfully there because its configure process
    properly detects and accounts for cmsgcred in <sys/socket.h>. In
    porting the code here, the relevant configure checks did not make
    it in, so the build goes down a code path not intended for us,
    hitting the error. Temporarily define the cmsgcred preprocessor
    variable as part of MESON_ARGS until upstream takes appropriate
    action in meson.build.
    
    Reported by: Ale <discipline[at]tiscali[dot]it>
    PR: 287429
---
 security/libsecret/Makefile | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/security/libsecret/Makefile b/security/libsecret/Makefile
index 0e2633413dda..10c72f587577 100644
--- a/security/libsecret/Makefile
+++ b/security/libsecret/Makefile
@@ -21,10 +21,7 @@ USE_GNOME=	glib20 introspection:build libxslt:build
 
 MESON_ARGS=	-Dbash_completion=disabled
 
-.include <bsd.port.pre.mk>
+# see PR 287429 / https://gitlab.gnome.org/GNOME/libsecret/-/issues/106
+MESON_ARGS+=	-Dc_args="-DHAVE_CMSGCRED"
 
-.if ${COMPILER_TYPE} == clang
-CFLAGS+=	-Wno-incompatible-function-pointer-types
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506102124.55ALO3QT031888>