[libvirt] [PATCH 2/6] gnulib: add getopt module

Roman Bogorodskiy bogorodskiy at gmail.com
Tue Jul 5 01:20:12 UTC 2016


  Fabian Freyer wrote:

> Unconditionally use gnulib's getopt module. This is needed by the bhyve driver
> to provide a reentrant interface for getopt.
> ---
>  bootstrap.conf          | 1 +
>  m4/virt-driver-bhyve.m4 | 3 +++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/bootstrap.conf b/bootstrap.conf
> index 0db6b62..edea8c3 100644
> --- a/bootstrap.conf
> +++ b/bootstrap.conf
> @@ -54,6 +54,7 @@ func
>  getaddrinfo
>  getcwd-lgpl
>  gethostname
> +getopt-posix
>  getpass
>  getpeername
>  getsockname
> diff --git a/m4/virt-driver-bhyve.m4 b/m4/virt-driver-bhyve.m4
> index c65b15d..bbdd8b2 100644
> --- a/m4/virt-driver-bhyve.m4
> +++ b/m4/virt-driver-bhyve.m4
> @@ -52,6 +52,9 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_BHYVE],[
>      AM_CONDITIONAL([WITH_BHYVE], [test "$with_bhyve" = "yes"])
>  ])
> 
> +dnl Build with gnulib's getopt which contains a reentrant interface
> +AC_DEFUN([gl_REPLACE_GETOPT_ALWAYS], [])
> +
>  AC_DEFUN([LIBVIRT_DRIVER_RESULT_BHYVE],[
>      AC_MSG_NOTICE([    Bhyve: $with_bhyve])
>  ])
> -- 
> 2.5.5


This misses gnulib/lib/getopt.c in po/POTFILES.in, otherwise ACK.

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160705/c9982d9d/attachment-0001.sig>


More information about the libvir-list mailing list