Subject: CVS commit: [pkgsrc-2011Q3] pkgsrc/editors/emacs20
From: Matthias Scheler
Date: 2011-12-02 14:16:31
Message id: 20111202131631.D4638175DD@cvs.netbsd.org

Log Message:
Pullup ticket #3617 - requested by dholland
editors/emacs20: bug fix patch

Revisions pulled up:
- editors/emacs20/distinfo                                      1.19-1.22
- editors/emacs20/patches/patch-ab                              1.4
- editors/emacs20/patches/patch-bm                              1.2-1.4
- editors/emacs20/patches/patch-cb                              deleted

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Thu Dec  1 04:05:41 UTC 2011

   Modified Files:
   	pkgsrc/editors/emacs20: distinfo
   	pkgsrc/editors/emacs20/patches: patch-ab

   Log Message:
   Patch up configure tests for cpp to avoid problems when running gcc
   4.5's cpp on makefiles. PR 45669.

   Unfortunately, this does not by itself fix the build; now I'm getting

      ./temacs -batch -l loadup dump
      gmake[1]: *** [emacs] Segmentation fault

   and I have a bad feeling that this may be the same issue that the
   other emacs versions are sometimes hitting.

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Thu Dec  1 04:51:30 UTC 2011

   Modified Files:
   	pkgsrc/editors/emacs20: distinfo
   	pkgsrc/editors/emacs20/patches: patch-bm
   Removed Files:
   	pkgsrc/editors/emacs20/patches: patch-cb

   Log Message:
   Fold patch-cb into patch-bm since they patch the same file. Related to
   PR 45669. hi joerg!

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Thu Dec  1 05:07:23 UTC 2011

   Modified Files:
   	pkgsrc/editors/emacs20: distinfo
   	pkgsrc/editors/emacs20/patches: patch-bm

   Log Message:
   Add __asm __volatile("":::"memory") at a critical point \ 
in alloc.c.

   gcc thinks it knows the semantics of malloc and so it thinks it can
   optimize out the manipulation of __malloc_hook; however, doing so causes
   the subsequent malloc call to come back to itself, leading to an infinite
   recursion and SIGSEGV in temacs.

   This fixes the remaining part of PR 45669.

   Someone(TM) should check if this issue affects other Emacs versions
   and/or XEmacs.

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Thu Dec  1 05:12:57 UTC 2011

   Modified Files:
   	pkgsrc/editors/emacs20: distinfo
   	pkgsrc/editors/emacs20/patches: patch-bm

   Log Message:
   Extend previous to realloc and free as well, which is almost certainly
   necessary. PR 45669.

Files:
RevisionActionfile
1.18.2.1modifypkgsrc/editors/emacs20/distinfo
1.3.50.1modifypkgsrc/editors/emacs20/patches/patch-ab
1.1.1.1.68.1modifypkgsrc/editors/emacs20/patches/patch-bm
1.1removepkgsrc/editors/emacs20/patches/patch-cb