As explained in Thomas Dickey’s answer, the git repository needs preparation before it can be used to build, and one required file can’t be recreated using the provided files.
To build less, download its latest release tarball and build that:
wget http://greenwoodsoftware.com/less/less-530.tar.gz
tar xf less-530.tar.gz
cd less-530
./configure && make
Note however that version 530 has a few annoying bugs which are fixed in the git repository. (This could be why the Debian package hasn’t been updated.)
Alternatively, you can update the Debian package:
sudo apt build-dep less
sudo apt install devscripts
apt source less
cd less-487
uscan
cd ..
tar xf less_530.orig.tar.gz
cd less-530
cp -a ../less-487/debian .
dch -v 530-0.1 "New upstream release."
dch -r ignored
debuild -uc -uc
This will produce a less_530-0.1_yourarch.deb
(where yourarch
is probably amd64
), which you can install using sudo dpkg -i
. As JdeBP points out, this will ensure that the Debian patches are applied, and that the appropriate configure
options are used; it will also give you the benefits of using a package instead of a manual installation.
For gbp
fans like myself, the following recipe uses a git repository which makes any changes more obvious:
sudo apt build-dep less
sudo apt install devscripts git-buildpackage
gbp import-dsc --pristine-tar apt://less/sid
cd less
gbp import-orig --pristine-tar --uscan
dch -v 530-0.1 "New upstream release."
dch -r ignored
gbp buildpackage -us -uc --git-ignore-new
(In both cases, strictly speaking you should use dch -n
and dch -v
, or at least add “Non-maintainer upload.” to the changelog, but that’s harder to do in a copy-pastable way.)
make -f Makefile.aut funcs.h
beforemake
fixes the problem. But I'm not sure if this sequence is correct.