Re: [PATCH] bootstrap: Run linguas.sh in bootstrap epilogue

Mike Gilbert <[email protected]>
Newsgroups org.gnu.grub-devel
Message-ID <CAJ0EP42h01T6GeK5wchaRJQ5A5oFQ0DnCzFnNjMfrCnZmyoFJw@mail.gmail.com>
On Sun, Nov 9, 2025 at 10:08 PM Glenn Washburn
<[email protected]> wrote:
>
> Daniel,
>
> These patches were not meant to be threaded. Let me know if you'd like
> me to resend them so they are not threaded.
>
> Glenn
>
> On Sun,  9 Nov 2025 21:04:46 -0600
> Glenn Washburn <[email protected]> wrote:
>
> > Heretofore, linguas.sh had to be run by the user and a common mistake
> > made when building GRUB was to not run the command. By adding it to
> > the bootstrap epilogue it will get run at the end of the bootstrap
> > script. The user no longer needs to remember to run it.
> >
> > Update INSTALL file to reflect that it is no longer necessary to run
> > linguas.sh. Also, fix a list numbering error.
> >
> > Fixes: 9f73ebd49be (* INSTALL: Document linguas.sh.)
> > Signed-off-by: Glenn Washburn <[email protected]>
> > ---
> >  INSTALL        | 17 +++++++----------
> >  bootstrap.conf |  4 ++++
> >  2 files changed, 11 insertions(+), 10 deletions(-)
> >
> > diff --git a/INSTALL b/INSTALL
> > index 724584c575e2..2b40cc59227b 100644
> > --- a/INSTALL
> > +++ b/INSTALL
> > @@ -136,15 +136,12 @@ The simplest way to compile this package is:
> >
> >    1. `cd' to the directory containing the package's source code.
> >
> > -  2. Skip this and following step if you use release tarball and proceed to
> > -     step 4. If you want translations type `./linguas.sh'.
> > -
> > -  3. Type `./bootstrap'.
> > +  2. Type `./bootstrap'.
> >
> >       The autogen.sh (called by bootstrap) uses python. By default autodetect
> >       it, but it can be overridden by setting the PYTHON variable.
> >
> > -  4. Type `./configure' to configure the package for your system.
> > +  3. Type `./configure' to configure the package for your system.
> >       If you're using `csh' on an old version of System V, you might
> >       need to type `sh ./configure' instead to prevent `csh' from trying
> >       to execute `configure' itself.
> > @@ -152,19 +149,19 @@ The simplest way to compile this package is:
> >       Running `configure' takes awhile.  While running, it prints some
> >       messages telling which features it is checking for.
> >
> > -  6. Type `make' to compile the package.
> > +  4. Type `make' to compile the package.
> >
> > -  7. Optionally, type `make check' to run any self-tests that come with
> > +  5. Optionally, type `make check' to run any self-tests that come with
> >       the package. Note that many of the tests require root privileges in
> >       order to run.
> >
> > -  8. Type `make install' to install the programs and any data files and
> > +  6. Type `make install' to install the programs and any data files and
> >       documentation.
> >
> > -  9. Type `make html' or `make pdf' to generate the html or pdf
> > +  7. Type `make html' or `make pdf' to generate the html or pdf
> >       documentation.  Note, these are not built by default.
> >
> > - 10. You can remove the program binaries and object files from the
> > +  8. You can remove the program binaries and object files from the
> >       source code directory by typing `make clean'.  To also remove the
> >       files that `configure' created (so you can compile the package for
> >       a different kind of computer), type `make distclean'.  There is
> > diff --git a/bootstrap.conf b/bootstrap.conf
> > index 7a7813d28254..c85905d35c20 100644
> > --- a/bootstrap.conf
> > +++ b/bootstrap.conf
> > @@ -100,4 +100,8 @@ bootstrap_post_import_hook () {
> >
> >  bootstrap_epilogue () {
> >    mv INSTALL.grub INSTALL
> > +
> > +  # Update translation files and create LINGUAS file used to determine
> > +  # the set of languages used to translate.
> > +  ./linguas.sh
> >  }

Could you add some way to disable calling linguas.sh, or some way to
disable the rsync call?

In the grub-9999 package for Gentoo Linux, we call bootstrap in a
context which does not permit network access. We pre-fetch gnulib in
an earlier phase of the build process.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.