* [libgpiod][PATCH] doc: clarify the differences between building from git and tarballs
@ 2025-03-11 14:01 Bartosz Golaszewski
2025-03-13 8:22 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2025-03-11 14:01 UTC (permalink / raw)
To: Vincent Fazio, Kent Gibson, Linus Walleij; +Cc: linux-gpio, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Several users reported having trouble understanding the "building"
section of the docs and being confused on whether they should use
autogen.sh or configure. Clarify these bits in the docs.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
docs/building.rst | 46 +++++++++++++++++++++++++++++++++-------------
1 file changed, 33 insertions(+), 13 deletions(-)
diff --git a/docs/building.rst b/docs/building.rst
index 958c6fb..aae07d4 100644
--- a/docs/building.rst
+++ b/docs/building.rst
@@ -21,8 +21,21 @@ together with
Building
--------
-This is a pretty standard autotools project. The core C library does not have
-any external dependencies other than the standard C library with GNU extensions.
+The core C library does not have any external dependencies other than the
+standard C library with GNU extensions.
+
+The project is built using GNU autotools. In the general case, the steps needed
+to download a source tarball, unpack it, build the library together with the
+command-line tools and install the resulting binaries are as follows:
+
+.. code-block:: none
+
+ wget https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/libgpiod-x.y.z.tar.xz
+ tar -xvf ./libgpiod-x.y.z.tar.xz
+ cd ./libgpiod-x.y.z/
+ ./configure --enable-tools
+ make
+ sudo make install
The build system requires the following packages to be installed on the host
system for the basic build:
@@ -37,23 +50,30 @@ system for the basic build:
selected options. The configure script will report any missing additional
required dependencies.
-To build the project (including command-line utilities) run:
-
-.. code-block:: none
-
- ./autogen.sh --enable-tools=yes
- make
-
.. note::
The command-line tools optionally depend on libedit for the interactive
feature.
-The autogen script will execute ``./configure`` and pass all the command-line
-arguments to it.
+The project can also be built directly from the git repository. However in this
+case the configure script does not exist and must be created first - either by
+calling ``autoreconf``:
+
+.. code-block:: none
+
+ autoreconf -ifv
+ ./configure --enable-tools
+ make
+
+Or by executing the provided ``autogen.sh`` script directly from the git tree:
+
+.. code-block:: none
+
+ ./autogen.sh --enable-tools
+ make
.. note::
- If building from release tarballs, the configure script is already provided
- and there's no need to invoke autogen.sh.
+ The autogen script will execute ``./configure`` and pass all the
+ command-line arguments to it.
For all configure features, see: ``./configure --help``.
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [libgpiod][PATCH] doc: clarify the differences between building from git and tarballs
2025-03-11 14:01 [libgpiod][PATCH] doc: clarify the differences between building from git and tarballs Bartosz Golaszewski
@ 2025-03-13 8:22 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2025-03-13 8:22 UTC (permalink / raw)
To: Vincent Fazio, Kent Gibson, Linus Walleij, Bartosz Golaszewski
Cc: Bartosz Golaszewski, linux-gpio
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Tue, 11 Mar 2025 15:01:47 +0100, Bartosz Golaszewski wrote:
> Several users reported having trouble understanding the "building"
> section of the docs and being confused on whether they should use
> autogen.sh or configure. Clarify these bits in the docs.
>
>
Applied, thanks!
[1/1] doc: clarify the differences between building from git and tarballs
commit: 2cd1efbc5783f5daa47598c76bede5ea7e47993f
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-13 8:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 14:01 [libgpiod][PATCH] doc: clarify the differences between building from git and tarballs Bartosz Golaszewski
2025-03-13 8:22 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).