You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
etc: move yosys readline dep from -common to -base
The previous _install_yosys_dependencies() helper was invoked from
_install_yosys() during the -common phase. -common is meant to be
runnable without root (it installs into ${PREFIX:-/usr/local} and
setup.sh deliberately runs it as $SUDO_USER), but the helper called
apt-get/yum/zypper/brew, all of which need root on Linux. As a
result, the standard "setup.sh as sudo" install path (and any
unprivileged -common -prefix=... use case) failed with:
[INFO] Installing libreadline-dev for yosys...
E: Could not open lock file /var/lib/dpkg/lock-frontend ...
[ERROR] Failed to execute: apt-get -y install --no-install-recommends libreadline-dev
Move the dep into the per-platform -base package lists
(_install_ubuntu_packages, _install_rhel_packages,
_install_opensuse_packages, _install_darwin_packages) where the
other system -dev libs already live and where root is already
required, and drop _install_yosys_dependencies entirely. The original
"readline isn't in -base anymore because OpenROAD uses vendored
linenoise" rationale is fine for OpenROAD itself, but yosys still
needs it at build time and it has to be installed by the privileged
phase regardless. Slightly enlarges -base (libreadline-dev is small)
in exchange for making non-root -common work again.
FixesThe-OpenROAD-Project/OpenROAD-flow-scripts#4266.
Signed-off-by: Matthew Guthaus <mrg@ucsc.edu>
0 commit comments