mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
* Fix jre, and some cleanups.
svn path=/nixpkgs/trunk/; revision=10863
This commit is contained in:
parent
2763f4d08c
commit
65dcf5ffa4
@ -32,11 +32,13 @@ for i in $libraries; do
|
||||
done
|
||||
|
||||
if test -z "$installjdk"; then
|
||||
rpath=$rpath${rpath:+:}$out/lib/$architecture/jli
|
||||
jrePath=$out
|
||||
else
|
||||
rpath=$rpath${rpath:+:}$out/jre/lib/$architecture/jli
|
||||
jrePath=$out/jre
|
||||
fi
|
||||
|
||||
rpath=$rpath${rpath:+:}$jrePath/lib/$architecture/jli
|
||||
|
||||
# set all the dynamic linkers
|
||||
find $out -type f -perm +100 \
|
||||
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
||||
@ -52,15 +54,11 @@ function mozillaExtraLibPath() {
|
||||
if test -z "$pluginSupport"; then
|
||||
rm $out/bin/javaws
|
||||
else
|
||||
source $makeWrapper
|
||||
|
||||
mv $out/bin/javaws $out/bin/javaws.bin
|
||||
makeWrapper "$out/bin/javaws.bin" "$out/bin/javaws" \
|
||||
wrapProgram "$out/bin/javaws" \
|
||||
--suffix-each LD_LIBRARY_PATH ':' "$(addSuffix /lib $libPath)"
|
||||
|
||||
mozillaExtraLibPath "$out/jre/plugin/i386/ns7"
|
||||
mozillaExtraLibPath "$out/plugin/i386/ns7"
|
||||
mozillaExtraLibPath "$jrePath/plugin/i386/ns7"
|
||||
fi
|
||||
|
||||
# Workaround for assertions in xlib, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373.
|
||||
substituteInPlace $out/jre/lib/i386/xawt/libmawt.so --replace XINERAMA FAKEEXTN
|
||||
substituteInPlace $jrePath/lib/i386/xawt/libmawt.so --replace XINERAMA FAKEEXTN
|
||||
|
@ -2,6 +2,7 @@
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, unzip
|
||||
, makeWrapper
|
||||
, xlibs ? null
|
||||
, installjdk ? true
|
||||
, pluginSupport ? true
|
||||
@ -51,7 +52,7 @@ assert pluginSupport -> libstdcpp5 != null;
|
||||
else
|
||||
abort "jdk requires i686-linux or x86_64 linux";
|
||||
|
||||
buildInputs = [unzip];
|
||||
buildInputs = [unzip makeWrapper];
|
||||
libraries =
|
||||
(if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi] else []);
|
||||
|
||||
@ -60,7 +61,6 @@ assert pluginSupport -> libstdcpp5 != null;
|
||||
# necessary for javaws and mozilla plugin
|
||||
if pluginSupport then
|
||||
{
|
||||
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
|
||||
libPath = [libstdcpp5];
|
||||
inherit libstdcpp5;
|
||||
}
|
||||
|
@ -17,4 +17,9 @@ stdenv.mkDerivation {
|
||||
cp -prd bin lib plugin doc $out/
|
||||
rm $out/bin/*.bat
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A static analysis tool to find bugs in Java programs automatically";
|
||||
homepage = http://findbugs.sourceforge.net/;
|
||||
};
|
||||
}
|
||||
|
@ -1471,7 +1471,7 @@ rec {
|
||||
jdkdistro = installjdk: pluginSupport:
|
||||
assert supportsJDK;
|
||||
(if pluginSupport then appendToName "plugin" else x: x) (import ../development/compilers/jdk {
|
||||
inherit fetchurl stdenv unzip installjdk xlibs pluginSupport;
|
||||
inherit fetchurl stdenv unzip installjdk xlibs pluginSupport makeWrapper;
|
||||
libstdcpp5 = gcc33.gcc;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user