[plt-dev] Installation directories on Mac OS X

From: Thomas Deniau (thomas at deniau.org)
Date: Sat May 23 09:26:19 EDT 2009

On 23 mai 09, at 14:51, Matthias Felleisen wrote:

> Go for it. -- Matthias


Done
( http://trac.macports.org/attachment/ticket/19738/mzscheme.diff ).

You might be interested in including this patch to unixstyle.ss  
upstream :

--- ../collects/setup/unixstyle-install.ss.orig 2009-05-21  
20:37:16.000000000 +0200
+++ ../collects/setup/unixstyle-install.ss      2009-05-21  
20:36:39.000000000 +0200
@@ -179,7 +179,7 @@
                    (regexp-replace* #rx"[\"`'$\\]" (dir: 'bin) "\\\ 
\&"))
            (write-bytes buf (current-output-port) (cdadr m))))))
    (let ([magic (with-input-from-file file (lambda () (read-bytes  
10)))])
-    (cond [(regexp-match #rx#"^\177ELF" magic)
+    (cond [(or (regexp-match #rx#"^\177ELF" magic) (regexp-match  
#rx#"^\316\372\355\376" magic))
             (let ([temp (format "~a-temp-for-install"
                                 (regexp-replace* #rx"/" file "_"))])
               (with-handlers ([exn? (lambda (e) (delete-file temp)  
(raise e))])


it adds detection of the Mach-O magic number to the fix-binary code  
and is needed when you enable unixstyle on Mac OS.

Additionally, I changed some -I into -iquote's in the Makefile.in's :  
since the previous version of the port installed its headers files  
directly into include/ instead of include/plt/, the installed headers  
conflicted with the ones in the source distribution. This shouldn't do  
any harm unless you're not compiling with GCC.

-- 
Thomas Deniau
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20090523/51c6e7e0/attachment.p7s>

Posted on the dev mailing list.