Skip to content

Conversation

@swamirishi
Copy link
Contributor

@swamirishi swamirishi commented Mar 21, 2024

What changes were proposed in this pull request?

Currently the native lib load fails since we hardcode the rocksdbjni lib path while linking with the native lib. We need to link it with a relative path.

The patch looks into setting the RPATH for native lib which will link the rocksdblib corresponding to the location of the native lib.
I am adding the stack overflow link which might be helpful here for reviewing:
https://stackoverflow.com/questions/43330165/how-to-link-a-shared-library-with-cmake-with-relative-path/71321163#71321163

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10560

How was this patch tested?

Existing Unit test

@adoroszlai adoroszlai marked this pull request as draft March 21, 2024 10:27
@adoroszlai
Copy link
Contributor

Please wait for clean CI run in fork before opening PR.

@swamirishi
Copy link
Contributor Author

Got a clean CI on my fork. Opening the PR

@swamirishi swamirishi marked this pull request as ready for review March 21, 2024 13:49
@swamirishi
Copy link
Contributor Author

Screen Shot 2024-03-21 at 03 27 22

Change-Id: Iefef7f05466bef2f955dc29966f35e6e29af4698
@kerneltime
Copy link
Contributor

The cmake changes look fine. I will try to find some time to give this PR a spin locally and complete the review.

Change-Id: Ic08cbe1d369c3048db6bd2c27b42a2bcd09e929a
@swamirishi swamirishi merged commit e31e68a into apache:master Apr 8, 2024
@swamirishi
Copy link
Contributor Author

thank you for the review @kerneltime @smengcl

Tejaskriya pushed a commit to Tejaskriya/ozone that referenced this pull request Apr 17, 2024
jojochuang pushed a commit to jojochuang/ozone that referenced this pull request May 29, 2024
… instead of absolute path (apache#6414)

(cherry picked from commit e31e68a)
swamirishi added a commit to swamirishi/ozone that referenced this pull request Jun 10, 2024
…elative path instead of absolute path (apache#6414)

(cherry picked from commit e31e68a)
Change-Id: I02f472bae587cebc3c91382cf1d2061b8dd3f740
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants