Commit d97ed54e authored by Xavier Thompson's avatar Xavier Thompson

component/theia: Fix keytar rpath with patchelf

On Debian 9, the given rpath seem to be ignored when compiling
the `keytar` dependency of theia, for unknown reasons.
parent 242dc4b9
...@@ -3,6 +3,7 @@ extends = ...@@ -3,6 +3,7 @@ extends =
../java-jdk/buildout.cfg ../java-jdk/buildout.cfg
../libsecret/buildout.cfg ../libsecret/buildout.cfg
../pkgconfig/buildout.cfg ../pkgconfig/buildout.cfg
../patchelf/buildout.cfg
../yarn/buildout.cfg ../yarn/buildout.cfg
download-plugins.cfg download-plugins.cfg
buildout.hash.cfg buildout.hash.cfg
...@@ -37,6 +38,12 @@ pre-configure = ...@@ -37,6 +38,12 @@ pre-configure =
configure-command = true configure-command = true
make-binary = cd %(location)s && ${yarn:location}/bin/yarn make-binary = cd %(location)s && ${yarn:location}/bin/yarn
make-targets = theia build make-targets = theia build
post-install =
# On Debian 9 the -rpath are not taken into account by yarn build for unknown reasons
cd %(location)s/node_modules/keytar/build/Release
${patchelf:location}/bin/patchelf --set-rpath \
${libsecret:location}/lib:${gettext:location}/lib:${glib:location}/lib \
keytar.node obj.target/keytar.node
[theia-wrapper] [theia-wrapper]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
......
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