Skip to content

fix build containerd in centos9#7683

Merged
fuweid merged 1 commit intocontainerd:mainfrom
yanggangtony:build-md
Nov 20, 2022
Merged

fix build containerd in centos9#7683
fuweid merged 1 commit intocontainerd:mainfrom
yanggangtony:build-md

Conversation

@yanggangtony
Copy link
Copy Markdown
Contributor

@yanggangtony yanggangtony commented Nov 17, 2022

Signed-off-by: yanggang [email protected]

When i build containerd in CentOS Stream 9 , build err , tips the "btrfs/ioctl.h: No such file or directory"
Follow the docs , and try to install : yum install btrfs-progs-devel
企业微信截图_04df96c4-62c6-4fa0-b1af-d1f9627ec167

But there have no package for centos9 , So search the centos web , for fix the build problem.
I refer the web is
centos
build issue

After i install the rpm , then its fine for me..
image
企业微信截图_7e82dd6b-40ff-44c8-b851-3198c83faed0

@k8s-ci-robot
Copy link
Copy Markdown

Hi @yanggangtony. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Comment thread BUILDING.md Outdated
* CentOS/Fedora: `yum install btrfs-progs-devel`
* CentOS(CentOS Stream9): there have no btrfs-progs-devel anymore . You should rpm these packages manual for btrfs error on build.
like : btrfs-progs-5.12.1-2.hs.el8.x86_64.rpm , btrfs-progs-devel-5.12.1-2.hs.el8.x86_64.rpm , libbtrfs-5.12.1-2.hs.el8.x86_64.rpm,libbtrfsutil-5.12.1-2.hs.el8.x86_64.rpm [CentOS Stream9](https://cbs.centos.org/koji/buildinfo?buildID=32944).
[build err](https://github.com/containerd/containerd/issues/3488).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should delete this line and just add it in git message.

Comment thread BUILDING.md Outdated
need to satisfy these dependencies in your system:

* CentOS/Fedora: `yum install btrfs-progs-devel`
* CentOS(CentOS Stream9): there have no btrfs-progs-devel anymore . You should rpm these packages manual for btrfs error on build.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So it is fine to use btrfs-progs as package name here?

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah Nov 17, 2022

Choose a reason for hiding this comment

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

Perhaps the better option is to describe that BTRFS has been deprecated in RHEL / CentOS 7.4, and removed in RHEL/CentOS 9 and up. (see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-btrfs, and the release notes)

And for those platforms, recommend using the no_btrfs build-flag to build without btrfs support.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Perhaps the better option is to describe that BTRFS has been deprecated in RHEL / CentOS 7.4, and removed in RHEL/CentOS 9 and up. (see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-btrfs, and the release notes)

And for those platforms, recommend using the no_btrfs build-flag to build without btrfs support.

@thaJeztah @fuweid
Thanks for review.
It sounds good to me..
I will update the building.md follow the infos..

@yanggangtony
Copy link
Copy Markdown
Contributor Author

@thaJeztah @fuweid
Updated the docs info.
Is that manual ok for user to read or reference?

Comment thread BUILDING.md Outdated
Comment thread BUILDING.md Outdated
@estesp
Copy link
Copy Markdown
Member

estesp commented Nov 18, 2022

I know you've already handled a bunch of comments; I think this is 99% there, but the two links at the end of the sentence about btrfs removal do not look right in the markdown rendered view. I think the first link:

[Btrfs has been deprecated](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-btrfs)

Should go on the actual text that starts that sentence; otherwise you are repeating the phrase twice. Just make the first "Btrfs has been deprecated" a link to the article.

The second link:

[release_notes](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.4_release_notes/chap-red_hat_enterprise_linux-7.4_release_notes-deprecated_functionality_in_rhel7#idm139789147351408)

Currently is directly after a period character with no spacing and no other text. Maybe add a few words to make it a sentence, like:

Please see the [release notes](link) for additional information on deprecated features.

Signed-off-by: yanggang <[email protected]>
@yanggangtony
Copy link
Copy Markdown
Contributor Author

yanggangtony commented Nov 18, 2022

I know you've already handled a bunch of comments; I think this is 99% there, but the two links at the end of the sentence about btrfs removal do not look right in the markdown rendered view.

@estesp
thanks very much for review..
Updated.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@fuweid fuweid merged commit c1c8185 into containerd:main Nov 20, 2022
@yanggangtony yanggangtony deleted the build-md branch November 25, 2023 00:57
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.

6 participants