bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib-tool and --with-tests


From: Bruno Haible
Subject: Re: gnulib-tool and --with-tests
Date: Fri, 22 Jun 2012 17:56:36 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Thien-Thi Nguyen wrote:
>    gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
> 
> Apparently, ‘--with-tests’ is implied (somehow) by ‘--update’ as well

In --update mode, the settings come from the gnulib-cache.m4 file,
in your case it's here:
  http://git.savannah.gnu.org/cgit/rcs.git/tree/m4/gnulib-cache.m4

> (but that is incompatible (why?) with ‘--conditional-dependencies’):

Yes, --with-tests and --conditional-dependencies are currently incompatible.
(because the logic is too complicated).

Your gnulib-cache.m4 lists both gl_TESTS_BASE and gl_CONDITIONAL_DEPENDENCIES;
this is where the conflict comes from. Remove one of them.

>  http://git.savannah.gnu.org/cgit/rcs.git/tree/autogen.sh#n21

According to the 'gnulib-tool --help' message, you are not supposed to
use --conditional-dependencies with --update. The intended usage is that
you invoke
  gnulib-tool --conditional-dependencies --import
*once*, this will store the option in the gnulib-cache.m4 file. Then
further uses of
  gnulib-tool --update
will take the option from the gnulib-cache.m4 file.

Likewise for --without-tests. Pass it once, then it will be stored.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]