Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13294 closed defect (fixed)

emacs 22.1 fails to build on Mac OS X 10.5 Leopard

Reported by: queshaw@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: emacs Cc: darren.bane@…, walts@…, jmroot (Joshua Root)
Port:

Description

During the build I get:

Assertion failed: (filesize <= ranges->size), function unexec_regions_recorder, file /Users/kshaw/Desktop/Source/emacs-22.1/ src/unexmacosx.c, line 454. make[1]: * [emacs] Abort trap make[1]: * Deleting file `emacs' make: * [src] Error 2

Preceded by a dump of registers and storage.

This path fixes it if I build from source outside of ports:

http://article.gmane.org/gmane.emacs.bugs/16867

Attachments (2)

leopard-patch (3.0 KB) - added by terry@… 17 years ago.
Patch pasted into a file from http://article.gmane.org/gmane.emacs.bugs/16867
patch-Portfile.diff (573 bytes) - added by darren.bane@… 17 years ago.
Patch against editors/emacs/Portfile (note that leopard.patch should be renamed to patch-src-unexmacosx.c.diff)

Download all attachments as: .zip

Change History (11)

comment:1 Changed 17 years ago by nox@…

Cc: darren.bane@… added
Milestone: Port Bugs
Summary: emacs 22.1 build failing on ppc leopardemacs 22.1 fails to build on Mac OS X 10.5 Leopard

Changed 17 years ago by terry@…

Attachment: leopard-patch added

comment:2 Changed 17 years ago by terry@…

I added the previously mentioned patch to the patchfiles line in the emacs Portfile and it appears to build and run under Leopard (Intel Mac).

Attached the contents of the patch to the bug in case it is easier for the maintainer to use that instead of cut/paste from the original gmane link.

For anyone wanting to duplicate this download and copy the file to "$(dirname $(port file emacs))/files/" then edit the Portfile "$(port file emacs)" and change the line that reads

patchfiles patch-src-s-darwin.h

to

patchfiles patch-src-s-darwin.h leopard-patch

Then build as per usual.

comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: walts@… added

Walt Scrivens reported that the attached patch also resolved the issue for him. It should probably be committed. Darren, do you have any objection or comment?

comment:4 Changed 17 years ago by darren.bane@…

Sorry for the delay, I was confusing this bug with my #13026, which I had previously rejected as not fixing the problem.

I can confirm that the attached patch fixes Emacs for Leopard, at least on PPC. Thanks for helping out guys, I'm more of a UNIX guy, and it looks like maintaining Emacs is a job for a Lisp wizard ;-)

Changed 17 years ago by darren.bane@…

Attachment: patch-Portfile.diff added

Patch against editors/emacs/Portfile (note that leopard.patch should be renamed to patch-src-unexmacosx.c.diff)

comment:5 Changed 17 years ago by simon@…

I can confirm the patch fixes Emacs for Leopard on Intel.

comment:6 Changed 17 years ago by jmroot (Joshua Root)

Cc: jmr@… added

So this is OK to be committed?

comment:7 Changed 17 years ago by jmroot (Joshua Root)

Has duplicates #13026, #13942.

comment:8 Changed 17 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

I committed the fix in r34744. I put the extra patchfile inside a 'platform darwin 9' block, since nobody has mentioned testing it on earlier OS versions.

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.