commit b301d0f93488aa36c5e8aaf74afe2804927f260b
parent 8b59314d4ee60d9e2c04ef563b9a9c3f11d0800c
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Sat, 15 Feb 2025 15:01:11 +0100
switch to meson
Diffstat:
3 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/developers/style.rst b/developers/style.rst
@@ -575,7 +575,7 @@ nightly tarball build trigger).
.. code-block:: console
- $ ./bootstrap && make dist
+ $ ./bootstrap && meson setup build && meson dist -C build --formats gztar
**(7)** Test the created tarballs.
For the autotools tarball:
diff --git a/installing.rst b/installing.rst
@@ -26,8 +26,7 @@ should be installed with a package manager.
The mandatory libraries and applications are
-- autoconf 2.59 or above (when building from git)
-- automake 1.11.1 or above (when building from git)
+- meson 1.0 or above
- recutils 1.0 or above (when building from git)
- gettext
- glibc (read below, other libcs work)
@@ -125,7 +124,7 @@ Using git type
::
- $ git clone https://git.gnunet.org/gnunet.git
+ $ git clone git://git.gnunet.org/gnunet.git
The release archive can be found at https://ftpmirror.gnu.org/gnu/gnunet/.
You can find nightly builds at https://buildbot.gnunet.org/artifacts/.
@@ -180,29 +179,29 @@ Preparing and Compiling the Source Code
For preparing the source code for compilation a bootstrap script and
configure has to be run from the source code directory. When running
-configure, options can be specified to customize the compilation and
+`meson setup`, options can be specified to customize the compilation and
installation process. For details execute:
::
- $ ./configure --help
+ $ meson setup --help
-The following example configures the installation prefix /usr/local and
-disables building the documentation
+The following example configures the installation prefix `/usr/local`
+and creates the out-of-tree build folder `build`.
::
$ cd ~/gnunet
$ ./bootstrap
- $ ./configure --prefix=/usr/local --disable-documentation
+ $ meson setup -Dprefix=/usr/local build
-After running the bootstrap script and configure successfully the source
+After running the bootstrap script and setup successfully the source
code can be compiled and the compiled binaries can be installed using:
::
- $ make
- $ make install
+ $ meson compile -C build
+ $ meson install -C build
The latter command may need to be run as root (or with sudo) because
some binaries need the suid bit set. Without that some features
diff --git a/users/configuration.rst b/users/configuration.rst
@@ -731,8 +731,8 @@ level ``ERROR`` only serious errors are logged. The default log level is
``WARNING`` which causes anything of concern to be logged. Log level
``INFO`` can be used to log anything that might be interesting
information whereas ``DEBUG`` can be used by developers to log debugging
-messages (but you need to run ``./configure`` with
-``--enable-logging=verbose`` to get them compiled). The ``-l`` option is
+messages (but you need to run ``meson setup`` with
+``-Dlogging=verbose`` to get them compiled). The ``-l`` option is
used to specify the log file.
Since most GNUnet services are managed by ``gnunet-arm``, using the