This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 37556bc6d8 GH-34700: [Packaging][RPM] Use lz4-libs instead of lz4 on
AlmaLinux 8+ (#34716)
37556bc6d8 is described below
commit 37556bc6d80bcc5b2b372036b798d44aef709c80
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Mar 24 21:29:36 2023 +0900
GH-34700: [Packaging][RPM] Use lz4-libs instead of lz4 on AlmaLinux 8+
(#34716)
### Rationale for this change
`liblz4.so.*` are included in `lz4-libs` on AlmaLinux 8+.
### What changes are included in this PR?
Use `lz4-libs` not `lz4` on AlmaLinux 8+.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
Yes.
* Closes: #34700
Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
index e6808fdcee..c50a4dbdb6 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
+++ b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
@@ -79,6 +79,7 @@
# %%define use_s3 (%%{rhel} >= 8)
%define use_s3 0
+%define have_lz4_libs (%{rhel} >= 8)
%define have_rapidjson (%{rhel} != 8)
%define have_re2 (%{rhel} >= 8)
%define have_thrift (%{rhel} >= 8)
@@ -244,7 +245,11 @@ Requires: glog
%if %{have_zstd}
Requires: libzstd
%endif
+%if %{have_lz4_libs}
+Requires: lz4-libs %{lz4_requirement}
+%else
Requires: lz4 %{lz4_requirement}
+%endif
%if %{have_re2}
Requires: re2
%endif