qemu-devel
[Top][All Lists]
Advanced

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

scripts/symlink-install-tree.py error


From: Michael Tokarev
Subject: scripts/symlink-install-tree.py error
Date: Fri, 11 Aug 2023 20:38:31 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

Hi!

8.1.0-rc3, trying to build (in a subdir of the source dir), and getting an 
interesting
error message:

../../configure ... --disable-download ...
...
Found ninja-1.11.1 at /usr/bin/ninja
Running postconf script 
'/build/pkg/qemu-8.1.0~rc3+dfsg/b/qemu/pyvenv/bin/python3 
/build/pkg/qemu-8.1.0~rc3+dfsg/scripts/symlink-install-tree.py'
Traceback (most recent call last):
 File "/build/pkg/qemu-8.1.0~rc3+dfsg/scripts/symlink-install-tree.py", line 17, in 
<module>
 out = subprocess.run([*introspect.split(' '), '--installed'],
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/subprocess.py", line 548, in run
 with Popen(*popenargs, **kwargs) as process:
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__
 self._execute_child(args, executable, preexec_fn, close_fds,
 File "/usr/lib/python3.11/subprocess.py", line 1950, in _execute_child
 raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 
"'/build/pkg/qemu-8.1.0~rc3+dfsg/b/qemu/pyvenv/bin/meson'"

The ./configure run is successful though, so this smells like a double
error: first it tries to run a non-existing meson.  And next it does not
fail the ./configure stage.

Adding
  print(introspect)
into scripts/symlink-install-tree.py
gives this:

  '/build/pkg/qemu-8.1.0~rc3+dfsg/b/qemu/pyvenv/bin/meson' introspect

so I guess it is the single-quotes which makes it fail, - assuming it
is the exact string which is in $MESONINTROSPECT.  Should be ok to
run it in shell, but not as good to run it in python.

(Note the directory name, which contains ~ and + - apparently one of
them causes the quoting around meson path).

/mjt



reply via email to

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