FreeBSD Bugzilla – Attachment 239306 Details for
Bug 268787
sysutils/tracker: fix build with clang 15
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sysutils/tracker: fix build with clang 15
sysutils__tracker-fix-clang15-build-1.diff (text/plain), 1.29 KB, created by
Dimitry Andric
on 2023-01-06 16:07:38 UTC
(
hide
)
Description:
sysutils/tracker: fix build with clang 15
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2023-01-06 16:07:38 UTC
Size:
1.29 KB
patch
obsolete
>commit b8a6477ef5e3d6ba194b9ced375770fbe6cbe7e4 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Fri Jan 6 17:02:07 2023 +0100 > > sysutils/tracker: fix build with clang 15 > > During an exp-run for llvm 15 (see bug 265425), it turned out that > sysutils/tracker failed to build with clang 15: > > src/tracker-store/tracker-store.p/tracker-resources.c:1685:14: error: incompatible pointer to integer conversion assigning to 'gint' (aka 'int') from 'gconstpointer' (aka 'const void *') [-Wint-conversion] > subject_id = _tmp1_; > ^ ~~~~~~ > > This is because in this vala-generated C code, the glib hash table > iterator code always returns pointers, even for integer keys. However, > vala is inflexible in the C expressions it generates to store the > outcome. Suppress -Wint-conversion to get rid of the compile error. > >diff --git a/sysutils/tracker/Makefile b/sysutils/tracker/Makefile >index 9bb4bb43419c..8a46426eb5a8 100644 >--- a/sysutils/tracker/Makefile >+++ b/sysutils/tracker/Makefile >@@ -35,6 +35,7 @@ GLIB_SCHEMAS= org.freedesktop.Tracker.DB.gschema.xml \ > org.freedesktop.Tracker.enums.xml \ > org.freedesktop.Tracker.gschema.xml > BINARY_ALIAS= python3=${PYTHON_CMD} >+CFLAGS+= -Wno-int-conversion > > PLIST_SUB= LIBVER=0.304.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268787
: 239306