bootstrap.conf 2.5 KB

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