On Fri, Jun 12, 2015 at 04:16:30PM +0200, Michele La Monaca wrote:
> Hi,
> 
> I've noticed that INSTALL_PROGRAM is not used to create directories.
> The attached patch fixes this behavior.

I was testing on Mingw with MSYS and noticed that this change caused the
installation to break on that platform.

Turns out the Makefile for mingw-msys sets INSTALL_PROGRAM to 'cp',
but it doesn't specify MAKEDIR_COMMAND, so it will happily try to
invoke "cp -d -m 755 /path/to/chicken".

Attached is a fix for this platform.  Please apply to master and
chicken-5.

Cheers,
Peter
From 6597b03f867f9613eb51717f9c8c9754fd87fa85 Mon Sep 17 00:00:00 2001
From: Peter Bex <[email protected]>
Date: Wed, 17 Jun 2015 23:23:05 +0200
Subject: [PATCH] Fix Mingw-MSYS build: mkdir program was not set, and install
 was set to 'cp'.

Fixes regression caused by f62a7f5798cfc8cedae791f6d39a94a1123ed9b6.
---
 Makefile.mingw-msys | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile.mingw-msys b/Makefile.mingw-msys
index 5e64fc7..c15ecda 100644
--- a/Makefile.mingw-msys
+++ b/Makefile.mingw-msys
@@ -70,6 +70,8 @@ INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS = -r
 INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS = -r
 INSTALL_PROGRAM_EXECUTABLE_OPTIONS = -r
 INSTALL_PROGRAM_FILE_OPTIONS = -r
+MAKEDIR_COMMAND = mkdir
+MAKEDIR_COMMAND_OPTIONS = -p
 
 # special files
 
-- 
2.1.4

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to