#22364: emacs-22.3 link error on snow leopard ------------------------------------+--------------------------------------- Reporter: reto.stockli@… | Owner: darren.bane@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: emacs ------------------------------------+--------------------------------------- Comment(by ross@…): After searching the web, I found someone claiming [http://old.nabble.com /emacs-app-devel-fails-to-build-under-Snow-Leopard-td25301768.html here] that compiling emacs from CVS will work. I managed to verify this; below is a workaround that will let you hack the solution into MacPorts: {{{ # go to your homedir cd # grab the source from CVS, purposefully misnaming the version cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs-22.3 # tar it up tar zcf emacs-22.3.tar.gz emacs-22.3/ # just to be anal, verify that MacPorts' emacs really is failing sudo port clean emacs sudo port install emacs # assuming it failed, replace the MacPorts source with the new one cd /opt/local/var/macports/distfiles/emacs sudo mv emacs-22.3.tar.gz emacs-22.3.tar.gz.orig sudo cp ~/emacs-22.3.tar.gz . md5 emacs-22.3.tar.gz # remember this output # prepare to edit the Portfile cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/editors/emacs sudo cp Portfile Portfile.orig sudo vi Portfile # we need to change two things in the Portfile: # 1) change the md5 sum to the one calculated earlier # 2) remove the patchfiles section, i.e., delete this: # patchfiles patch-Makefile.in.diff \ # patch-leim-Makefile.in.diff # now try building it sudo port clean emacs sudo port install emacs }}} '''NOTE:''' if MacPorts releases an updated Portfile that fixes the problem, and it still refers to the same version of emacs, then you will need to restore the original source. For example: {{{ # restore the real 22.3 cd /opt/local/var/macports/distfiles/emacs sudo mv emacs-22.3.tar.gz emacs-22.3.tar.gz.cvs sudo mv emacs-22.3.tar.gz.orig emacs-22.3.tar.gz sudo port clean emacs sudo port upgrade emacs }}} -- Ticket URL: <http://trac.macports.org/ticket/22364#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS