Grant Henke has submitted this change and it was merged. (
http://gerrit.cloudera.org:8080/15813 )
Change subject: [binary-jar] Fix macOS binary jar libc++abi error
......................................................................
[binary-jar] Fix macOS binary jar libc++abi error
The macOS binary jar was broken by commit 458e6ce because
thirdparty now builds with libc++abi for normal builds.
This resulted in an error like the below when using a macOS binary jar:
[main] INFO org.apache.kudu.shaded.com.google.gradle.osdetector.OsDetector
- os.detected.classifier=osx-x86_64
[main] INFO org.apache.kudu.test.cluster.KuduBinaryLocator - Using Kudu
binary jar directory:
/var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358
[main] INFO org.apache.kudu.test.cluster.MiniKuduCluster - Starting
process:
[/var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358/kudu-binary-1.12.0-osx-x86_64/bin/kudu,
test, mini_cluster, --serialization=pb]
[cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster
- dyld: Library not loaded: @rpath/libc++abi.1.dylib
[cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster
- Referenced from:
/private/var/folders/3y/nrs6__c10n107f357n7yx2100000gp/T/kudu-binary-jar6249991106299083358/kudu-binary-1.12.0-osx-x86_64/lib/libglog.0.dylib
[cluster stderr printer] INFO org.apache.kudu.test.cluster.MiniKuduCluster
- Reason: image not found
[main] ERROR org.apache.kudu.test.junit.RetryRule -
org.apache.kudu.examples.ExampleTest.testCreateExampleTable: failed attempt 1
java.io.EOFException
This patch fixes the issue by adjusting the `PAT_MACOS_LIB_EXCLUDE`
regex to ensure the libc++abi library is not excluded from the jar.
Additionaly it adjusts the licence file to include the libc++abi.
Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Reviewed-on: http://gerrit.cloudera.org:8080/15812
Tested-by: Kudu Jenkins
Reviewed-by: Hao Hao <[email protected]>
(cherry picked from commit ae4b71548726314a0bc0a5258de454d1a65d08a3)
Reviewed-on: http://gerrit.cloudera.org:8080/15813
Tested-by: Grant Henke <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>
---
M build-support/mini-cluster/LICENSE-BINARY-JAR-OSX.txt
M build-support/mini-cluster/relocate_binaries_for_mini_cluster.py
2 files changed, 5 insertions(+), 1 deletion(-)
Approvals:
Grant Henke: Verified
Alexey Serbin: Looks good to me, approved
--
To view, visit http://gerrit.cloudera.org:8080/15813
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: branch-1.12.x
Gerrit-MessageType: merged
Gerrit-Change-Id: I395fd39d62fd7bfcd2aa2b0781d77c3a16e19d4b
Gerrit-Change-Number: 15813
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Hao Hao <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)