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 e749f0d4c BIGTOP-4545. hbase: versionless jar symlinks broken for 
version strings with extra "-<digit>" suffix (#1405)
e749f0d4c is described below

commit e749f0d4c9997e12bed36d2c7c1a10a7a982a866
Author: Kwon Byungchang <[email protected]>
AuthorDate: Mon Jul 27 19:43:47 2026 +0900

    BIGTOP-4545. hbase: versionless jar symlinks broken for version strings 
with extra "-<digit>" suffix (#1405)
---
 bigtop-packages/src/common/hbase/install_hbase.sh | 5 ++++-
 bigtop-packages/src/rpm/hbase/SPECS/hbase.spec    | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/bigtop-packages/src/common/hbase/install_hbase.sh 
b/bigtop-packages/src/common/hbase/install_hbase.sh
index 92d35085e..19f47bd51 100755
--- a/bigtop-packages/src/common/hbase/install_hbase.sh
+++ b/bigtop-packages/src/common/hbase/install_hbase.sh
@@ -150,7 +150,10 @@ pushd `pwd`
 cd $PREFIX/$LIB_DIR
 for i in `ls hbase*jar | grep -v tests.jar`
 do
-    ln -s $i `echo $i | sed -n 's/\(.*\)\(-[0-9].*\)\(.jar\)/\1\3/p'`
+  if [[ $i =~ hbase-(.*)-${HBASE_VERSION}.jar ]]; then
+    name=${BASH_REMATCH[1]}
+    ln -s $i hbase-$name.jar
+  fi
 done
 popd
 
diff --git a/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec 
b/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
index 05a3d6a59..0084cbe0e 100755
--- a/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
+++ b/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec
@@ -309,7 +309,7 @@ env HBASE_VERSION=%{version} bash %{SOURCE1}
 
 %install
 %__rm -rf $RPM_BUILD_ROOT
-bash %{SOURCE2} \
+env HBASE_VERSION=%{hbase_base_version} bash %{SOURCE2} \
        --build-dir=build \
     --man-dir=%{man_dir} \
     --bin-dir=%{bin_dir} \

Reply via email to