Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
R Ruby
branch: master

[build-emacs-from-tar] Add in locallisppath to configure for a reason…

…able site-lisp path.

Summary: as of b9d8edcf6dbe5651919bfb42687d16794f2d86f8 emacs doesn't set
locallisppath by default. People have asked me where to put site wide
configs, so I'm making up a path that seems reasonable.

This should also get rid of the hardcoded paths to the build directories
that existed before b9d8edcf6dbe5651919bfb42687d16794f2d86f8. Not that we
build old stuff ever...
latest commit 86e4c4d3bb
David Caldwell authored

Emacs Build Script

These are the emacs build scripts that produces the builds at


Hardware Requirements

The scripts are modular and are designed to be run on multiple build machines (or VMs) and integrate with continuous integration servers (the builds on run from Jenkins now). This means that you can build whatever architectures you have access to.

Note that cross-compiling Emacs is (still) not possible due to the "unexec" step, which requires the binary that was built to be run. So if you want to build an old architecture (like PowerPC), you need to be running on a system that can actually execute binaries of that architecture.


Recent Emacs pretests are being distributed in .tar.xz format. The "fetch-emacs-from-ftp" script will convert from .xz to .tar.bz2 so that XZ doesn't need to be installed on every build machine. But you will need the "xz" program on the machines that runs "fetch-emacs-from-ftp". The easiest way to get it is through homebrew: "brew install xz"


There are 3 scripts that are designed to be run from some sort of Continuous Integration software (the builds on run from Jenkins). All three scripts know the --verbose command, and are nice and loud when it is given.


This takes an ftp url (, for example), and downloads the latest version of the Emacs source code found there. It will also convert the source from a .tar.xz to a .tar.bz2 (so that the main build VMs don't need to have "XZ" installed).


This is the main build script. It takes a tar file and a "kind" (pretest, nightly, or release) as input and unpacks the tar, builds it for a single architecture, and tars up the resulting file.

You can tell it to build an architecture other than the default with the --arch option (--arch=powerpc or --arch=i386).

Builds of the main Emacs source repository are expected to be packaged up into tars elsewhere. has a Jenkins job that pulls down the latest code and then tars it up like so:

rm -rf emacs-*
bzr checkout --lightweight . $DIR
(cd $DIR && ./
tar cjf $DIR.tar.bz2 --exclude '.bzr' $DIR


This takes multiple tar files as input, unpacks and combines them into a final "fat", then creates a final disk image (.dmg). It takes an optional --sign parameter (--sign="my identity") which makes it code sign the


Copyright © 2004-2014 David Caldwell

The scripts and programs contained in this distribution are licensed under the GNU General Public License (v3.0). See the LICENSE file for details.

Something went wrong with that request. Please try again.