aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/make
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2020-12-02 01:01:45 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-12-02 01:01:45 +0000
commit021ff34c256e1a1eb9de3f80e0d27a5b3477a2e4 (patch)
treedd29325c0158563b8c2fe69a519bc5a0aaa6aa32 /reproduce/software/make
parent1ee1d66e9b2bbcd8d957b7e6854bd930fa53db46 (diff)
Less is now built as a basic software
Less is rarely used in non-interactive mode and is primarily intended for interactively viewing large files. So its need within Maneage (for batch processing) wasn't often felt until now. However, when running './project shell' (which completely closes-off the outside environment), or building a Maneage'd project within a minimal container that doesn't have less, it becomes hard to use Git (and in particular its 'diff' output which depends on 'less'). With this commit, Less has been added as a dependency of Git in 'basic.mk'. In total its built product is roughly 800KB and builds within a second or two. So it isn't a burden on any project. But it can be very useful when the projects are being developed within the Maneage environment itself.
Diffstat (limited to 'reproduce/software/make')
-rw-r--r--reproduce/software/make/basic.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/reproduce/software/make/basic.mk b/reproduce/software/make/basic.mk
index d5484b2..1349122 100644
--- a/reproduce/software/make/basic.mk
+++ b/reproduce/software/make/basic.mk
@@ -947,6 +947,7 @@ $(ibidir)/gettext-$(gettext-version): \
echo "GNU gettext $(gettext-version)" > $@
$(ibidir)/git-$(git-version): \
+ $(ibidir)/less-$(less-version) \
$(ibidir)/curl-$(curl-version) \
$(ibidir)/gettext-$(gettext-version) \
$(ibidir)/libiconv-$(libiconv-version)
@@ -970,6 +971,15 @@ $(ibidir)/gmp-$(gmp-version): \
-j$(numthreads) ,make check)
echo "GNU Multiple Precision Arithmetic Library $(gmp-version)" > $@
+# Less is useful with Git (to view the diffs within a minimal container)
+# and generally to view large files easily when the project is built in a
+# container with a minimal OS.
+$(ibidir)/less-$(less-version): $(ibidir)/patchelf-$(patchelf-version)
+ tarball=less-$(less-version).tar.gz
+ $(call import-source, $(less-url), $(less-checksum))
+ $(call gbuild, less-$(less-version), static,,-j$(numthreads))
+ echo "Less $(less-version)" > $@
+
# On Mac OS, libtool does different things, so to avoid confusion, we'll
# prefix GNU's libtool executables with `glibtool'.
$(ibidir)/libtool-$(libtool-version): $(ibidir)/m4-$(m4-version)