* firefox-wrapper: plugins no longer have to declare additional

LD_LIBRARY_PATH elements, since they can use patchelf --rpath if
  necessary.
* Flashplayer / JRE: do just that.
* JRE: libstdcpp5 no longer seems to be necessary for the plugin.

svn path=/nixpkgs/trunk/; revision=12094
This commit is contained in:
Eelco Dolstra
2008-06-14 21:42:07 +00:00
parent 7219a09001
commit faba06ce54
8 changed files with 23 additions and 52 deletions

View File

@@ -3,7 +3,7 @@ args:
if args.stdenv.system == "i686-linux" || args.stdenv.system == "x86_64-linux" then
(import ./jdk6-linux.nix) args
else if args.stdenv.system == "powerpc-linux" then
(import ./jdk5-ibm-powerpc-linux.nix) (removeAttrs args ["libstdcpp5" "pluginSupport" "xlibs" "installjdk"])
(import ./jdk5-ibm-powerpc-linux.nix) (removeAttrs args ["pluginSupport" "xlibs" "installjdk"])
else
abort "the JDK is not supported on this platform"

View File

@@ -44,20 +44,10 @@ find $out -type f -perm +100 \
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath "$rpath" {} \;
function mozillaExtraLibPath() {
p=$1
if test -e "$p"; then
echo "$libstdcpp5/lib" > $p/extra-library-path
fi
}
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
if test -z "$pluginSupport"; then
rm -f $out/bin/javaws
else
wrapProgram "$out/bin/javaws" \
--suffix-each LD_LIBRARY_PATH ':' "$(addSuffix /lib $libPath)"
mozillaExtraLibPath "$jrePath/plugin/i386/ns7"
rm -f $out/bin/javaws
fi
# Workaround for assertions in xlib, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373.

View File

@@ -6,14 +6,12 @@
, xlibs ? null
, installjdk ? true
, pluginSupport ? true
, libstdcpp5 ? null
}:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
assert swingSupport -> xlibs != null;
assert pluginSupport -> libstdcpp5 != null;
(stdenv.mkDerivation ({
stdenv.mkDerivation ({
name =
if installjdk then "jdk-1.6.0_6" else "jre-1.6.0_6";
@@ -61,22 +59,10 @@ assert pluginSupport -> libstdcpp5 != null;
[stdenv.gcc.libc] ++
(if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt] else []);
inherit pluginSupport;
} // (
# necessary for javaws and mozilla plugin
if pluginSupport then
{
libPath = [libstdcpp5];
inherit libstdcpp5;
}
else
{}
))
//
{
inherit swingSupport pluginSupport;
}
//
inherit swingSupport pluginSupport;
inherit (xlibs) libX11;
} //
/**
* The mozilla plugin is not available in the amd64 distribution (?)
*/