Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ RUN sh /tmp/setup_compiler_wrappers.sh && rm /tmp/setup_compiler_wrappers.sh

ENV PATH="/usr/local/bin/wrapped-cc:$PATH"

RUN ./DependencyInstaller.sh -all $options $constantBuildDir -save-deps-prefixes=/etc/openroad_deps_prefixes.txt \
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 \
Comment on lines +24 to +25

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.

&& rm -rf /tmp/installer /tmp/* /var/tmp/* /var/lib/apt/lists/*

ARG fromImage
Expand Down
16 changes: 15 additions & 1 deletion etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ _install_EL7_Packages() {
time \
readline \
ruby \
ruby-devel
ruby-devel \
tcl-tclreadline \
tcl-tclreadline-devel

if ! [ -x "$(command -v klayout)" ]; then
yum -y install https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion}-0.x86_64.rpm
Expand Down Expand Up @@ -113,6 +115,17 @@ _install_EL8_EL9_Packages() {
ruby \
ruby-devel

if [[ "${elVersion}" == "8" ]]; then
dnf -y install \
tcl-tclreadline \
tcl-tclreadline-devel
fi

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

fi
Comment on lines +124 to +127

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.


# Install KLayout based on EL version, note the different URLs
case "${elVersion}" in
"8")
Expand Down Expand Up @@ -199,6 +212,7 @@ _installUbuntuPackages() {
qttools5-dev \
ruby \
ruby-dev \
tcl-tclreadline \
time \
zlib1g \
zlib1g-dev
Expand Down