Skip to content

Commit e071dfa

Browse files
committed
ci: downgrade glibc version to build a package in AmazonLinux 2023 (#932)
Related to #931 (comment) This patch will fix following install error on AmazonLinux 2023. ``` Error: Problem: conflicting requests - nothing provides libc.so.6(GLIBC_2.35)(64bit) needed by fluent-package-6.0.0-1.amzn2023.x86_64 (try to add '--skip-broken' to skip uninstallable packages) ``` ## Summary This pull request downgrades the glibc version used in the Amazon Linux 2023 build environment from **2.34-231.amzn2023.0.1** to **2.34-52.amzn2023.0.7**. (I just selected same glibc version used in incus container) ## Background When building `fluent-package` for Amazon Linux 2023, the bundled Ruby gem [`io-event`](https://rubygems.org/gems/io-event) was compiled against a newer glibc that provides the `epoll_pwait2()` symbol (introduced in **GLIBC_2.35**). As a result, the generated package `fluent-package-6.0.0-1.amzn2023.x86_64.rpm` required `libc.so.6(GLIBC_2.35)`, leading to installation failure on systems still running glibc 2.34. Signed-off-by: Shizuo Fujita <[email protected]>
1 parent a8fb475 commit e071dfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fluent-package/yum/amazonlinux-2023/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ RUN \
2727
yum update -y ${quiet} && \
2828
yum install -y ${quiet} yum-utils && \
2929
yum groupinstall -y ${quiet} "Development Tools" && \
30+
# Downgrade glibc to 2.34-52 because latest version (2.34-231.amzn2023.0.1) contains glibc 2.35 symbols
31+
yum downgrade -y ${quiet} glibc-2.34-52.amzn2023.0.7 glibc-devel-2.34-52.amzn2023.0.7 glibc-headers-x86-2.34-52.amzn2023.0.7 && \
3032
yum install -y ${quiet} \
3133
libedit-devel \
3234
ncurses-devel \

0 commit comments

Comments
 (0)