git: 89038e238bbb - main - sysutils/fastfetch: fix build on CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 24 Sep 2026 12:54:31 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=89038e238bbb9b567e8ff6cc28818394519f0c29
commit 89038e238bbb9b567e8ff6cc28818394519f0c29
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-09-21 05:06:27 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-09-24 12:53:50 +0000
sysutils/fastfetch: fix build on CURRENT
In file included from /wrkdirs/usr/ports/sysutils/fastfetch/work/fastfetch-2.68.1/src/common/impl/font.c:1:
In file included from /wrkdirs/usr/ports/sysutils/fastfetch/work/fastfetch-2.68.1/src/fastfetch.h:9:
In file included from /wrkdirs/usr/ports/sysutils/fastfetch/work/fastfetch-2.68.1/src/common/FFstrbuf.h:10:
/wrkdirs/usr/ports/sysutils/fastfetch/work/fastfetch-2.68.1/src/common/memrchr.h:11:7: error: expected identifier or '('
11 | void* memrchr(const void* s, int c, size_t n);
| ^
/usr/include/string.h:224:26: note: expanded from macro 'memrchr'
224 | #define memrchr(b, c, n) __qualsel((b), \
| ^
/usr/include/sys/cdefs.h:246:2: note: expanded from macro '__qualsel'
246 | _Generic(1 ? (p) : (void *)(__uintptr_t)(p), \
| ^
1 error generated.
---
sysutils/fastfetch/files/patch-src_common_memrchr.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/sysutils/fastfetch/files/patch-src_common_memrchr.h b/sysutils/fastfetch/files/patch-src_common_memrchr.h
new file mode 100644
index 000000000000..19f0c0530f43
--- /dev/null
+++ b/sysutils/fastfetch/files/patch-src_common_memrchr.h
@@ -0,0 +1,12 @@
+--- src/common/memrchr.h.orig 2026-09-20 18:34:58 UTC
++++ src/common/memrchr.h
+@@ -8,7 +8,9 @@ extern "C" {
+
+ // `memrchr` is a GNU extension and may not be declared by system headers even when the symbol exists.
+ // Declare it unconditionally; the build system provides a fallback implementation when missing.
++#ifndef memrchr
+ void* memrchr(const void* s, int c, size_t n);
++#endif
+
+ #ifdef __cplusplus
+ }