Skip to content

Commit b64a6f9

Browse files
authored
GH-47506: [CI][Packaging] Fix Amazon Linux 2023 packages verification (#47507)
### Rationale for this change `gcc-c++` installs `kernel6.12-headers` automatically but it conflicts with `kernel-headers` that is required by `grpc-devel`. ### What changes are included in this PR? Use `--allowerasing` to use `kernel-headers` when we install `grpc-devel`. `gcc-c++` works with either `kernel6.12-headers` or `kernel-headers`. So this is not a problem. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #47506 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 32a112d commit b64a6f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev/release/verify-yum.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ case "${distribution}-${distribution_version}" in
8787
amzn-*)
8888
distribution_prefix="amazon-linux"
8989
enablerepo_epel=""
90-
install_command="dnf install -y"
90+
# gcc-c++ installs kernel6.12-headers as a dependency
91+
# automatically. But it conflicts with kernel-headers that is
92+
# grpc-devel dependency. If we use "--allowerasing" when we
93+
# install grpc-devel (via arrow-flight-devel), kernel6.12-headers
94+
# is replaced with kernel-headers automatically. gcc-c++ works
95+
# with kernel-headers too. So using kernel-headers is not a
96+
# problem.
97+
install_command="dnf install -y --allowerasing"
9198
info_command="dnf info"
9299
;;
93100
centos-7)

0 commit comments

Comments
 (0)