Skip to content

Commit

Permalink
Update JDK8 to patch all binaries instead of just the java binary
Browse files Browse the repository at this point in the history
Signed-off-by: Elliott Davis <[email protected]>

Pull request: #767
Approved by: juliandunn
  • Loading branch information
Elliott Davis authored and thesentinels committed Jun 12, 2016
1 parent 43d15aa commit 4abdcf8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plans/jdk8/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pkg_filename=jdk-${pkg_version}-linux-x64.tar.gz
pkg_license=('Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX')
pkg_description=('Oracle Java Development Kit. This package is made available to you to allow you to run your applications as provided in and subject to the terms of the Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX, found at http://www.oracle.com/technetwork/java/javase/terms/license/index.html')
pkg_deps=(core/glibc)
pkg_build_deps=(core/patchelf)
pkg_build_deps=(core/patchelf core/file)
pkg_bin_dirs=(bin jre/bin)
pkg_lib_dirs=(lib)
pkg_include_dirs=(include)
Expand Down Expand Up @@ -64,7 +64,8 @@ do_install() {
build_line "Setting rpath for '${pkg_prefix}/bin/java' to '$LD_RUN_PATH'"

export LD_RUN_PATH=$LD_RUN_PATH:$pkg_prefix/lib/amd64/jli
patchelf --interpreter "$(pkg_path_for glibc)/lib/ld-linux-x86-64.so.2" \
--set-rpath ${LD_RUN_PATH} \
${pkg_prefix}/bin/java

find $pkg_prefix/bin -type f -executable \
-exec sh -c "file -i '{}' | grep -q 'x-executable; charset=binary'" \; \
-exec patchelf --interpreter "$(pkg_path_for glibc)/lib/ld-linux-x86-64.so.2" --set-rpath ${LD_RUN_PATH} {} \;
}

0 comments on commit 4abdcf8

Please sign in to comment.