qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] rbd: don't link with -lcrypto
@ 2011-03-07  6:17 Aurelien Jarno
  2011-03-13 21:16 ` Christian Brunner
  0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2011-03-07  6:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: Christian Brunner, Aurelien Jarno

rbd support tries to both link with -lrados and -lcrypto. While the
first one is of course necessary, the second is not necessary (only
librados ifself needs to link with libcrypto).

This fixes a licensing issue: qemu as a whole is GPL v2, and thus can't
be linked with OpenSSL without an exception in the license, which seems
difficult to get given the number of persons involved.

Cc: Christian Brunner <chb@muc.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index ef51a58..5932e39 100755
--- a/configure
+++ b/configure
@@ -1801,7 +1801,7 @@ if test "$rbd" != "no" ; then
 #include <rados/librados.h>
 int main(void) { rados_initialize(0, NULL); return 0; }
 EOF
-  rbd_libs="-lrados -lcrypto"
+  rbd_libs="-lrados"
   if compile_prog "" "$rbd_libs" ; then
     librados_too_old=no
     cat > $TMPC <<EOF
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] rbd: don't link with -lcrypto
  2011-03-07  6:17 [Qemu-devel] [PATCH] rbd: don't link with -lcrypto Aurelien Jarno
@ 2011-03-13 21:16 ` Christian Brunner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brunner @ 2011-03-13 21:16 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: qemu-devel

You are right, libcrypto can be omitted.

(Recent versions of ceph use crypto++ anyway.)

Thanks, Christian


Reviewed-by: Christian Brunner <chb@muc.de>


2011/3/7 Aurelien Jarno <aurelien@aurel32.net>:
> rbd support tries to both link with -lrados and -lcrypto. While the
> first one is of course necessary, the second is not necessary (only
> librados ifself needs to link with libcrypto).
>
> This fixes a licensing issue: qemu as a whole is GPL v2, and thus can't
> be linked with OpenSSL without an exception in the license, which seems
> difficult to get given the number of persons involved.
>
> Cc: Christian Brunner <chb@muc.de>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> ---
>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index ef51a58..5932e39 100755
> --- a/configure
> +++ b/configure
> @@ -1801,7 +1801,7 @@ if test "$rbd" != "no" ; then
>  #include <rados/librados.h>
>  int main(void) { rados_initialize(0, NULL); return 0; }
>  EOF
> -  rbd_libs="-lrados -lcrypto"
> +  rbd_libs="-lrados"
>   if compile_prog "" "$rbd_libs" ; then
>     librados_too_old=no
>     cat > $TMPC <<EOF
> --
> 1.7.2.3
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-13 21:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07  6:17 [Qemu-devel] [PATCH] rbd: don't link with -lcrypto Aurelien Jarno
2011-03-13 21:16 ` Christian Brunner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).