aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@sabayon.org>2011-03-22 13:02:05 +0100
committerFabio Erculiani <lxnay@sabayon.org>2011-03-22 13:02:05 +0100
commitc579bd11949a48c4757b64b561163951f829a4a6 (patch)
tree3a8ae6967893345ab60e52c4c8faf5b8bd562c30 /patches
parentdocs: mention keyword InVCS in HACKING (diff)
downloadgenkernel-c579bd11949a48c4757b64b561163951f829a4a6.tar.gz
genkernel-c579bd11949a48c4757b64b561163951f829a4a6.tar.bz2
genkernel-c579bd11949a48c4757b64b561163951f829a4a6.zip
open-iscsi: fix compilation when openslp is installed.
Two main issues: 1. open-iscsi build system, inside Makefile, user target, calls ./configure (which is very bad itself) without letting to choose configure options. Fixed in: open-iscsi-2.0.872-omg-calling-configure.patch 2. when openslp support is automagically enabled, -lslp didn't get added to compiler arguments. Fixed in: open-iscsi-2.0.872-slp.patch Peace.
Diffstat (limited to 'patches')
-rw-r--r--patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch11
-rw-r--r--patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch11
2 files changed, 22 insertions, 0 deletions
diff --git a/patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch b/patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch
new file mode 100644
index 0000000..185f1ac
--- /dev/null
+++ b/patches/iscsi/2.0-872/open-iscsi-2.0.872-omg-calling-configure.patch
@@ -0,0 +1,11 @@
+--- open-iscsi-2.0-872.orig/Makefile
++++ open-iscsi-2.0-872/Makefile
+@@ -27,7 +27,7 @@ IFACEFILES = etc/iface.example
+ all: user kernel
+
+ user: ;
+- cd utils/open-isns; ./configure; $(MAKE)
++ cd utils/open-isns; $(MAKE)
+ $(MAKE) -C utils/sysdeps
+ $(MAKE) -C utils/fwparam_ibft
+ $(MAKE) -C usr
diff --git a/patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch b/patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch
new file mode 100644
index 0000000..16658f3
--- /dev/null
+++ b/patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch
@@ -0,0 +1,11 @@
+--- open-iscsi-2.0-872.orig/utils/open-isns/configure.ac
++++ open-iscsi-2.0-872/utils/open-isns/configure.ac
+@@ -79,7 +79,7 @@ AC_ARG_WITH(slp,
+ WITH_SLP=$withval
+ else
+ WITH_SLP=yes
+- CPPFLAGS="$CPPFLAGS -I${withval}"
++ CPPFLAGS="$CPPFLAGS -I${withval} -lslp"
+ LDFLAGS="$LDFLAGS -L${withval}"
+ fi
+ ]