8000 Fix crossbuild jar packaging by dmittendorf · Pull Request #764 · facebook/rocksdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix crossbuild jar packaging #764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 13, 2015

Conversation

dmittendorf
Copy link
Contributor

Fixed the java crossbuild jar packaging. Prior to this change the following error would occur as a result of running make jclean clean rocksdbjavastaticrelease after a clean clone/checkout.

cd java;jar -uf target/rocksdbjni-4.1.0.jar librocksdbjni-*.so librocksdbjni-*.jnilib
librocksdbjni-*.jnilib : no such file or directory
make: *** [rocksdbjavastaticrelease] Error 1

This is addressed by forcing all java artifacts (jars and libraries) to write out to the java/target directory, and then the packaging of the final jar is done within that directory. This has the added benefit of make jclean actually working to clean up all of the java output files.

James Lent and others added 2 commits October 12, 2015 18:24
1) There is no need to download and install the compression libraries twice
just to get access to their header files during the compile phase.
2) Ensure that the compression library headers files used during the
compile phase are the same ones used to build the static library that
is linked into the library.
…es to be output to the java/target directory. The uber crossbuild jar is then assembled within the java/target directory.
yhchiang added a commit that referenced this pull request Oct 13, 2015
@yhchiang yhchiang merged commit 385b416 into facebook:master Oct 13, 2015
@yhchiang
Copy link
Contributor

Thanks for fixing this.

yhchiang added a commit that referenced this pull request Oct 13, 2015
Fix crossbuild jar packaging
Conflicts:
	Makefile
	java/crossbuild/build-linux-centos.sh
yhchiang added a commit that referenced this pull request Oct 15, 2015
Fix crossbuild jar packaging
Conflicts:
	Makefile
	java/crossbuild/build-linux-centos.sh
yhchiang added a commit that referenced this pull request Dec 27, 2015
Fix crossbuild jar packaging
Conflicts:
	Makefile
	java/crossbuild/build-linux-centos.sh

Conflicts:
	Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0