]>
Commit | Line | Data |
---|---|---|
35b90906 CW |
1 | # Bootstrap configuration. |
2 | ||
3 | # Copyright (C) 2006-2019 Free Software Foundation, Inc. | |
4 | ||
5 | # This program is free software: you can redistribute it and/or modify | |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 3 of the License, or | |
8 | # (at your option) any later version. | |
9 | ||
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | ||
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |
17 | ||
18 | ||
19 | GNULIB_REVISION=d271f868a8df9bbec29049d01e056481b7a1a263 | |
20 | ||
21 | # gnulib modules used by this package. | |
22 | # mbswidth is used by gnulib-fix-width.diff's changes to argp rather than | |
23 | # directly. | |
24 | gnulib_modules=" | |
25 | argp | |
9fbdec2f | 26 | base64 |
35b90906 CW |
27 | error |
28 | fnmatch | |
29 | getdelim | |
30 | getline | |
31 | gettext-h | |
32 | gitlog-to-changelog | |
33 | mbswidth | |
34 | progname | |
35 | realloc-gnu | |
36 | regex | |
5dfa0afa | 37 | save-cwd |
35b90906 CW |
38 | " |
39 | ||
40 | gnulib_tool_option_extras="\ | |
41 | --no-conditional-dependencies \ | |
42 | --no-vc-files \ | |
43 | " | |
44 | ||
45 | gnulib_name=libgnu | |
46 | source_base=grub-core/lib/gnulib | |
47 | gnulib_extra_files=" | |
48 | build-aux/install-sh | |
49 | build-aux/mdate-sh | |
50 | build-aux/texinfo.tex | |
51 | build-aux/depcomp | |
52 | build-aux/config.guess | |
53 | build-aux/config.sub | |
54 | " | |
55 | ||
56 | # Additional xgettext options to use. Use "\\\newline" to break lines. | |
57 | XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\ | |
58 | --from-code=UTF-8\\\ | |
59 | ' | |
60 | ||
61 | checkout_only_file= | |
62 | copy=true | |
63 | vc_ignore= | |
64 | ||
65 | SKIP_PO=t | |
66 | ||
67 | # Build prerequisites | |
68 | buildreq="\ | |
69 | autoconf 2.63 | |
70 | automake 1.11 | |
71 | gettext 0.18.3 | |
72 | git 1.5.5 | |
73 | tar - | |
74 | " | |
75 | ||
76 | # bootstrap doesn't give us a reasonable way to stop Automake from | |
77 | # overwriting this, so we just copy our version aside and put it back later. | |
78 | cp -a INSTALL INSTALL.grub | |
79 | ||
80 | bootstrap_post_import_hook () { | |
81 | set -e | |
9fbdec2f | 82 | for patchname in fix-base64 fix-null-deref fix-width no-abort; do |
35b90906 CW |
83 | patch -d grub-core/lib/gnulib -p2 \ |
84 | < "grub-core/lib/gnulib-patches/$patchname.patch" | |
85 | done | |
ac116bd6 CW |
86 | for patchname in \ |
87 | 0001-Support-POTFILES-shell \ | |
88 | 0002-Handle-gettext_printf-shell-function \ | |
89 | 0003-Make-msgfmt-output-in-little-endian \ | |
90 | 0004-Use-SHELL-rather-than-bin-sh; do | |
91 | patch -d po -p3 \ | |
92 | < "po/gettext-patches/$patchname.patch" | |
93 | done | |
35b90906 CW |
94 | FROM_BOOTSTRAP=1 ./autogen.sh |
95 | set +e # bootstrap expects this | |
96 | } | |
97 | ||
98 | bootstrap_epilogue () { | |
99 | mv INSTALL.grub INSTALL | |
100 | } |