This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new b7aac77aa BIGTOP-4418. Fix installation failure of packages on Fedora 
40 due to lack of /lib/lsb/init-functions. (#1345)
b7aac77aa is described below

commit b7aac77aa7cd18b229e04004285248b5d75d4493
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Mon May 12 17:45:53 2025 +0900

    BIGTOP-4418. Fix installation failure of packages on Fedora 40 due to lack 
of /lib/lsb/init-functions. (#1345)
---
 bigtop-packages/src/rpm/alluxio/SPECS/alluxio.spec   |  7 ++++---
 bigtop-packages/src/rpm/flink/SPECS/flink.spec       |  4 ++++
 bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec     |  6 +++++-
 bigtop-packages/src/rpm/hbase/SPECS/hbase.spec       | 20 ++++++++++++++++++++
 bigtop-packages/src/rpm/hive/SPECS/hive.spec         |  8 ++++++++
 bigtop-packages/src/rpm/livy/SPECS/livy.spec         |  7 ++++---
 bigtop-packages/src/rpm/solr/SPECS/solr.spec         |  4 ++++
 bigtop-packages/src/rpm/spark/SPECS/spark.spec       |  7 ++++---
 bigtop-packages/src/rpm/zeppelin/SPECS/zeppelin.spec |  7 ++++---
 .../src/rpm/zookeeper/SPECS/zookeeper.spec           |  4 ++++
 10 files changed, 61 insertions(+), 13 deletions(-)

diff --git a/bigtop-packages/src/rpm/alluxio/SPECS/alluxio.spec 
b/bigtop-packages/src/rpm/alluxio/SPECS/alluxio.spec
index 0356a0024..08ca45b9c 100644
--- a/bigtop-packages/src/rpm/alluxio/SPECS/alluxio.spec
+++ b/bigtop-packages/src/rpm/alluxio/SPECS/alluxio.spec
@@ -68,14 +68,15 @@ Source7:       alluxio-job-worker.svc
 # Required for init scripts
 Requires: insserv
 %global        initd_dir %{_sysconfdir}/rc.d
-
 %else
 # Required for init scripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
+%endif
 Requires: initscripts
-
 %global        initd_dir %{_sysconfdir}/rc.d/init.d
-
 %endif
 
 Requires: bigtop-utils
diff --git a/bigtop-packages/src/rpm/flink/SPECS/flink.spec 
b/bigtop-packages/src/rpm/flink/SPECS/flink.spec
index 8310273a4..f3eeca42e 100644
--- a/bigtop-packages/src/rpm/flink/SPECS/flink.spec
+++ b/bigtop-packages/src/rpm/flink/SPECS/flink.spec
@@ -75,8 +75,12 @@ Requires(preun): /sbin/service
 Requires: insserv
 %else
 # Required for init scripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 %description
 Apache Flink is an open source platform for distributed stream and batch data 
processing.
diff --git a/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec 
b/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
index 2e3879a05..27c086560 100644
--- a/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
+++ b/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
@@ -218,7 +218,11 @@ BuildRequires: pkgconfig, fuse-libs, openEuler-rpm-config, 
lzo-devel, openssl-de
 BuildRequires: pkgconfig, fuse-libs, redhat-rpm-config, lzo-devel, 
openssl-devel, systemd-rpm-macros
 %endif
 # Required for init scripts
-Requires: coreutils, /lib/lsb/init-functions
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
+Requires: /lib/lsb/init-functions
+%endif
 %endif
 
 %if  0%{?mgaversion}
diff --git a/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec 
b/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
index 7191923f3..147eb35ac 100644
--- a/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
+++ b/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
@@ -154,8 +154,12 @@ Requires: initscripts
 # 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
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 %description master
 HMaster is the "master server" for a HBase. There is only one HMaster for a 
single HBase deployment.
@@ -180,8 +184,12 @@ Requires: initscripts
 # 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
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 
 %description regionserver 
@@ -207,8 +215,12 @@ Requires: initscripts
 # 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
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 
 %description thrift
@@ -235,8 +247,12 @@ Requires: initscripts
 # 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
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 
 %description thrift2
@@ -272,8 +288,12 @@ Requires: initscripts
 # 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
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 
 %description rest
diff --git a/bigtop-packages/src/rpm/hive/SPECS/hive.spec 
b/bigtop-packages/src/rpm/hive/SPECS/hive.spec
index 7f2e8a11f..7cf2b43c6 100644
--- a/bigtop-packages/src/rpm/hive/SPECS/hive.spec
+++ b/bigtop-packages/src/rpm/hive/SPECS/hive.spec
@@ -112,8 +112,12 @@ Hive is a data warehouse infrastructure built on top of 
Hadoop that provides too
 Requires: insserv
 %else
 # Required for init scripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 %package server2
 Summary: Provides a Hive Thrift service with improved concurrency support.
@@ -126,8 +130,12 @@ Requires(pre): %{name} = %{version}-%{release}
 Requires: insserv
 %else
 # Required for init scripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 %description server2
 This optional package hosts a Thrift server for Hive clients across a network 
to use with improved concurrency support.
diff --git a/bigtop-packages/src/rpm/livy/SPECS/livy.spec 
b/bigtop-packages/src/rpm/livy/SPECS/livy.spec
index 8ff2bbe4e..bc67898fa 100644
--- a/bigtop-packages/src/rpm/livy/SPECS/livy.spec
+++ b/bigtop-packages/src/rpm/livy/SPECS/livy.spec
@@ -57,13 +57,14 @@ It supports executing snippets of code or programs in a 
Spark context that runs
 # Required for init scripts
 Requires: insserv
 %global        initd_dir %{_sysconfdir}/rc.d
-
 %else
 # Required for init scripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
-
+%endif
 %global        initd_dir %{_sysconfdir}/init.d
-
 %endif
 
 # disable repacking jars
diff --git a/bigtop-packages/src/rpm/solr/SPECS/solr.spec 
b/bigtop-packages/src/rpm/solr/SPECS/solr.spec
index c889f8c5b..db0b113a8 100644
--- a/bigtop-packages/src/rpm/solr/SPECS/solr.spec
+++ b/bigtop-packages/src/rpm/solr/SPECS/solr.spec
@@ -74,8 +74,12 @@ Requires: bigtop-utils >= 0.7
 # 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
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 %description 
 Solr is the popular, blazing fast open source enterprise search platform from
diff --git a/bigtop-packages/src/rpm/spark/SPECS/spark.spec 
b/bigtop-packages/src/rpm/spark/SPECS/spark.spec
index 0d9177ff0..6bbf902f0 100644
--- a/bigtop-packages/src/rpm/spark/SPECS/spark.spec
+++ b/bigtop-packages/src/rpm/spark/SPECS/spark.spec
@@ -73,13 +73,14 @@ Requires(preun): /sbin/service
 # Required for init scripts
 Requires: insserv
 %global initd_dir %{_sysconfdir}/rc.d
-
 %else
 # Required for init scripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
-
+%endif
 %global initd_dir %{_sysconfdir}/rc.d/init.d
-
 %endif
 
 %description 
diff --git a/bigtop-packages/src/rpm/zeppelin/SPECS/zeppelin.spec 
b/bigtop-packages/src/rpm/zeppelin/SPECS/zeppelin.spec
index 50f5148a3..5a80d4cec 100644
--- a/bigtop-packages/src/rpm/zeppelin/SPECS/zeppelin.spec
+++ b/bigtop-packages/src/rpm/zeppelin/SPECS/zeppelin.spec
@@ -72,13 +72,14 @@ AutoReq: no
 # Required for init scripts
 Requires: insserv
 %global initd_dir %{_sysconfdir}/rc.d
-
 %else
 # Required for init scripts
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
-
+%endif
 %global initd_dir %{_sysconfdir}/rc.d/init.d
-
 %endif
 
 %description 
diff --git a/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec 
b/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec
index 22b46d193..56bf9541e 100644
--- a/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec
+++ b/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec
@@ -135,8 +135,12 @@ Requires: initscripts
 # 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
+%if 0%{?fedora} >= 40
+Requires: redhat-lsb-core
+%else
 Requires: /lib/lsb/init-functions
 %endif
+%endif
 
 
 %description server

Reply via email to