<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/92eb50c688d23eb78461d9f5a4592be4fae8939b">https://github.com/macports/macports-ports/commit/92eb50c688d23eb78461d9f5a4592be4fae8939b</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 92eb50c688d blisp: fix build on older OS and with gcc
</span>92eb50c688d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 92eb50c688d23eb78461d9f5a4592be4fae8939b
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Fri Jan 5 22:42:28 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> blisp: fix build on older OS and with gcc
</span>---
sysutils/blisp/Portfile | 7 ++++-
...t.h-use-_Static_assert-for-pre-C23-compat.patch | 32 ++++++++++++++++++++++
.../0002-parse_file.h-include-sys-types.h.patch | 22 +++++++++++++++
3 files changed, 60 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/blisp/Portfile b/sysutils/blisp/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2fb610f2829..ae455ab53bd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/blisp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/blisp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,8 +1,8 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup github 1.0
</span> PortGroup cmake 1.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span>
github.setup pine64 blisp 0.0.4 v
revision 0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,6 +22,11 @@ depends_build-append \
</span> depends_lib-append port:argtable3 \
port:libserialport
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append 0001-blisp_struct.h-use-_Static_assert-for-pre-C23-compat.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0002-parse_file.h-include-sys-types.h.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append \
-DBLISP_USE_SYSTEM_LIBRARIES=ON \
-DBLISP_BUILD_CLI=ON
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/blisp/files/0001-blisp_struct.h-use-_Static_assert-for-pre-C23-compat.patch b/sysutils/blisp/files/0001-blisp_struct.h-use-_Static_assert-for-pre-C23-compat.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..05af625637d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/blisp/files/0001-blisp_struct.h-use-_Static_assert-for-pre-C23-compat.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From bfe8cd1e343f35a108a3d83726e22821ffbd0e0a Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Fri, 5 Jan 2024 22:29:48 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] blisp_struct.h: use _Static_assert for pre-C23 compatibility
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Closes: https://github.com/pine64/blisp/issues/61
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include/blisp_struct.h | 4 ++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 2 insertions(+), 2 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/blisp_struct.h include/blisp_struct.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 73694b9..c823a7f 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/blisp_struct.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/blisp_struct.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -154,7 +154,7 @@ struct bfl_boot_header {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uint32_t crc32;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-static_assert(sizeof(struct bfl_boot_header) == 176,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++_Static_assert(sizeof(struct bfl_boot_header) == 176,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Bootheader have wrong size");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct blflash_segment_header {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -164,7 +164,7 @@ struct blflash_segment_header {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uint32_t crc32;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-static_assert(sizeof(struct blflash_segment_header) == 16,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++_Static_assert(sizeof(struct blflash_segment_header) == 16,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Segment header have wrong size");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #pragma pack(pop)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/blisp/files/0002-parse_file.h-include-sys-types.h.patch b/sysutils/blisp/files/0002-parse_file.h-include-sys-types.h.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b9efcde199a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/blisp/files/0002-parse_file.h-include-sys-types.h.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 81faf3f213f82622984b82287e1555fd1ea4df36 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Fri, 5 Jan 2024 22:17:01 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] parse_file.h: include sys/types.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fixes: https://github.com/pine64/blisp/issues/59
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tools/blisp/src/file_parsers/parse_file.h | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git tools/blisp/src/file_parsers/parse_file.h tools/blisp/src/file_parsers/parse_file.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 2380b51..7334ad8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- tools/blisp/src/file_parsers/parse_file.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ tools/blisp/src/file_parsers/parse_file.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2,6 +2,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PARSE_FILE_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/types.h> /* ssize_t */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(_MSC_VER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <BaseTsd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef SSIZE_T ssize_t;
</span></pre><pre style='margin:0'>
</pre>