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