[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib-tool.py in jugtail
From: |
Collin Funk |
Subject: |
Re: gnulib-tool.py in jugtail |
Date: |
Thu, 11 Apr 2024 03:54:04 -0700 |
User-agent: |
Mozilla Thunderbird |
On 4/10/24 7:23 PM, Bruno Haible wrote:
> $ cat ../glpyFfCgil-sh-err
> .../gnulib-tool.sh: *** missing --doc-base option. --doc-base has been
> introduced on 2006-07-11; if your last invocation of 'gnulib-tool
> --import' is before that date, you need to run 'gnulib-tool --import'
> once, with a --doc-base option.
> .../gnulib-tool.sh: *** Stop.
> $ cat ../glpyFfCgil-py-err
> gnulib-tool: warning: module malloc doesn't exist
I just started looking at this. It looks like the reading of
gnulib-cache.m4 will need to be reworked.
In gnulib-tool.sh line 5203:
# The docbase defaults to the cached one.
if test -z "$docbase"; then
docbase="$cached_docbase"
if test -z "$docbase"; then
# Long error message here.
fi
fi
The corresponding section would be GLImport.__init__(), but we set the
default docbase in main.py line 943, before creating the GLImport:
if not docbase:
docbase = 'doc'
So we can't check for the empty string. I guess we docbase an empty
string if --docbase isn't used. Then only set it to the cache or
default in GLImport.__init__(). But that section of code is already
sort of difficult to follow...
Collin