This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new 0f2edde23 BIGTOP-4428. Starting Hive services depends on initscripts
on rockylinux-9 and fedora-40. (#1351)
0f2edde23 is described below
commit 0f2edde23e52917b67545450a7452794939a2d0c
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Thu May 22 14:16:55 2025 +0900
BIGTOP-4428. Starting Hive services depends on initscripts on rockylinux-9
and fedora-40. (#1351)
(cherry picked from commit b3b287e87e5b2449674ec0c95666726696f503bb)
---
bigtop-packages/src/rpm/hive/SPECS/hive.spec | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/bigtop-packages/src/rpm/hive/SPECS/hive.spec
b/bigtop-packages/src/rpm/hive/SPECS/hive.spec
index 7cf2b43c6..ef0e7d65e 100644
--- a/bigtop-packages/src/rpm/hive/SPECS/hive.spec
+++ b/bigtop-packages/src/rpm/hive/SPECS/hive.spec
@@ -130,6 +130,7 @@ Requires(pre): %{name} = %{version}-%{release}
Requires: insserv
%else
# Required for init scripts
+Requires: initscripts
%if 0%{?fedora} >= 40
Requires: redhat-lsb-core
%else
@@ -139,6 +140,7 @@ Requires: /lib/lsb/init-functions
%description server2
This optional package hosts a Thrift server for Hive clients across a network
to use with improved concurrency support.
+
%package metastore
Summary: Shared metadata repository for Hive.
Group: System/Daemons
@@ -150,8 +152,13 @@ Requires(pre): %{name} = %{version}-%{release}
Requires: insserv
%else
# Required for init scripts
+Requires: initscripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
Requires: /lib/lsb/init-functions
%endif
+%endif
%description metastore
@@ -205,17 +212,17 @@ Requires: %{name}-hcatalog = %{version}-%{release}
Requires: insserv
%endif
-%if 0%{?mgaversion}
-# Required for init scripts
-Requires: initscripts
-%endif
-
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
# Required for init scripts
+Requires: initscripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
Requires: /lib/lsb/init-functions
%endif
+%endif
%description hcatalog-server
Init scripts for HCatalog server
@@ -231,11 +238,6 @@ Requires: %{name}-webhcat = %{version}-%{release}
Requires: insserv
%endif
-%if 0%{?mgaversion}
-# Required for init scripts
-Requires: initscripts
-%endif
-
# CentOS 5 does not have any dist macro
# So I will suppose anything that is not Mageia or a SUSE will be a
RHEL/CentOS/Fedora
%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
@@ -246,8 +248,13 @@ Requires: initscripts
/usr/lib/rpm/brp-python-bytecompile ; \
%{nil}
# Required for init scripts
+Requires: initscripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
Requires: /lib/lsb/init-functions
%endif
+%endif
%description webhcat-server
Init scripts for WebHcat server.