Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Support Rocky Linux 8 #428

Merged
merged 7 commits into from Oct 18, 2022
Merged

Support Rocky Linux 8 #428

merged 7 commits into from Oct 18, 2022

Conversation

hspark0582
Copy link
Contributor

@hspark0582 hspark0582 commented Sep 29, 2022

This commit adds pkgdep_rocky8.sh for installing dependencies in Rocky Linux 8, fixes compile issues (which is mostly from using different version of gcc), and some other issues.

We tried not to break on Ubuntu environments and we have tested on our machine, but we would like to hear from you if there are any issues.

Note that running build_lib.sh and build_ibofos.sh separately (and thus building library twice) caused compile/runtime error on Rocky systems, so we stuck to running only build_ibofos.sh, or manually running configure and make after build_lib.sh.

Signed-off-by: Hyunseung Park hspark0582@gluesys.com

@hspark0582
Copy link
Contributor Author

혹시 도와드릴 사항이 있을까요? 패치에 부족한 점 있다면 부담 없이 피드백 주시기를 부탁드리겠습니다.

lib/dpdk-20.08.patch Outdated Show resolved Hide resolved
@potatogim
Copy link

potatogim commented Oct 11, 2022

pkgdep.sh의 기존 구현에 따르면 배포판 별로 해당 스크립트 내에서 분기를 태우는 형태로 되어 있는데 이와 유사하게 가면 좋을 것 같네요.

Rocky Linux의 경우 /etc/rocky-release를 사용하니 해당 분기 내에서 이 파일을 검사하는 방법이 있을 것 같습니다.

대표적인 RHEL 파생 배포판들(CentOS 등)에서도 해당 스크립트가 동일하게 적용될 수 있다면 /etc/redhat-release 파일로 묶어서 처리하는 방법도... 😃

syeonshin
syeonshin previously approved these changes Oct 12, 2022
Copy link
Collaborator

@syeonshin syeonshin left a comment

Choose a reason for hiding this comment

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

고생하셨습니다..!

  • spdk/dpdk 확인 완료

@hspark0582
Copy link
Contributor Author

hspark0582 commented Oct 12, 2022

pkgdep.sh의 기존 구현에 따르면 배포판 별로 해당 스크립트 내에서 분기를 태우는 형태로 되어 있는데 이와 유사하게 가면 좋을 것 같네요.

해당 사항 반영하여 커밋하였습니다. pkgdep.sh에서 /etc/centos-release 파일의 유무를 추가로 확인하여 분기합니다. spdk 패치에서 한 줄 가져와 spdk와 같은 방식으로 os/버전 확인하도록 수정하였습니다.

대표적인 RHEL 파생 배포판들(CentOS 등)에서도 해당 스크립트가 동일하게 적용될 수 있다면 /etc/redhat-release 파일로 묶어서 처리하는 방법도... smiley

일부 라인 수정 후 CentOS Stream 8 에서 동작 확인하였습니다. RHEL 8은 제공하지 않는 패키지가 있어 우선 보류하였습니다. 요청 주시면 구현 검토해 보도록 하겠습니다. RHEL 지원하게 되면 말씀주셨던대로 /etc/centos-release가 아닌 redhat-release 파일 사용할 수 있을 것 같습니다.

script/pkgdep.sh Outdated Show resolved Hide resolved
potatogim
potatogim previously approved these changes Oct 12, 2022
hspark0582 and others added 5 commits October 13, 2022 15:07
This commit adds pkgdep_rocky8.sh for installing dependencies in Rocky Linux,
and fixes compile issues (which is mostly from using different version of gcc)
We tried not to break on Ubuntu environments and we tested on our machine.

Signed-off-by: Hyunseung Park <hspark0582@gluesys.com>
Signed-off-by: Hyunseung Park <hspark0582@gluesys.com>
Installing dependencies were originally done in a new
separate file, pkgdep_rocky8.sh. As recommended in a
review comment, we have combined the two into pkgdep.sh.

We have tested new pkgdep.sh against Ubuntu 18.04,
Rocky Linux 8.6, and also CentOS Stream 8. There were
some changes to make the script also work on CentOS.
We have thought of making it also run on RHEL itself,
but since it does not provide some packages we can use
on Rocky/CentOS, we need to manually build them (too)
or use CentOS repositories. We will consider
implementing it if you desire.

Finally, some refactoring using PKGS variable.
Now it looks (hopefully/arguably) less ugly while
still not calling dnf every time.
Just copied spdk os check :)
Error occurred while installing go in rocky/CentOS since minimal install of them does not have wget and tar.
I messed up the order during combining scripts. Sorry!
potatogim
potatogim previously approved these changes Oct 13, 2022
Copy link
Collaborator

@so931 so931 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!

@huijeong-kim huijeong-kim removed their request for review October 14, 2022 05:47
@syeonshin syeonshin merged commit 98f9e01 into poseidonos:main Oct 18, 2022
@hspark0582 hspark0582 deleted the rocky8 branch October 18, 2022 01:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants