You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by pe...@apache.org on 2021/05/20 00:31:06 UTC

[pulsar] branch master updated: Fix RPM building error in #10582 (#10641)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new b5bd846  Fix RPM building error in #10582 (#10641)
b5bd846 is described below

commit b5bd846dc7dfa4c23c6e6faf3d2dcad03fcc3da1
Author: Ting Yuan <ty...@streamnative.io>
AuthorDate: Wed May 19 19:30:21 2021 -0500

    Fix RPM building error in #10582 (#10641)
    
    Fixes #10582
    
    
    ### Motivation
    
    Currently, the `sourceReleaseAssemblyDescriptor` from apache parent pom makes the scripts in `pulsar-client-cpp` lost their execution permissions, which leads to the build error in #10582
    
    ### Modifications
    
    This PR enables the needed permissions.
---
 pulsar-client-cpp/pkg/deb/build-deb.sh             | 1 +
 pulsar-client-cpp/pkg/rpm/SPECS/pulsar-client.spec | 1 +
 2 files changed, 2 insertions(+)

diff --git a/pulsar-client-cpp/pkg/deb/build-deb.sh b/pulsar-client-cpp/pkg/deb/build-deb.sh
index 3e3ec0e..3f2dc51 100755
--- a/pulsar-client-cpp/pkg/deb/build-deb.sh
+++ b/pulsar-client-cpp/pkg/deb/build-deb.sh
@@ -37,6 +37,7 @@ cd BUILD
 tar xfz $SRC_ROOT_DIR/target/apache-pulsar-$POM_VERSION-src.tar.gz
 pushd $CPP_DIR
 
+chmod +x $(find . -name "*.sh")
 cmake . -DBUILD_TESTS=OFF -DLINK_STATIC=ON
 make pulsarShared pulsarSharedNossl pulsarStatic pulsarStaticWithDeps  -j 3
 popd
diff --git a/pulsar-client-cpp/pkg/rpm/SPECS/pulsar-client.spec b/pulsar-client-cpp/pkg/rpm/SPECS/pulsar-client.spec
index 2e68d90..b23fd41 100644
--- a/pulsar-client-cpp/pkg/rpm/SPECS/pulsar-client.spec
+++ b/pulsar-client-cpp/pkg/rpm/SPECS/pulsar-client.spec
@@ -53,6 +53,7 @@ static library.
 
 %build
 cd pulsar-client-cpp
+chmod +x $(find . -name "*.sh")
 cmake . -DBUILD_TESTS=OFF -DLINK_STATIC=ON -DBUILD_PYTHON_WRAPPER=OFF
 make pulsarShared pulsarSharedNossl pulsarStatic pulsarStaticWithDeps -j 3