Skip to content

etc: fix dependency install order#4248

Merged
vvbandeira merged 1 commit into
The-OpenROAD-Project:masterfrom
vvbandeira:fix-deps
May 20, 2026
Merged

etc: fix dependency install order#4248
vvbandeira merged 1 commit into
The-OpenROAD-Project:masterfrom
vvbandeira:fix-deps

Conversation

@vvbandeira

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates DependencyInstaller.sh to include tcl-tclreadline and tcl-tclreadline-devel across several Linux distributions and modifies the Dockerfile to split dependency installation into base and common phases. Feedback suggests that hardcoding a direct RPM URL for EL9 is brittle and should be replaced with a standard package name. Furthermore, the reviewer recommends improving the script's internal sequencing logic instead of splitting calls in the Dockerfile and ensuring consistent package installation for EL9.


if [[ "${elVersion}" == "9" ]]; then
dnf -y install \
https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/readline-devel-8.1-4.el9.x86_64.rpm

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Hardcoding a direct URL to a specific RPM version on a mirror is brittle. This URL will break if the package is updated or moved to the archives on the mirror. It is recommended to use the package name readline-devel instead, which allows the package manager to resolve the correct version from the configured repositories.

Suggested change
https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/readline-devel-8.1-4.el9.x86_64.rpm
readline-devel

Comment thread docker/Dockerfile.dev
Comment on lines +24 to +25
RUN ./DependencyInstaller.sh -base $options $constantBuildDir -save-deps-prefixes=/etc/openroad_deps_prefixes.txt \
&& ./DependencyInstaller.sh -common $options $constantBuildDir -save-deps-prefixes=/etc/openroad_deps_prefixes.txt \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Splitting the -all flag into separate -base and -common calls is a workaround for the execution order in DependencyInstaller.sh. A more robust fix would be to update the script itself to correctly sequence the base and common phases when -all is used. This would ensure that all base dependencies (including those in the sub-script) are installed before any common/pip dependencies are processed, benefiting all users of the script and avoiding redundant script initialization.

Comment on lines +124 to +127
if [[ "${elVersion}" == "9" ]]; then
dnf -y install \
https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/readline-devel-8.1-4.el9.x86_64.rpm
fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The tcl-tclreadline and tcl-tclreadline-devel packages are added for EL7 and EL8 but are missing for EL9. If these are required dependencies for the project, they should be included for EL9 as well to maintain consistency across supported Enterprise Linux versions.

@vvbandeira vvbandeira merged commit a8b85cd into The-OpenROAD-Project:master May 20, 2026
6 of 8 checks passed
@vvbandeira vvbandeira deleted the fix-deps branch May 20, 2026 22:52
@maliberty

Copy link
Copy Markdown
Member

Is this to fix ORFS master? @sombraSoft was just working on #4249 which seems similar

@vvbandeira

Copy link
Copy Markdown
Member Author

Is this to fix ORFS master? @sombraSoft was just working on #4249 which seems similar

Yes. Secure Branches Nightly already passed the yosys install.

@maliberty

Copy link
Copy Markdown
Member

Thanks for fixing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants