e153146
# Bootstrap configuration.
e153146
e153146
# Copyright (C) 2006-2019 Free Software Foundation, Inc.
e153146
e153146
# This program is free software: you can redistribute it and/or modify
e153146
# it under the terms of the GNU General Public License as published by
e153146
# the Free Software Foundation; either version 3 of the License, or
e153146
# (at your option) any later version.
e153146
e153146
# This program is distributed in the hope that it will be useful,
e153146
# but WITHOUT ANY WARRANTY; without even the implied warranty of
e153146
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e153146
# GNU General Public License for more details.
e153146
e153146
# You should have received a copy of the GNU General Public License
e153146
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
e153146
e153146
e153146
GNULIB_REVISION=d271f868a8df9bbec29049d01e056481b7a1a263
e153146
e153146
# gnulib modules used by this package.
e153146
# mbswidth is used by gnulib-fix-width.diff's changes to argp rather than
e153146
# directly.
e153146
gnulib_modules="
e153146
  argp
46968b6
  base64
e153146
  error
e153146
  fnmatch
e153146
  getdelim
e153146
  getline
e153146
  gettext-h
e153146
  gitlog-to-changelog
e153146
  mbswidth
e153146
  progname
e153146
  realloc-gnu
e153146
  regex
e153146
  save-cwd
e153146
"
e153146
e153146
gnulib_tool_option_extras="\
e153146
  --no-conditional-dependencies \
e153146
  --no-vc-files \
e153146
"
e153146
e153146
gnulib_name=libgnu
e153146
source_base=grub-core/lib/gnulib
e153146
gnulib_extra_files="
e153146
  build-aux/install-sh
e153146
  build-aux/mdate-sh
e153146
  build-aux/texinfo.tex
e153146
  build-aux/depcomp
e153146
  build-aux/config.guess
e153146
  build-aux/config.sub
e153146
"
e153146
e153146
# Additional xgettext options to use.  Use "\\\newline" to break lines.
e153146
XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
e153146
 --from-code=UTF-8\\\
e153146
'
e153146
e153146
checkout_only_file=
e153146
copy=true
e153146
vc_ignore=
e153146
e153146
SKIP_PO=t
e153146
e153146
# Build prerequisites
e153146
buildreq="\
e153146
autoconf   2.63
e153146
automake   1.11
e153146
gettext    0.18.3
e153146
git        1.5.5
e153146
tar        -
e153146
"
e153146
e153146
# bootstrap doesn't give us a reasonable way to stop Automake from
e153146
# overwriting this, so we just copy our version aside and put it back later.
e153146
cp -a INSTALL INSTALL.grub
e153146
e153146
bootstrap_post_import_hook () {
e153146
  set -e
46968b6
  for patchname in fix-base64 fix-null-deref fix-null-state-deref fix-regcomp-uninit-token \
46968b6
      fix-regexec-null-deref fix-uninit-structure fix-unused-value fix-width no-abort; do
e153146
    patch -d grub-core/lib/gnulib -p2 \
e153146
      < "grub-core/lib/gnulib-patches/$patchname.patch"
e153146
  done
46968b6
  for patchname in \
46968b6
      0001-Support-POTFILES-shell \
46968b6
      0002-Handle-gettext_printf-shell-function \
46968b6
      0003-Make-msgfmt-output-in-little-endian \
46968b6
      0004-Use-SHELL-rather-than-bin-sh; do
46968b6
    patch -d po -p3 \
46968b6
      < "po/gettext-patches/$patchname.patch"
46968b6
  done
e153146
  FROM_BOOTSTRAP=1 ./autogen.sh
e153146
  set +e  # bootstrap expects this
e153146
}
e153146
e153146
bootstrap_epilogue () {
e153146
  mv INSTALL.grub INSTALL
e153146
}