network/open-iscsi: Patched to build on current.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Wayne Cuddy 2019-09-13 23:21:22 +07:00 committed by Willy Sudiarto Raharjo
parent ae6abf4f7e
commit 964cd46baa
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,33 @@
diff -Naur open-iscsi-2.0.875.orig/iscsiuio/src/unix/libs/bnx2.c open-iscsi-2.0.875/iscsiuio/src/unix/libs/bnx2.c
--- open-iscsi-2.0.875.orig/iscsiuio/src/unix/libs/bnx2.c 2017-09-01 20:05:23.000000000 +0200
+++ open-iscsi-2.0.875/iscsiuio/src/unix/libs/bnx2.c 2019-09-06 14:24:47.943039000 +0200
@@ -47,6 +47,7 @@
#include <sys/user.h>
#include <fcntl.h>
#include <unistd.h>
+#include <sys/sysmacros.h>
#include "config.h"
diff -Naur open-iscsi-2.0.875.orig/iscsiuio/src/unix/libs/bnx2x.c open-iscsi-2.0.875/iscsiuio/src/unix/libs/bnx2x.c
--- open-iscsi-2.0.875.orig/iscsiuio/src/unix/libs/bnx2x.c 2017-09-01 20:05:23.000000000 +0200
+++ open-iscsi-2.0.875/iscsiuio/src/unix/libs/bnx2x.c 2019-09-06 14:24:23.527039000 +0200
@@ -51,6 +51,7 @@
#include <sys/user.h>
#include <fcntl.h>
#include <unistd.h>
+#include <sys/sysmacros.h>
#include "config.h"
diff -Naur open-iscsi-2.0.875.orig/iscsiuio/src/unix/libs/qedi.c open-iscsi-2.0.875/iscsiuio/src/unix/libs/qedi.c
--- open-iscsi-2.0.875.orig/iscsiuio/src/unix/libs/qedi.c 2017-09-01 20:05:23.000000000 +0200
+++ open-iscsi-2.0.875/iscsiuio/src/unix/libs/qedi.c 2019-09-06 14:29:00.780039000 +0200
@@ -58,6 +58,7 @@
#include <sys/user.h>
#include <fcntl.h>
#include <unistd.h>
+#include <sys/sysmacros.h>
#include "config.h"

View file

@ -22,9 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# 2019/09/08 - add patch to support building on Slackware "current"
#
PRGNAM=open-iscsi
VERSION=${VERSION:-2.0.875}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -62,6 +66,10 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
# Allow this SB to work on "current", benign on 14.2.
patch -p1 <$CWD/include_sysmacros.patch
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \