git: 2056579a4bfc - main - net/libiscsi: fix build on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Aug 2024 18:36:44 UTC
The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=2056579a4bfc05bf601d9d943a025da8fbb2552e commit 2056579a4bfc05bf601d9d943a025da8fbb2552e Author: Martin Birgmeier <d8zNeCFG@aon.at> AuthorDate: 2024-08-13 18:31:59 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-08-13 18:31:59 +0000 net/libiscsi: fix build on i386 While here refresh patches with "make makepatch". PR: 280800 MFH: 2024Q3 --- net/libiscsi/files/patch-configure.ac | 6 +++--- net/libiscsi/files/patch-lib_socket.c | 15 ++++++++++++--- net/libiscsi/files/patch-utils_iscsi-discard.c | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/net/libiscsi/files/patch-configure.ac b/net/libiscsi/files/patch-configure.ac index 38166307dcde..ddf9df4dee23 100644 --- a/net/libiscsi/files/patch-configure.ac +++ b/net/libiscsi/files/patch-configure.ac @@ -1,6 +1,6 @@ ---- ./configure.ac.ORIG 2023-02-11 20:12:38.532565000 +0100 -+++ ./configure.ac 2023-02-11 20:14:27.194137000 +0100 -@@ -170,7 +170,8 @@ +--- configure.ac.orig 2024-02-05 23:51:38 UTC ++++ configure.ac +@@ -170,7 +170,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <infiniband/verbs.h> #include <rdma/rdma_cma.h> diff --git a/net/libiscsi/files/patch-lib_socket.c b/net/libiscsi/files/patch-lib_socket.c index 8b00a0c73bf9..25ed1fdaece0 100644 --- a/net/libiscsi/files/patch-lib_socket.c +++ b/net/libiscsi/files/patch-lib_socket.c @@ -1,6 +1,6 @@ ---- ./lib/socket.c.ORIG 2023-02-11 20:12:27.340472000 +0100 -+++ ./lib/socket.c 2023-02-11 21:13:25.802721000 +0100 -@@ -140,7 +140,7 @@ +--- lib/socket.c.orig 2024-02-05 23:51:38 UTC ++++ lib/socket.c +@@ -140,7 +140,7 @@ iscsi_add_to_outqueue(struct iscsi_context *iscsi, str pdu->next = NULL; } @@ -9,3 +9,12 @@ iface_rr--; } +@@ -531,7 +531,7 @@ iscsi_iovector_readv_writev(struct iscsi_context *iscs + + if (pos < iovector->offset) { + iscsi_set_error(iscsi, "%s: iovector reset. pos(%d) is smaller than" +- "current offset(%ld)", rw, pos, iovector->offset); ++ "current offset(%zd)", rw, pos, iovector->offset); + errno = EINVAL; + return -1; + } diff --git a/net/libiscsi/files/patch-utils_iscsi-discard.c b/net/libiscsi/files/patch-utils_iscsi-discard.c new file mode 100644 index 000000000000..d238f3e28c18 --- /dev/null +++ b/net/libiscsi/files/patch-utils_iscsi-discard.c @@ -0,0 +1,14 @@ +--- utils/iscsi-discard.c.orig 2024-02-05 23:51:38 UTC ++++ utils/iscsi-discard.c +@@ -220,7 +220,11 @@ int main(int argc, char *argv[]) + + capacity = block_length * (rc16->returned_lba + 1); + if (offset > capacity) { ++#ifdef __i386__ ++ fprintf(stderr,"Offset(%llu) exceeds capacity(%llu)\n", offset, capacity); ++#else + fprintf(stderr,"Offset(%lu) exceeds capacity(%lu)\n", offset, capacity); ++#endif + goto free_task; + } +