Skip to contentSkip to conversation

Rename libiscsi to libiscsiclient

PATCH New Ronnie Sahlberg 2 participants 4 messages Mar 3, 2012 – Mar 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Rename libiscsi to libiscsiclient

Please find a patch that changes the name of the iscsi library from libiscsi to libiscsiclient

While libiscsi is a very nice name that works on all platforms, including win32, it clashes with a linux library.

regards
ronnie sahlberg

#1 lore raw

PATCH 1/1 Change library from libiscsi to libiscsiclient to match library rename in libiscsi

---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index fb0e18e..294c0c1 100755
@@ -2503,9 +2503,9 @@ if test "$libiscsi" != "no" ; then
 #include <iscsi/iscsi.h>
 int main(void) { iscsi_create_context(""); return 0; }
 EOF
-  if compile_prog "-Werror" "-liscsi" ; then
+  if compile_prog "-Werror" "-liscsiclient" ; then
     libiscsi="yes"
-    LIBS="$LIBS -liscsi"
+    LIBS="$LIBS -liscsiclient"
   else
     if test "$libiscsi" = "yes" ; then
       feature_not_found "libiscsi"
Signature · 1 line
1.7.3.1
#2 lore raw

Re: [Qemu-devel] [PATCH] Change library from libiscsi to libiscsiclient to match library rename in libiscsi

Quoted 11 lines · Ronnie Sahlberg
---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
configure +0 -0
index fb0e18e..294c0c1 100755
@@ -2503,9 +2503,9 @@ if test "$libiscsi" != "no" ; then
 #include <iscsi/iscsi.h>

configure if test "$libiscsi" != "no" ; then · line 2511

Quoted 10 lines
configure +2 -2
 int main(void) { iscsi_create_context(""); return 0; }
 EOF
-  if compile_prog "-Werror" "-liscsi" ; then
+  if compile_prog "-Werror" "-liscsiclient" ; then
     libiscsi="yes"
-    LIBS="$LIBS -liscsi"
+    LIBS="$LIBS -liscsiclient"
   else
     if test "$libiscsi" = "yes" ; then
       feature_not_found "libiscsi"

Shouldn't we rename the feature and the --with/--without name too here? This appears to be partial "fix" for the name change.

For the feature, I'd suggest using --with-iscsi instead of --with-libiscsiclient. But... dunno.

Thanks,

/mjt

#3 lore raw

Re: [Qemu-devel] [PATCH] Change library from libiscsi to libiscsiclient to match library rename in libiscsi

Please ignore this patch. We do not need it.

Quoted 33 lines · Michael Tokarev
Quoted 13 lines · Ronnie Sahlberg

---
 configure |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
configure +0 -0
index fb0e18e..294c0c1 100755
@@ -2503,9 +2503,9 @@ if test "$libiscsi" != "no" ; then
  #include <iscsi/iscsi.h>
  int main(void) { iscsi_create_context(""); return 0; }

 EOF

Quoted 8 lines

-  if compile_prog "-Werror" "-liscsi" ; then
+  if compile_prog "-Werror" "-liscsiclient" ; then libiscsi="yes"
-    LIBS="$LIBS -liscsi"
+    LIBS="$LIBS -liscsiclient"
   else
     if test "$libiscsi" = "yes" ; then feature_not_found "libiscsi"

Shouldn't we rename the feature and the --with/--without name too here?  This appears to be partial "fix" for the name change.

For the feature, I'd suggest using --with-iscsi instead of --with-libiscsiclient.  But... dunno.

Thanks,

/mjt