3
0
Fork 0
forked from mirrors/nixpkgs

M pkgs/development/compilers/jdk/jdk6-linux.nix

M    pkgs/development/compilers/jdk/dlj-bundle-builder.sh

Various fixes to get javaws and mozillaPlugin to work. Requires gcc3.3
libstdc++ to be in the dynamic library path.


svn path=/nixpkgs/trunk/; revision=8434
This commit is contained in:
Martin Bravenboer 2007-03-27 22:02:55 +00:00
parent 68d80ff094
commit fb91f1b319
3 changed files with 26 additions and 2 deletions

View file

@ -1,4 +1,5 @@
source $stdenv/setup
source $makeWrapper
echo "Unpacking distribution"
unzip ${src} || true
@ -41,3 +42,19 @@ fi
find $out -type f -perm +100 \
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath "$rpath" {} \;
mv $out/bin/javaws $out/bin/javaws.bin
makeWrapper "$out/bin/javaws.bin" "$out/bin/javaws" \
--suffix-each LD_LIBRARY_PATH ':' "$(addSuffix /lib $libPath)"
function mozillaExtraLibPath() {
p=$1
if test -e "$p"; then
echo "$libstdcpp5/lib" > $p/extra-library-path
fi
}
mozillaExtraLibPath "$out/jre/plugin/i386/ns7"
mozillaExtraLibPath "$out/plugin/i386/ns7"

View file

@ -4,6 +4,7 @@
, unzip
, xlibs ? null
, installjdk ? true
, libstdcpp5
}:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
@ -51,6 +52,11 @@ assert swingSupport -> xlibs != null;
buildInputs = [unzip];
libraries =
(if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi] else []);
# necessary for javaws and mozilla plugin
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
libPath = [libstdcpp5];
inherit libstdcpp5;
}
//
{
@ -63,7 +69,7 @@ assert swingSupport -> xlibs != null;
( if stdenv.system == "i686-linux" then
{
mozillaPlugin =
if installjdk then "jre/plugin/i386/ns7" else "plugin/i386/ns7";
if installjdk then "/jre/plugin/i386/ns7" else "/plugin/i386/ns7";
}
else
{}

View file

@ -757,6 +757,7 @@ rec {
else
import ../development/compilers/jdk {
inherit fetchurl stdenv unzip installjdk xlibs;
libstdcpp5 = gcc33.gcc;
};
jikes = import ../development/compilers/jikes {
@ -2448,7 +2449,7 @@ rec {
userModeLinux = true;
};
umlutilities = import ../os-specific/uml-utilities {
umlutilities = import ../os-specific/linux/uml-utilities {
inherit fetchurl stdenv;
};