[virt-tools-list] [libosinfo 1/2] Require and link against libiso9660

Daniel P. Berrange berrange at redhat.com
Mon Aug 8 09:23:18 UTC 2011


On Sat, Aug 06, 2011 at 07:01:59PM +0200, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
> 
> ---
>  configure.ac       |    5 +++++
>  osinfo/Makefile.am |    1 +
>  2 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index bf5681b..c0ad238 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -18,6 +18,11 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
>  PKG_CHECK_MODULES([GOBJECT], [gobject-2.0])
>  PKG_CHECK_MODULES([GIO], [gio-2.0])
>  PKG_CHECK_MODULES([LIBXML], [libxml-2.0 >= 2.6.0])
> +AC_CHECK_HEADER([cdio/iso9660.h],
> +                [AC_CHECK_LIB([iso9660],
> +                              [iso9660_open],
> +                              [ISO9660_LIBS="-liso9660"])])
> +AC_SUBST([ISO9660_LIBS])

Argh, from /usr/include/cdio/iso9660.h ..

 [quote]
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
 [/quote]

libosinfo is licensed  LGPLv2+, so we cannot link to libiso9660.so
I'm afraid.

If there's no other possible LGPLv2+ compatible library that does
this kind of thing, then the other option is to spawn /usr/bin/iso-info
and parse the output.

Or create a /usr/libexec/libosinfo-isohelper helper binary that does
link against libiso9660.so and returns the information in a format that
is more easily consumable by libosinfo than that from iso-info binary.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list