Commit c8a2bcb7 authored by Dmitry Blinov's avatar Dmitry Blinov

add rpaths to binary java-jdk

separate java-jdk to an own component
add patchelf
patchelf java-jdk's binaries

this is needed for linking tests to pass
parent 073e6e22
[buildout]
extends =
../patchelf/buildout.cfg
../zlib/buildout.cfg
parts =
java-jdk
[java-jdk-download]
recipe = slapos.recipe.build:download-unpacked
url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
md5sum = f5da6f4dec81bdd2a096184ec1d69216
strip-top-level-dir = true
[java-jdk]
recipe = plone.recipe.command
command =
for file in ${java-jdk-download:location}/bin/*
do
echo appending rpath to $file
${patchelf:location}/bin/patchelf --set-rpath ${:rpath} $file
done
location = ${java-jdk-download:location}
rpath = ${zlib:location}/lib:${java-jdk-download:location}/lib
[buildout]
extends =
../gcc/buildout.cfg
../autoconf/buildout.cfg
../automake/buildout.cfg
../pkgconfig/buildout.cfg
parts =
patchelf
[patchelf]
recipe = slapos.recipe.cmmi
url = https://github.com/NixOS/patchelf/archive/0.10.tar.gz
md5sum = b435199e3e03d1b61dd0f9031ce8c9c2
pre-configure =
autoreconf -vif
environment =
PATH=${gcc:location}/bin:${pkgconfig:location}/bin:${autoconf:location}/bin:${automake:location}/bin:%(PATH)s
LDFLAGS=-L${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib
CXX=${gcc:location}/bin/g++
#PATH=${gcc:location}/bin:${autoconf:location}/bin:${automake:location}/bin:%(PATH)s
#environment =
# PATH=${pkgconfig:location}/bin:${xz-utils:location}/bin:%(PATH)s
# PKG_CONFIG_PATH=${mesa:location}/lib/pkgconfig:${libX11:location}/lib/pkgconfig:${libX11:pkg_config_depends}:${libXext:location}/lib/pkgconfig:${xdamage:location}/lib/pkgconfig:${damageproto:location}/lib/pkgconfig:${xfixes:location}/lib/pkgconfig:${fixesproto:location}/lib/pkgconfig
...@@ -7,6 +7,7 @@ extends = ...@@ -7,6 +7,7 @@ extends =
../../component/gtk-2/buildout.cfg ../../component/gtk-2/buildout.cfg
../../component/alsa/buildout.cfg ../../component/alsa/buildout.cfg
../../component/java/buildout.cfg ../../component/java/buildout.cfg
../../component/java-jdk/buildout.cfg
../../component/qt/buildout.cfg ../../component/qt/buildout.cfg
../../component/gcc/buildout.cfg ../../component/gcc/buildout.cfg
../../component/git/buildout.cfg ../../component/git/buildout.cfg
...@@ -29,11 +30,11 @@ extends = ...@@ -29,11 +30,11 @@ extends =
parts = parts =
pwr pwr
[java-jdk] #[java-jdk]
recipe = hexagonit.recipe.download #recipe = hexagonit.recipe.download
url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz #url = https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
md5sum = f5da6f4dec81bdd2a096184ec1d69216 #md5sum = f5da6f4dec81bdd2a096184ec1d69216
strip-top-level-dir = true #strip-top-level-dir = true
[doxygen] [doxygen]
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment