FreeBSD Bugzilla – Attachment 238606 Details for
Bug 268226
devel/py-llfuse: fix build with clang 15
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel/py-llfuse: fix build with clang 15
devel__py-llfuse-fix-clang15-build-1.diff (text/plain), 1.84 KB, created by
Dimitry Andric
on 2022-12-07 16:09:41 UTC
(
hide
)
Description:
devel/py-llfuse: fix build with clang 15
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2022-12-07 16:09:41 UTC
Size:
1.84 KB
patch
obsolete
>commit 57531003231831e8cd3f410b9512d5d98d7480ba >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Wed Dec 7 17:06:21 2022 +0100 > > devel/py-llfuse: fix build with clang 15 > > During an exp-run for llvm 15 (see bug 265425), it turned out that > devel/py-llfuse failed to build with clang 15: > > src/llfuse.c:41839:21: error: incompatible pointer to integer conversion assigning to 'uintptr_t' (aka 'unsigned int') from 'pthread_t' (aka 'struct pthread *') [-Wint-conversion] > __pyx_v_tid = __pyx_t_7; > ^ ~~~~~~~~~ > src/llfuse.c:42467:3: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations] > PyEval_InitThreads(); > ^ > /usr/local/include/python3.9/ceval.h:130:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here > Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); > ^ > /usr/local/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' > #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) > ^ > 1 warning and 1 error generated. > > The conversion from pthread_t to uintptr_t needs an explicit cast. > >diff --git a/devel/py-llfuse/files/patch-src_llfuse.c b/devel/py-llfuse/files/patch-src_llfuse.c >new file mode 100644 >index 000000000000..c48298ee62fe >--- /dev/null >+++ b/devel/py-llfuse/files/patch-src_llfuse.c >@@ -0,0 +1,11 @@ >+--- src/llfuse.c.orig 2022-05-31 15:39:27 UTC >++++ src/llfuse.c >+@@ -41836,7 +41836,7 @@ static void *__pyx_f_6llfuse_worker_start(void *__pyx_ >+ * 'aborting processing', tid) >+ */ >+ __pyx_t_7 = __pyx_v_wd->thread_id; >+- __pyx_v_tid = __pyx_t_7; >++ __pyx_v_tid = (uintptr_t)__pyx_t_7; >+ >+ /* "src/fuse_api.pxi":391 >+ * fuse_session_exit(session)
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 268226
: 238606