[Nix-dev] fix for mlton

Ambrus Kaposi kaposi.ambrus at gmail.com
Tue Mar 13 13:20:35 CET 2012


On Tue, Mar 13, 2012 at 2:34 AM, Marc Weber <marco-oweber at gmx.de> wrote:
> The probblem was  substituteInPlace modifying the .tgz file. Don't ask
> me why it didn't happen in the past?
>
> Either find or substituteInPlace changed behaviour !?

I suspect a change in substituteInPlace which also rendered graphical
Java applications unusable on my setup by corrupting
/nix/store/ywxkvbvkqs2g2rwbi4wl8k29dafag27h-jdk-1.6.0_24/jre/lib/i386/xawt/libmawt.so:

$ ld /nix/store/ywxkvbvkqs2g2rwbi4wl8k29dafag27h-jdk-1.6.0_24/jre/lib/i386/xawt/libmawt.so
/nix/store/ywxkvbvkqs2g2rwbi4wl8k29dafag27h-jdk-1.6.0_24/jre/lib/i386/xawt/libmawt.so:
file not recognized: File format not recognized

The following patch repairs it:

Index: pkgs/development/compilers/jdk/dlj-bundle-builder.sh
===================================================================
--- pkgs/development/compilers/jdk/dlj-bundle-builder.sh        (revision 33031)
+++ pkgs/development/compilers/jdk/dlj-bundle-builder.sh        (working copy)
@@ -54,4 +54,4 @@
 ln -s $jrePath/lib/$architecture/libnpjp2.so $jrePath/lib/$architecture/plugins

 # Workaround for assertions in xlib, see
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373.
-substituteInPlace $jrePath/lib/*/xawt/libmawt.so --replace XINERAMA FAKEEXTN
+#substituteInPlace $jrePath/lib/*/xawt/libmawt.so --replace XINERAMA FAKEEXTN


More information about the nix-dev mailing list