I use the newest version of gnulib from git. when I run the ./autogen.sh where I create for sed-4.9. gnulib-tool will throw an exception like below:
top/README-release
top/
maint.mkTraceback (most recent call last):
File "E:\Githubs\msvc-pkgs\pkgs\gnulib\.gnulib-tool.py", line 30, in <module>
main.main_with_exception_handling()
File "E:\Githubs\msvc-pkgs\pkgs\gnulib\pygnulib\main.py", line 1367, in main_with_exception_handling
main()
File "E:\Githubs\msvc-pkgs\pkgs\gnulib\pygnulib\main.py", line 953, in main
importer.execute(filetable, transformers)
File "E:\Githubs\msvc-pkgs\pkgs\gnulib\pygnulib\GLImport.py", line 1222, in execute
emit = sp.run([joinpath(DIRS['root'], 'build-aux/prefix-gnulib-mk'), '--from-gnulib-tool',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 193] %1 is not a valid Win32 application
Finally, I have found the solution. I have add the 'shell=True' into function sp.run in GLImport.py. You can see the detail in 001-gnulib-fix-WinError-193.diff.