Building the Development Version of Emacs on FreeBSD

Today in our series “How To Build Emacs For Fun And No Profit Whatsoever“, we’ve reached FreeBSD.

Building Emacs here is very straightforward. First, as root, install the compilation dependencies like this:

pkg update -f
pkg install -y autoconf git gmake pkgconf texinfo
pkg install -y `pkg rquery %dn emacs-devel`

Then, as a non-root user, do:

git clone https://git.savannah.gnu.org/git/emacs.git
cd emacs
gmake -j4
./src/emacs

There! Almost as easy as on Debian!

You’re now ready to help fix Emacs bugs on FreeBSD I mean use Emacs:

Have You Ever Seen Something That Is So Ugly That You Think “I Have To Have That”?

Well, I did!

It’s a teapot from Jason Miller Areaware. You may not be surprised to hear that they don’t make these any more. After only three years with a watchlist on Ebay, I finally got one! And it didn’t shatter in the mail!

Isn’t that just uniquely horrible?

It’s a bit less horrifying on the other side… But it’s not just the jokey “print the bird upside down” thing going on here: It’s the shape that’s so absurd. The top two thirds is a traditional English teapot, but then in tapers off into a vase shape.

It’s wrong!

Just magnificently horrifying. I mean hilarious!

He even put his name on it! For reals.

I guess upside down it looks more reasonable.

Anyway: Best buy ever!

Jason Miller roolz.

(I’ve got a bunch of plates and cups from him, too, but they’re more funny than horrifying.)

3×10%

Last summer I went on an Emacs bug spelunking, and set as a goal for me to close (i.e., fix, prod people about, or determine if the bug reports were invalid, etc.) 10% of the open bugs.

I did that twice (which isn’t the same as fixing 20% of the bugs, because the 10% gets smaller each time YAY).

Then I started on the third ten percenter, and… I took a slight break. For half a year. Or more.

(I suspect that Stefan Kangas took some time off that coincided with me, because he contributed heavily to that descent there…)

Anyway, I’m back for a while, and (non-humble-brag) I finally finished the third 10%!

I have a tendency to work hard on a specific thing for a while, and then not at all for a while, which is why I’m glad I’m not really a maintainer for anything any more, but can just drop by with a coding blitz now and then…

And, as ever, more people working on Emacs bugs would be nice. Install the debbugs-gnu package, say `M-x debbugs-gnu’ and find some area you want to work on. It can be fun! I promise! For real!

(More bug stats can be found here.)

Emacs on Macos for Linux Peeps

Looking at the Emacs bug tracker, there’s a bunch of Apple-specific Emacs bugs, and I thought it would be fun to take a look at some of the more trivial bugs. So I wondered what you’d have to do to build Emacs under Macos, and… I found a bunch of people talking about how easy it is, but nobody actually, like, says how to do it. I mean, for somebody who’s barely switched their Apple laptops on.

So since I know naaathing, I’m the ideal person to write this how-to, since people who know everything don’t know what you don’t know.

1a) Install Xcode. This is found in “App Store”, and then search for “Xcode”. Click on the cloud symbol to get it to download. (Just figuring out that took me at least three hours.) It’ll turn into a circle with a square in the middle. That means it’s downloading. It’ll take a while.

1b) Alternatively, just say “gcc” in a terminal. You’ll get a popup asking whether to install command line stuff. Answer yes.

The rest you can do via ssh from your normal Linux machine.

2) Install Homebrew in this insane way:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

It’s a variation on the time-honoured “curl | sh” method. It’ll prompt you for your password, but don’t worry — it’s probably safe.

3) Install the Emacs dependencies and build Emacs. Just cut’n’paste the rest into your ssh session:

brew analytics off
mkdir src
cd src
git clone https://git.savannah.gnu.org/git/emacs.git
cd emacs
brew install pkg-config automake texinfo jpeg giflib\
  libtiff jansson libpng librsvg gnutls
make -j4
./src/emacs

Tada!

See? It really is that easy, and you almost don’t have to work on the Apple laptop itself. (Although you do if you’re futzing around with display stuff, I guess.)

Go forth and hack.