From what I understand, we have the following situation in the Ubuntu packages (apt-cache show <package>; dpkg -L <package>; dpkg -S <file>):
package libedit-dev:
- depends on libtinfo-dev and libedit2
- provides symlink libedit.so to libedit.so.2
package libedit2:
- depends on libtinfo5
- provides file libedit.so.2
package libtinfo-dev:
- depends on libtinfo5
- provides symlink libtinfo.so to libtinfo.so.5
package libtinfo5:
- provides file libtinfo.so.5
From llvm-config --system-libs (-lz -lpthread -ledit -ltinfo -ldl -lm) I need libedit.so and libtinfo.so. These symlinks are provided by the *-dev packages only. So I would replace the "apt-get install libedit2 libtinfo5" in the commit by "apt-get install libedit-dev" (libtinfo-dev is a dependence of libedit-dev).