From af92427f46f866327d757df8c0ed05ba129847a6 Mon Sep 17 00:00:00 2001 From: Luke Gorrie Date: Wed, 5 Jul 2017 04:54:50 +0000 Subject: [PATCH] pharo: Compile with -DPharoVM This is important. The VM was not compiled in "Pharo mode" and this made certain primitives return different values to the Smalltalk side. (Practically speaking I am surprised that the VM has been working basically fine for me for weeks, but this resolves a problem with adding filetree:// repositories with Monticello that failed in an obscure way when the file permissions lookup primitive did not behave as expected.) See also: https://pharo.fogbugz.com/f/cases/20217/Image-does-not-detect-incompatible-opensmalltalk-vm --- pkgs/development/pharo/vm/build-vm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/pharo/vm/build-vm.nix b/pkgs/development/pharo/vm/build-vm.nix index 2f2e125ea39e..054b64db732f 100644 --- a/pkgs/development/pharo/vm/build-vm.nix +++ b/pkgs/development/pharo/vm/build-vm.nix @@ -41,7 +41,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--without-npsqueak" "--with-vmversion=5.0" "--with-src=${vm}" ]; - CFLAGS = "-msse2 -D_GNU_SOURCE -DCOGMTVM=0 -g -O2 -DNDEBUG -DDEBUGVM=0"; + CFLAGS = "-DPharoVM -DIMMUTABILITY=1 -msse2 -D_GNU_SOURCE -DCOGMTVM=0 -g -O2 -DNDEBUG -DDEBUGVM=0"; LDFLAGS = "-Wl,-z,now"; # VM sources require some patching before build.