aboutsummaryrefslogtreecommitdiffstats
path: root/net/iet
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-02-14 06:38:19 +0800
committerdelphij <delphij@FreeBSD.org>2015-02-14 06:38:19 +0800
commit5e67597ea602659cc3bbc60a02615897b0c6e369 (patch)
treef08b80cad133bae3573bd08b93adff166dd05bcb /net/iet
parent3d73c62c72a2b520f640e1e1b47e1dc3dd4f0b15 (diff)
downloadfreebsd-ports-gnome-5e67597ea602659cc3bbc60a02615897b0c6e369.tar.gz
freebsd-ports-gnome-5e67597ea602659cc3bbc60a02615897b0c6e369.tar.zst
freebsd-ports-gnome-5e67597ea602659cc3bbc60a02615897b0c6e369.zip
Add a new patch for iet(4) after sendfile refactor.
This would fix build for -CURRENT.
Diffstat (limited to 'net/iet')
-rw-r--r--net/iet/Makefile2
-rw-r--r--net/iet/files/patch-freebsd1114
2 files changed, 15 insertions, 1 deletions
diff --git a/net/iet/Makefile b/net/iet/Makefile
index 6accc7c97243..436d4760854b 100644
--- a/net/iet/Makefile
+++ b/net/iet/Makefile
@@ -3,7 +3,7 @@
PORTNAME= iet
PORTVERSION= 1.4.20.2
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= net kld
MASTER_SITES= SF/iscsitarget/iscsitarget/${PORTVERSION}/
DISTNAME= iscsitarget-${PORTVERSION}
diff --git a/net/iet/files/patch-freebsd11 b/net/iet/files/patch-freebsd11
index 4a04d8f037ea..26bd1785b3bc 100644
--- a/net/iet/files/patch-freebsd11
+++ b/net/iet/files/patch-freebsd11
@@ -10,3 +10,17 @@
#define DATA_PROTECT SSD_KEY_DATA_PROTECT
#define NO_SENSE SSD_KEY_NO_SENSE
#define MEDIUM_ERROR SSD_KEY_MEDIUM_ERROR
+--- kernel/conn.c.orig 2015-02-13 14:23:20.438348146 -0800
++++ kernel/conn.c 2015-02-13 14:33:52.728261609 -0800
+@@ -80,7 +80,11 @@
+
+ if ((so->so_state & SS_ISDISCONNECTING) ||(so->so_state & SS_ISDISCONNECTED))
+ conn_close(conn);
++#if __FreeBSD_version >= 1100048
++ else if (soreadable(so))
++#else
+ else if (so->so_rcv.sb_cc || !(so->so_rcv.sb_state & SBS_CANTRCVMORE))
++#endif
+ __nthread_wakeup(info);
+
+ return (SU_OK);