SA Bugzilla – Bug 7255
`dmake install` fails on windows
Last modified: 2018-09-17 11:12:23 UTC
Created attachment 5338 [details] dmake-compatible Makefile Strawberry Perl comes with dmake, and MakeMaker emits dmake-style Makefiles. `dmake install` fails with the following message: ``` "D:\Strawberry\perl\bin\perl.exe" -MFile::Copy -e "copy(qrules/local.cf, qD:\Str awberry\perl\site/etc/mail/spamassassin/local.cf) unless -f qD:\Strawberry\perl\ site/etc/mail/spamassassin/local.cf" Backslash found where operator expected at -e line 1, near "Strawberry\" Backslash found where operator expected at -e line 1, near "perl\" Backslash found where operator expected at -e line 1, near "Strawberry\" Backslash found where operator expected at -e line 1, near "perl\" syntax error at -e line 1, near "local." Execution of -e aborted due to compilation errors. dmake: Error code 255, while making 'conf__install' ``` The problem is that braces have significance for dmake. They need to be escaped by doubling. Replacing them with brackets instead is probably more portable. See attached patch.
I checked this on my linux system and it appears to work fine. The key change is some { to {.
that is { to [
Looks good when I test it as well. Committed to 4.0 and 3.4.2 Committed revision 1710600. Committed revision 1710602.
Created attachment 5596 [details] Updated patch The previous patch has only been partially applied. Here is a new patch.
Reopening the bug (see above for the reason).
Thanks Martin, now that 3.4.2 is out, I've added this to 3.4 and trunk 3.4: Committed revision 1841063. trunk: Committed revision 1841064.