UPDATE: I’ve needed this exact version of jpeg on other machines as well. Looks like emacs is requiring an older package (v6) that gets removed when the newer package (v8) is installed. Follow the instructions below to get the old version, which fixes emacs et al.
Somehow all of a sudden I’m missing the 64-bit libjpeg.so.62 library. Had to emerge this:
emerge =media-libs/jpeg-6b-r9 -av
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] media-libs/jpeg-6b-r9 [7] 4 kB
Without it, emacs was unhappy, and broken emacs was causing a ton of other emerges to fail, for example git, with this error:
* Compiling GNU Emacs Elisp files ...
/usr/bin/emacs: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory