Re: Bootstrapping and autotools

2024-04-19 Thread Richard Purdie
On Fri, 2024-04-19 at 00:11 +0200, kpcyrd wrote:
> does somebody know what the bootstrapping status of autotools is?
> 
> Also, is something considered "bootstrapped from source" if the build
> is making use of a pre-generated `./configure` script that is 25k
> lines long?
> 
> In my opinion something is only "bootstrapped from source" if
> autoreconf is used as part of the build instead of executing some
> pre-compiled `./configure` script. This however means that, to
> compile bash, one needs to compile autotools first.

FWIW Yocto Project/OpenEmbedded autoreconf pretty much everything we
can. We bootstrap our own autoconf/automake native tools too. To do
that you effectively need m4, perl and gnu-config and we assume perl
from the host system.

Cheers,

Richard


Re: Bootstrapping and autotools

2024-04-18 Thread Andrius Štikonas via rb-general
2024 m. balandžio 18 d., ketvirtadienis 23:18:53 BST Andrius Štikonas via rb-
general rašė:
> 2024 m. balandžio 18 d., ketvirtadienis 23:11:41 BST kpcyrd rašė:
> > hello,
> > 
> > does somebody know what the bootstrapping status of autotools is?
> 
> It can be done. See https://github.com/fosslinux/live-bootstrap/blob/master/
> parts.rst
> 
> > Also, is something considered "bootstrapped from source" if the build is
> > making use of a pre-generated `./configure` script that is 25k lines long?
> 
> Yes, I agree and that's what live-bootstrap does.

Sorry, this ended up confusing. I wanted to say that live-bootstrap reuilds 
all pre-generated files (at least as far as we are aware): autotools scripts, 
bison/flex files, pregenerated header files, etc...

> 
> > In my opinion something is only "bootstrapped from source" if autoreconf
> > is used as part of the build instead of executing some pre-compiled
> > `./configure` script. This however means that, to compile bash, one
> > needs to compile autotools first.
> 
> No, that doesn't mean that you need to compile autotools first. There are
> other options, e.g. you can hand-write makefile.
> 
> Also note that we recently learned that autoreconf -f is not guaranteed to
> rebuild all pre-generated files.
> 
> Andrius
> 
> > curious,
> > kpcyrd






Re: Bootstrapping and autotools

2024-04-18 Thread Andrius Štikonas via rb-general
2024 m. balandžio 18 d., ketvirtadienis 23:11:41 BST kpcyrd rašė:
> hello,
> 
> does somebody know what the bootstrapping status of autotools is?

It can be done. See https://github.com/fosslinux/live-bootstrap/blob/master/
parts.rst

> 
> Also, is something considered "bootstrapped from source" if the build is
> making use of a pre-generated `./configure` script that is 25k lines long?
> 

Yes, I agree and that's what live-bootstrap does.

> In my opinion something is only "bootstrapped from source" if autoreconf
> is used as part of the build instead of executing some pre-compiled
> `./configure` script. This however means that, to compile bash, one
> needs to compile autotools first.

No, that doesn't mean that you need to compile autotools first. There are other 
options, e.g. you can hand-write makefile.

Also note that we recently learned that autoreconf -f is not guaranteed to 
rebuild all pre-generated files.

Andrius

> 
> curious,
> kpcyrd






Bootstrapping and autotools

2024-04-18 Thread kpcyrd

hello,

does somebody know what the bootstrapping status of autotools is?

Also, is something considered "bootstrapped from source" if the build is 
making use of a pre-generated `./configure` script that is 25k lines long?


In my opinion something is only "bootstrapped from source" if autoreconf 
is used as part of the build instead of executing some pre-compiled 
`./configure` script. This however means that, to compile bash, one 
needs to compile autotools first.


curious,
kpcyrd