New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13294 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

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@…, jmr@…
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

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

Change History

Changed 5 years ago by nox@…

  • cc darren.bane@… added
  • summary changed from emacs 22.1 build failing on ppc leopard to emacs 22.1 fails to build on Mac OS X 10.5 Leopard
  • milestone set to Port Bugs

Changed 5 years ago by terry@…

Changed 5 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.

Changed 4 years ago by ryandesign@…

  • 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?

Changed 4 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 4 years ago by darren.bane@…

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

Changed 4 years ago by simon@…

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

Changed 4 years ago by jmr@…

  • cc jmr@… added

So this is OK to be committed?

Changed 4 years ago by jmr@…

Has duplicates #13026, #13942.

Changed 4 years ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed

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.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.