aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Sosedkin <monk@unboiled.info>2021-11-27 23:02:04 +0100
committerAlexander Sosedkin <monk@unboiled.info>2021-11-27 23:11:11 +0100
commit33a227503adfaa570174c48d8c893f968ed8337f (patch)
treec1522eb68ab176d80070a1725b1c70d25539de86
parent55275fcc5966cfad80fb6dc77b8d8939a2f1b8e0 (diff)
Document libsodium, which is now mandatory, as a dependency
-rw-r--r--configure.ac2
-rw-r--r--doc/manual/src/installation/prerequisites-source.md5
-rw-r--r--perl/configure.ac2
3 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 65478ecc5..bca650005 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,7 +188,7 @@ PKG_CHECK_MODULES([EDITLINE], [libeditline], [CXXFLAGS="$EDITLINE_CFLAGS $CXXFLA
[AC_MSG_ERROR([Nix requires libeditline; it was not found via pkg-config, but via its header, but required functions do not work. Maybe it is too old? >= 1.14 is required.])])
])
-# Look for libsodium, an optional dependency.
+# Look for libsodium.
PKG_CHECK_MODULES([SODIUM], [libsodium], [CXXFLAGS="$SODIUM_CFLAGS $CXXFLAGS"])
# Look for libbrotli{enc,dec}.
diff --git a/doc/manual/src/installation/prerequisites-source.md b/doc/manual/src/installation/prerequisites-source.md
index 0323a4f55..b3753b53b 100644
--- a/doc/manual/src/installation/prerequisites-source.md
+++ b/doc/manual/src/installation/prerequisites-source.md
@@ -44,6 +44,11 @@
obtained from the its repository
<https://github.com/troglobit/editline>.
+ - The `libsodium` library for verifying cryptographic signatures
+ of contents fetched from binary caches.
+ It can be obtained from the official web site
+ <https://libsodium.org>.
+
- Recent versions of Bison and Flex to build the parser. (This is
because Nix needs GLR support in Bison and reentrancy support in
Flex.) For Bison, you need version 2.6, which can be obtained from
diff --git a/perl/configure.ac b/perl/configure.ac
index eb65ac17b..a02cb06c9 100644
--- a/perl/configure.ac
+++ b/perl/configure.ac
@@ -41,7 +41,7 @@ perlarchname=$($perl -e 'use Config; print $Config{archname};')
AC_SUBST(perllibdir, [${libdir}/perl5/site_perl/$perlversion/$perlarchname])
AC_MSG_RESULT($perllibdir)
-# Look for libsodium, an optional dependency.
+# Look for libsodium.
PKG_CHECK_MODULES([SODIUM], [libsodium], [CXXFLAGS="$SODIUM_CFLAGS $CXXFLAGS"])
# Check for the required Perl dependencies (DBI and DBD::SQLite).