Repository navigation
etc: fix dependency install order #4248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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 | ||||||
|
|
@@ -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 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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
Suggested change
|
||||||
| fi | ||||||
|
Comment on lines
+124
to
+127
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
|
|
||||||
| # Install KLayout based on EL version, note the different URLs | ||||||
| case "${elVersion}" in | ||||||
| "8") | ||||||
|
|
@@ -199,6 +212,7 @@ _installUbuntuPackages() { | |||||
| qttools5-dev \ | ||||||
| ruby \ | ||||||
| ruby-dev \ | ||||||
| tcl-tclreadline \ | ||||||
| time \ | ||||||
| zlib1g \ | ||||||
| zlib1g-dev | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Splitting the
-allflag into separate-baseand-commoncalls is a workaround for the execution order inDependencyInstaller.sh. A more robust fix would be to update the script itself to correctly sequence thebaseandcommonphases when-allis 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.