Skip to contentSkip to conversation

configure: make libnfs not_found message user friendly

PATCH In review Liu Yuan 4 participants 5 messages Jul 12, 2014 – Jul 18, 2014

lore
Share & tools
lore

Liu Yuan

author
#0 lore raw

PATCH v2 1/1 configure: make libnfs not_found message user friendly

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 7dd43fd..78e7baf 100755
@@ -3996,7 +3996,7 @@ if test "$libnfs" != "no" ; then
     LIBS="$LIBS $libnfs_libs"
   else
     if test "$libnfs" = "yes" ; then
-      feature_not_found "libnfs"
+      feature_not_found "libnfs" "Install libnfs-devel >= 1.9.3"
     fi
     libnfs="no"
   fi
Signature · 1 line
1.9.1
#1 lore raw
Quoted 11 lines · Liu Yuan
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index 7dd43fd..78e7baf 100755

configure if test "$libnfs" != "no" ; then · line 3999

Quoted 5 lines
configure +1 -1
@@ -3996,7 +3996,7 @@ if test "$libnfs" != "no" ; then
     LIBS="$LIBS $libnfs_libs"
   else
     if test "$libnfs" = "yes" ; then
-      feature_not_found "libnfs"
+      feature_not_found "libnfs" "Install libnfs-devel >= 1.9.3"

I notice that other occasions of feature_not_found doesn't add "-" between package and devel.

Fam

#2 lore raw
In reply to Liu Yuan
Quoted 22 lines · Liu Yuan
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 7dd43fd..78e7baf 100755
@@ -3996,7 +3996,7 @@ if test "$libnfs" != "no" ; then
     LIBS="$LIBS $libnfs_libs"
   else
     if test "$libnfs" = "yes" ; then
-      feature_not_found "libnfs"
+      feature_not_found "libnfs" "Install libnfs-devel >= 1.9.3"
     fi
     libnfs="no"
   fi
Signature · 1 line
1.9.1

I already had a patch that fixed all similar cases:
http://lists.nongnu.org/archive/html/qemu-devel/2014-06/msg06411.html.

Regards,
Hu

#3 lore raw
Quoted 18 lines · Hu Tao
Quoted 17 lines · Liu Yuan
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 7dd43fd..78e7baf 100755
@@ -3996,7 +3996,7 @@ if test "$libnfs" != "no" ; then
     LIBS="$LIBS $libnfs_libs"
   else
     if test "$libnfs" = "yes" ; then
-      feature_not_found "libnfs"
+      feature_not_found "libnfs" "Install libnfs-devel >= 1.9.3"
     fi
Quoted 8 lines
Quoted 5 lines
configure +0 -0
     libnfs="no"
   fi
Signature · 1 line
1.9.1

I already had a patch that fixed all similar cases:
http://lists.nongnu.org/archive/html/qemu-devel/2014-06/msg06411.html.

Thanks, I have applied Hu's patch to my block-next tree because it includes this and other cases.

Please CC me on block layer patches. I co-maintain the block layer with Kevin and am merging patches this week.

Stefan

author
#4 lore raw
Quoted 28 lines · Stefan Hajnoczi
Quoted 18 lines · Hu Tao
Quoted 17 lines · Liu Yuan
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 7dd43fd..78e7baf 100755
@@ -3996,7 +3996,7 @@ if test "$libnfs" != "no" ; then
     LIBS="$LIBS $libnfs_libs"
   else
     if test "$libnfs" = "yes" ; then
-      feature_not_found "libnfs"
+      feature_not_found "libnfs" "Install libnfs-devel >= 1.9.3"
     fi
Quoted 8 lines
Quoted 5 lines
configure +0 -0
     libnfs="no"
   fi
Signature · 1 line
1.9.1

I already had a patch that fixed all similar cases:
http://lists.nongnu.org/archive/html/qemu-devel/2014-06/msg06411.html.

Quoted 5 lines

Thanks, I have applied Hu's patch to my block-next tree because it includes this and other cases.

Please CC me on block layer patches. I co-maintain the block layer with Kevin and am merging patches this week.

Umm, I git log see that this file related to block layer mostly sent to kevin, so I thought I should only send it to Kevin. I'll include you from this time on as I did before.

Yuan