Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-16 Thread Collin Funk
Hi Bruno, On 3/16/24 4:46 AM, Bruno Haible wrote: > Here the Python output is prettier. So, here is a patch to align > gnulib-tool.sh's output with gnulib-tool.py. It's a leftover from this patch, > which did not cover the --local-dir options: I realized that I accidental made the Python output p

Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-16 Thread Bruno Haible
Simon Josefsson wrote: > OATH Toolkit fails with sh+py though... gnulib-cache.m4. The only remaining difference in gnulib-cache.m4 now is: $ diff -u oath-toolkit-sh/liboath/gl/m4/gnulib-cache.m4 oath-toolkit-py/liboath/gl/m4/gnulib-cache.m4 --- oath-toolkit-sh/liboath/gl/m4/gnulib-cache.m4 2024

Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-16 Thread Bruno Haible
Simon Josefsson wrote: > Also it seems to "forget" gl_LGPL([2]) in gnulib-cache.m4. This patch fixes it. It was an omission in my commit on 2022-08-03 "gnulib-tool.py: Follow gnulib-tool changes, part 23." 2024-03-16 Bruno Haible gnulib-tool.py: Don't lose the gl_LGPL value from gnul

Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-15 Thread Bruno Haible
Simon Josefsson wrote: > OATH Toolkit fails with sh+py though... isn't the --local-dir part > working? It doesn't notice the patches in liboath/gl/override. Indeed. It reads the gl_LOCAL_DIR value from gnulib-cache.m4 but then overwrites it with []. This patch fixes it. 2024-03-15 Bruno Haibl

Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-15 Thread Bruno Haible
Yesterday I did: > * gnulib-tool: New file, based on gnulib-tool.sh. Here's a small improvement. 2024-03-15 Bruno Haible gnulib-tool: Enhance last patch. * gnulib-tool: If gnulib-tool.sh failed but gnulib-tool.py succeeded, report that and don't erase the outpu

Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-15 Thread Collin Funk
Hi Simon, On 3/15/24 7:30 AM, Simon Josefsson wrote: > Wow it is very much faster! \o/ That result is interesting. I wonder what part takes the shell script so long. Maybe I'll use gnulib-tool as an excuse to expirement with perf, dtrace, etc. > OATH Toolkit fails with sh+py though... Yes, Bru

Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-15 Thread Simon Josefsson via Gnulib discussion list
Collin Funk writes: >> But in the current state, it fails for nearly every command. There's >> no hope that you can expect identical results from the two implementations >> as long as there are still items in the TODO list. > > Yes. I am working on it. I've added the following lines to my > ~/.pr

Re: gnulib-tool: Obey environment variable GNULIB_TOOL_IMPL

2024-03-14 Thread Collin Funk
Hi Bruno, On 3/14/24 2:22 PM, Bruno Haible wrote: > OK. If you start to go into this direction, it is time for me to > implement the GNULIB_TOOL_IMPL=sh+py option. Done through the patch below. Oops, I didn't mean to rush you... I was just changing a few lines of the boostrap script by hand. This