Compile GnuPG 2.3.4 on FreeBSD
==============================
FreeBSD 14 comes with GnuPG 2.4.3, which results in problems when
using Emacs with GnuPG. These problems concern both the encryption of
files as the encryption of email messages. Decrypting isn't a
problem.
This is a known problem, and the general advise is to install an older
version of GnuPG.
To use Emacs with GnuPG I removed the GnuPG package and related
packages, compiled GnuPG 2.3.4 from source, and installed it using
GNU Stow.
GNU Stow
--------
GNU Stow helps to manage the installation and removal of self compiled
software. Install GNU Stow using the FreeBSD package manager.
pkg install stow
Stow works also great for the management of the dotfiles in your home
directory.
Dependencies
------------
GnuPG requires the installation of several dependencies before
it can be compiled and installed.
To prevent guessing which versions to install, I took the version
numbers as installed on a FreeBSD 13.1 jail and downloaded the
following tar-balls: