lately (for the last couple months on 22.04 and 22.10 ubuntu), I see the following error when I try to install a newly built ardorur.
sly@redbox:~/src/ardour$ sudo ./waf install
Waf: The wscript in '/home/sly/src/ardour' is unreadable
Traceback (most recent call last):
File "/home/sly/src/ardour/.waf3-2.0.23-8ba091fb015bc715bba24c9cf03ec913/waflib/Scripting.py", line 102, in waf_entry_point
File "/home/sly/src/ardour/.waf3-2.0.23-8ba091fb015bc715bba24c9cf03ec913/waflib/Scripting.py", line 142, in set_main_module
File "/home/sly/src/ardour/.waf3-2.0.23-8ba091fb015bc715bba24c9cf03ec913/waflib/Context.py", line 362, in load_module
File "/home/sly/src/ardour/wscript", line 202, in <module>
other = parts.split('-', 1)
Under the hood the issue is that git describe does not return a valid revision.
in ardour’s src-tree (where you call ./waf) does
sudo git describe
work and return a revision like 7.0-pre0-2619-g280e7d9f4c ?
PS. it is not usually a good idea to install git versions system-wide. Mainly because ./waf uninstall only works correctly for the current revision and current configuration.
It is preferable to run it from the source tree:
I’ve prepared a 3 small scripts for Kubuntu (I hope they work in Ubuntu too) to make the Ardour compilation process as easy as possible.
arconfig - creates a config file that contains paths for sources and installation directories, how many threads can be used for compilation, how many compiled previous versions to keep before delete, all dependencies installation, etc.
argit - gets the latest Ardour sources from Github.
arcompile - Ardour compilation and installation command. It creates application menu entry on first run This is the step I’ve tested under KDE and I don’t know how it works in Gnome or XFCE or anything else.
There are two language versions: Polish (my native) and English.
Let me know if you find any errors in English translation, this is not my forte.
Could be I tell rubbish, but I tried to install Ardour7 and had the same problem. Seems to me that in wscript, shortly before line 202, the variable “rev” is empty. This leads to “IndexError: list index out of range”.
Installing development versions is not a good idea at this point since Ardour pre-7.0 is changing so quickly. The recommended method for development versions is to run from the build directory using the ardev script.