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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-dev

Reply via email to