bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-tool: conditional dependencies calculation


From: Bruno Haible
Subject: Re: gnulib-tool: conditional dependencies calculation
Date: Sun, 11 Feb 2018 11:12:55 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-104-generic; KDE/5.18.0; x86_64; ; )

Hi Dmitry,

> gnulib-tool --with-tests --conditional-dependencies --no-changelog --aux-dir 
> build-aux --doc-base doc --lib libgnu --m4-base m4/ --source-base lib/ --
> tests-base tests --local-dir gl --makefile-name=gnulib.mk --libtool --import 
> fnmatch vasnprintf
> 
> ... module configmake is considered to be conditional by pygnulib.py 
> and unconditional by gnulib-tool.

When I attempt to reproduce it, the module 'configmake' is considered 
conditional
by gnulib-tool - just like you and I would expect.

What I did:
1. Unpack the attached hello-c.tar.gz (a trivial Autoconf/Automake package).
2. Ran
  $ ../gnulib-git/gnulib-tool --with-tests --conditional-dependencies 
--no-changelog --aux-dir build-aux --doc-base doc --lib libgnu --m4-base m4/ 
--source-base lib/ --tests-base tests --local-dir gl --makefile-name=gnulib.mk 
--libtool --import fnmatch vasnprintf
3. Looked at m4/gnulib-comp.m4.

It contains

  func_gl_gnulib_m4code_configmake ()
  {
    if ! $gl_gnulib_enabled_configmake; then
      gl_CONFIGMAKE_PREP
      gl_gnulib_enabled_configmake=true
    fi
  }
  ...
  func_gl_gnulib_m4code_localcharset ()
  {
    if ! $gl_gnulib_enabled_localcharset; then
      gl_LOCALCHARSET
      
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
      AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
      gl_gnulib_enabled_localcharset=true
      func_gl_gnulib_m4code_configmake
    fi
  }

I'm using bash 4.3.48 and sed 4.2.2.

So, it could be a gnulib-tool bug, that occurs only in your environment and not 
in mine.

Bruno

Attachment: hello-c.tar.gz
Description: application/compressed-tar

Attachment: gnulib-comp.m4
Description: application/m4


reply via email to

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