summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/ggml/Makefile2
-rw-r--r--misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt19
-rw-r--r--misc/py-fastscapelib/Makefile1
-rw-r--r--misc/rump/Makefile4
-rw-r--r--misc/rump/files/patch-src_lib_librumpuser_sp__common.c43
-rw-r--r--misc/rump/files/patch-src_sys_kern_kern__hook.c56
6 files changed, 123 insertions, 2 deletions
diff --git a/misc/ggml/Makefile b/misc/ggml/Makefile
index b332c2d881c5..db050b78c558 100644
--- a/misc/ggml/Makefile
+++ b/misc/ggml/Makefile
@@ -12,6 +12,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake:testing compiler:c++17-lang python:run shebangfix
USE_LDCONFIG= yes
+BROKEN_i386= compilation fails: LLVM ERROR: out of memory
+
USE_GITHUB= yes
GH_ACCOUNT= ggerganov
GH_TAGNAME= 83835ff
diff --git a/misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt b/misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt
new file mode 100644
index 000000000000..fab5880da52b
--- /dev/null
+++ b/misc/ggml/files/patch-src_ggml-cpu_CMakeLists.txt
@@ -0,0 +1,19 @@
+--- src/ggml-cpu/CMakeLists.txt.orig 2025-09-07 09:13:51 UTC
++++ src/ggml-cpu/CMakeLists.txt
+@@ -382,13 +382,13 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
+ string(REGEX REPLACE "POWER *([0-9]+)" "\\1" EXTRACTED_NUMBER "${MATCHED_STRING}")
+
+ if (EXTRACTED_NUMBER GREATER_EQUAL 10)
+- list(APPEND ARCH_FLAGS -mcpu=power10 -mpowerpc64)
++ list(APPEND ARCH_FLAGS -mcpu=power10)
+ elseif (EXTRACTED_NUMBER EQUAL 9)
+- list(APPEND ARCH_FLAGS -mcpu=power9 -mpowerpc64)
++ list(APPEND ARCH_FLAGS -mcpu=power9)
+ elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le")
+ list(APPEND ARCH_FLAGS -mcpu=powerpc64le -mtune=native)
+ else()
+- list(APPEND ARCH_FLAGS -mcpu=native -mtune=native -mpowerpc64)
++ list(APPEND ARCH_FLAGS -mcpu=native -mtune=native)
+ endif()
+ elseif(GGML_CPU_ALL_VARIANTS)
+ # Begin with the lowest baseline
diff --git a/misc/py-fastscapelib/Makefile b/misc/py-fastscapelib/Makefile
index dd142735cb90..42412318de85 100644
--- a/misc/py-fastscapelib/Makefile
+++ b/misc/py-fastscapelib/Makefile
@@ -12,6 +12,7 @@ WWW= https://fastscapelib.readthedocs.io/en/latest/ \
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
+BROKEN_FreeBSD_13= compilation fails with clang-19, see https://github.com/fastscape-lem/fastscapelib/issues/168
BROKEN_FreeBSD_15= compilation fails with clang-19, see https://github.com/fastscape-lem/fastscapelib/issues/168
BUILD_DEPENDS= cmake:devel/cmake-core \
diff --git a/misc/rump/Makefile b/misc/rump/Makefile
index a74a651c2bfa..fbd18a09c008 100644
--- a/misc/rump/Makefile
+++ b/misc/rump/Makefile
@@ -1,6 +1,6 @@
PORTNAME= rump
PORTVERSION= 20170822
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= misc
MAINTAINER= vanilla@FreeBSD.org
@@ -23,7 +23,7 @@ USES= compiler
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
-CFLAGS+= -Wno-error=strict-prototypes -Wno-error=array-parameter
+CFLAGS+= -Wno-error=strict-prototypes -Wno-error=array-parameter -Wno-error=cast-function-type-mismatch
.endif
.if ${ARCH} == amd64 || ${ARCH} == i386
diff --git a/misc/rump/files/patch-src_lib_librumpuser_sp__common.c b/misc/rump/files/patch-src_lib_librumpuser_sp__common.c
new file mode 100644
index 000000000000..2ba3cefa3eab
--- /dev/null
+++ b/misc/rump/files/patch-src_lib_librumpuser_sp__common.c
@@ -0,0 +1,43 @@
+--- src/lib/librumpuser/sp_common.c.orig 2025-09-09 03:27:37 UTC
++++ src/lib/librumpuser/sp_common.c
+@@ -701,15 +701,21 @@ static int
+
+ /*ARGSUSED*/
+ static int
+-notsupp(void)
++addrparse_notsupp(const char *addr __unused, struct sockaddr **sa __unused,
++ int allow_wildcard __unused)
+ {
+
+ fprintf(stderr, "rump_sp: support not yet implemented\n");
+ return EOPNOTSUPP;
+ }
+
++static void
++cleanup_success(struct sockaddr *sa __unused)
++{
++}
++
+ static int
+-success(void)
++connecthook_success(int s __unused)
+ {
+
+ return 0;
+@@ -724,12 +730,12 @@ static struct {
+ cleanup_fn cleanup;
+ } parsetab[] = {
+ { "tcp", PF_INET, sizeof(struct sockaddr_in),
+- tcp_parse, tcp_connecthook, (cleanup_fn)success },
++ tcp_parse, tcp_connecthook, cleanup_success },
+ { "unix", PF_LOCAL, sizeof(struct sockaddr_un),
+- unix_parse, (connecthook_fn)success, unix_cleanup },
++ unix_parse, connecthook_success, unix_cleanup },
+ { "tcp6", PF_INET6, sizeof(struct sockaddr_in6),
+- (addrparse_fn)notsupp, (connecthook_fn)success,
+- (cleanup_fn)success },
++ addrparse_notsupp, connecthook_success,
++ cleanup_success },
+ };
+ #define NPARSE (sizeof(parsetab)/sizeof(parsetab[0]))
+
diff --git a/misc/rump/files/patch-src_sys_kern_kern__hook.c b/misc/rump/files/patch-src_sys_kern_kern__hook.c
new file mode 100644
index 000000000000..965b8a46b4a1
--- /dev/null
+++ b/misc/rump/files/patch-src_sys_kern_kern__hook.c
@@ -0,0 +1,56 @@
+--- src/sys/kern/kern_hook.c.orig 2025-09-09 03:38:01 UTC
++++ src/sys/kern/kern_hook.c
+@@ -102,7 +102,7 @@ hook_proc_run(hook_list_t *list, struct proc *p)
+ struct hook_desc *hd;
+
+ LIST_FOREACH(hd, list, hk_list)
+- ((void (*)(struct proc *, void *))*hd->hk_fn)(p, hd->hk_arg);
++ ((void (*)(struct proc *, void *))(void *)*hd->hk_fn)(p, hd->hk_arg);
+ }
+
+ /*
+@@ -168,7 +168,7 @@ mountroothook_establish(void (*fn)(device_t), device_t
+ void *
+ mountroothook_establish(void (*fn)(device_t), device_t dev)
+ {
+- return hook_establish(&mountroothook_list, (void (*)(void *))fn, dev);
++ return hook_establish(&mountroothook_list, (void (*)(void *))(void *)fn, dev);
+ }
+
+ void
+@@ -201,7 +201,7 @@ exechook_establish(void (*fn)(struct proc *, void *),
+ void *
+ exechook_establish(void (*fn)(struct proc *, void *), void *arg)
+ {
+- return hook_establish(&exechook_list, (void (*)(void *))fn, arg);
++ return hook_establish(&exechook_list, (void (*)(void *))(void *)fn, arg);
+ }
+
+ void
+@@ -228,7 +228,7 @@ exithook_establish(void (*fn)(struct proc *, void *),
+ void *rv;
+
+ rw_enter(&exec_lock, RW_WRITER);
+- rv = hook_establish(&exithook_list, (void (*)(void *))fn, arg);
++ rv = hook_establish(&exithook_list, (void (*)(void *))(void *)fn, arg);
+ rw_exit(&exec_lock);
+ return rv;
+ }
+@@ -256,7 +256,7 @@ forkhook_establish(void (*fn)(struct proc *, struct pr
+ void *
+ forkhook_establish(void (*fn)(struct proc *, struct proc *))
+ {
+- return hook_establish(&forkhook_list, (void (*)(void *))fn, NULL);
++ return hook_establish(&forkhook_list, (void (*)(void *))(void *)fn, NULL);
+ }
+
+ void
+@@ -274,7 +274,7 @@ doforkhooks(struct proc *p2, struct proc *p1)
+ struct hook_desc *hd;
+
+ LIST_FOREACH(hd, &forkhook_list, hk_list) {
+- ((void (*)(struct proc *, struct proc *))*hd->hk_fn)
++ ((void (*)(struct proc *, struct proc *))(void *)*hd->hk_fn)
+ (p2, p1);
+ }
+ }