It looks like there's a problem with the part of `raco exe` that
removes the signature from the starting executable as it creates a new
one.

Specifically, it looks like `raco exe` fails to detect how much padding
was added to the original `__LINKEDIT` segment to add a code signature,
which is necessary for `raco exe` to remove that signature.

I'll try to fix that problem, but to make progress for now, you can
change

 collects/compiler/private/mach-o.rkt

and replace the call on line 164 to `detect-linkedit-padding` with the
constant 12 --- since 12 seems to be the right number for the v6.9
build, but `detect-linkedit-padding` thinks it's 8.

At Sun, 2 Jul 2017 14:57:29 -0700 (PDT), Seamus Brady wrote:
> Hi guys
> 
> I have a Racket based executable that I created using race exe / raco 
> distribute on macOS.
> I am trying to code sign it now so it passes through the macOS GateKeeper.
> 
> I had to add a few symlinks and edit the Info.plist to get the Racket 
> framework signed. That worked fine. But when I try to sign the actual main 
> executable in the app and the app itself, I am getting the error below:
> 
> "codesign_allocate: file not in an order that can be processed (link edit 
> information does not fill the __LINKEDIT segment)"
> 
> As a result the app gets rejected by the spctl assess check.
> 
> I cannot find any bug reports or Stackoverflow issues about Racket binaries 
> and codesigning on macOS but there seems to be similar problems with other 
> open sources binaries (such as binaries produced by PyInstaller).  The 
> problem 
> is a known one.
> 
> I was hoping that someone could provide some advice if anyone has seen 
> similar 
> problems.
> 
> Thanks in advance
> 
> Seamus
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to