Nir Soffer
2023-Apr-17 16:44 UTC
[Libguestfs] [PATCH libnbd v2] README: Document additional packages
When building from git we need autoconf, automake and libtool. Signed-off-by: Nir Soffer <nsoffer at redhat.com> --- Changes sinve v1: - Remove `,` between package namses (Laszlo) README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c7166613..7eed0e31 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,17 @@ ## License very liberal license. ## Building from source +Building from source requires additional packages. On rpm based system +use: + +``` +dnf install autoconf automake libtool +``` + To build from git: ``` autoreconf -i ./configure -- 2.39.2
Laszlo Ersek
2023-Apr-17 17:29 UTC
[Libguestfs] [PATCH libnbd v2] README: Document additional packages
On 4/17/23 18:44, Nir Soffer wrote:> When building from git we need autoconf, automake and libtool. > > Signed-off-by: Nir Soffer <nsoffer at redhat.com> > --- > > Changes sinve v1: > - Remove `,` between package namses (Laszlo) > > README.md | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/README.md b/README.md > index c7166613..7eed0e31 100644 > --- a/README.md > +++ b/README.md > @@ -32,10 +32,17 @@ ## License > very liberal license. > > > ## Building from source > > +Building from source requires additional packages. On rpm based system > +use: > + > +``` > +dnf install autoconf automake libtool > +``` > + > To build from git: > > ``` > autoreconf -i > ./configureSorry, I'm looking at the existent context in README.md more closely only now. I see sections such as: [1] "Requirements:" and [2] "Required for building from git, optional for building from tarballs:" I *think* autoconf is only needed for the "autoreconf" step, which is specific to building from git; it is presumably not needed for building from a tarball. I believe the same applies to automake. I've checked latest tarball <https://download.libguestfs.org/libnbd/1.15-development/libnbd-1.15.13.tar.gz>; it contains both "Makefile.am" files and "Makefile.in" files. According to the comments in the "Makefile.in" files, automake generates Makefile.in from Makefile.am, and "Makefile.in" is the input file for ./configure. So I think at least in theory we could technically drop the "Makefile.am" files from the tarball. Either way, automake should only be necessary when building from a git checkout, not when building from a tarball. I guess (?) libtool is required in both cases though. I'm not familiar with autotools internals, so I can't say anything definitive here; I guess I'd propose putting autoconf and automake under [2], and libtool under [1]. Rich, Eric? Again, sorry that I didn't think this through under v1 already. Laszlo
Richard W.M. Jones
2023-Apr-17 21:41 UTC
[Libguestfs] [PATCH libnbd v2] README: Document additional packages
On Mon, Apr 17, 2023 at 07:44:31PM +0300, Nir Soffer wrote:> When building from git we need autoconf, automake and libtool. > > Signed-off-by: Nir Soffer <nsoffer at redhat.com> > --- > > Changes sinve v1: > - Remove `,` between package namses (Laszlo) > > README.md | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/README.md b/README.md > index c7166613..7eed0e31 100644 > --- a/README.md > +++ b/README.md > @@ -32,10 +32,17 @@ ## License > very liberal license. > > > ## Building from source > > +Building from source requires additional packages. On rpm based system > +use: > + > +``` > +dnf install autoconf automake libtool > +``` > + > To build from git:No, if we're going to add something (which we probably should) then we should also describe how to use 'dnf builddep' or the equivalent apt command. The command above seems to suggest that you'd only need to run that 'dnf install ...' which is wrong. I can add something to the README later if you put a note in TODO. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Apparently Analagous Threads
- [PATCH libnbd v2] README: Document additional packages
- [PATCH libnbd] README: Document additional packages
- [PATCH libnbd] README: Document additional packages
- [libnbd PATCH] golang: Bump minimum Go version to 1.17
- Re: How to build virt-v2v after the project was separated