* [gentoo-commits] proj/genkernel:master commit in: /, patches/iscsi/2.0-872/
@ 2011-03-22 12:04 Fabio Erculiani
0 siblings, 0 replies; 2+ messages in thread
From: Fabio Erculiani @ 2011-03-22 12:04 UTC (permalink / raw
To: gentoo-commits
commit: c579bd11949a48c4757b64b561163951f829a4a6
Author: Fabio Erculiani <lxnay <AT> sabayon <DOT> org>
AuthorDate: Tue Mar 22 12:02:05 2011 +0000
Commit: Fabio Erculiani <lxnay <AT> gentoo <DOT> org>
CommitDate: Tue Mar 22 12:02:05 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=c579bd11
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.
---
gen_compile.sh | 7 ++++++-
.../open-iscsi-2.0.872-omg-calling-configure.patch | 11 +++++++++++
patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch | 11 +++++++++++
3 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/gen_compile.sh b/gen_compile.sh
index b60b921..00b5de9 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -685,10 +685,15 @@ compile_iscsi() {
gen_die "ISCSI directory ${ISCSI_DIR} invalid"
print_info 1 'iSCSI: >> Compiling...'
cd "${TEMP}/${ISCSI_DIR}"
+ apply_patches iscsi ${ISCSI_VER}
# Only build userspace
+ print_info 1 'iSCSI: >> Configuring userspace...'
+ cd utils/open-isns || gen_die 'Could not enter open-isns dir'
+ ./configure --without-slp >> ${LOGFILE} 2>&1 || gen_die 'Could not configure userspace'
+ cd ../.. || gen_die 'wtf?'
MAKE=${UTILS_MAKE} compile_generic "user" ""
-
+
# if kernel modules exist, copy them to initramfs, otherwise it will be compiled into the kernel
mkdir -p "${TEMP}/initramfs-iscsi-temp/lib/modules/${RELEASE}/kernel/drivers/scsi/"
for modname in iscsi_tcp libiscsi scsi_transport_iscsi
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
+ ]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/genkernel:master commit in: /, patches/iscsi/2.0-872/
@ 2011-03-22 18:24 Fabio Erculiani
0 siblings, 0 replies; 2+ messages in thread
From: Fabio Erculiani @ 2011-03-22 18:24 UTC (permalink / raw
To: gentoo-commits
commit: ad2842f6701c0eea0666a4b2e510f1cd078de6fe
Author: Fabio Erculiani <lxnay <AT> sabayon <DOT> org>
AuthorDate: Tue Mar 22 18:23:59 2011 +0000
Commit: Fabio Erculiani <lxnay <AT> gentoo <DOT> org>
CommitDate: Tue Mar 22 18:23:59 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=ad2842f6
iSCSI: open-iscsi patchwork: add -lslp to LDFLAGS, and properly call autoconf
---
gen_compile.sh | 3 +++
patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch | 14 +++++++-------
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/gen_compile.sh b/gen_compile.sh
index 00b5de9..ec752ce 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -690,6 +690,9 @@ compile_iscsi() {
# Only build userspace
print_info 1 'iSCSI: >> Configuring userspace...'
cd utils/open-isns || gen_die 'Could not enter open-isns dir'
+ # we currently have a patch that changes configure.ac
+ # once given patch is dropped, drop autoconf too
+ autoconf || gen_die 'Could not tweak open-iscsi configuration'
./configure --without-slp >> ${LOGFILE} 2>&1 || gen_die 'Could not configure userspace'
cd ../.. || gen_die 'wtf?'
MAKE=${UTILS_MAKE} compile_generic "user" ""
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
index 16658f3..51ca3e5 100644
--- 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
@@ -1,11 +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
+--- a/utils/open-isns/configure.ac
++++ b/utils/open-isns/configure.ac
+@@ -80,7 +80,7 @@ AC_ARG_WITH(slp,
else
WITH_SLP=yes
-- CPPFLAGS="$CPPFLAGS -I${withval}"
-+ CPPFLAGS="$CPPFLAGS -I${withval} -lslp"
- LDFLAGS="$LDFLAGS -L${withval}"
+ CPPFLAGS="$CPPFLAGS -I${withval}"
+- LDFLAGS="$LDFLAGS -L${withval}"
++ LDFLAGS="$LDFLAGS -L${withval} -lslp"
fi
]
+ )
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-22 18:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-22 18:24 [gentoo-commits] proj/genkernel:master commit in: /, patches/iscsi/2.0-872/ Fabio Erculiani
-- strict thread matches above, loose matches on Subject: below --
2011-03-22 12:04 Fabio Erculiani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox