Apache OpenOffice (AOO) Bugzilla – Issue 65281
dmake crashes on numeric comparison with empty macro
Last modified: 2013-08-07 15:34:52 UTC
See issue 65182 for details, dmake crashes on something like this: MYVAR= .IF $(MYVAR) >= "122" ...
Created attachment 36390 [details] Patch for dmake
Committed to CWS dmake45. Reassigning for verification.
@ause: Please verify.
Reopen, it seems the fix breaks this makefile: -- xxx.mk (native W32 example) -- # dmake.exe -rf xxx.mk .IMPORT .IGNORE : COMSPEC all : .IF $(XXXXX) == $(NULL) @echo "This is true" .ELSE @echo "This is not true" .END -- xxx.mk -- Puting " around the macros fixes this. This construct is used in dmakes (not used by OOo) startup macros to set SHELL. This bug breaks everything that uses dmake. Steve, thanks for testing! I'll fix this asap.
Created attachment 37204 [details] Patch for dmake
Committed and added testcase. @ause: Please verify.
Re-tested the makefile(s) that I had found were broken by SHELL not getting set, and I confirm that they are now working OK again.
looks good
.