mirror of
https://github.com/immortalwrt/immortalwrt.git
synced 2025-08-14 14:19:53 +08:00

The bootstrap configuration is set to require gettext and gperf for regenerating documentation and headers. However, these steps are skipped in favor of not building documentation and using existing headers. Signed-off-by: Michael Pratt <mcpratt@pm.me> Link: https://github.com/openwrt/openwrt/pull/16522 Signed-off-by: Robert Marko <robimarko@gmail.com>
60 lines
1.5 KiB
Diff
60 lines
1.5 KiB
Diff
--- a/bootstrap
|
|
+++ b/bootstrap
|
|
@@ -244,7 +244,7 @@ check_exists() {
|
|
($2 --version </dev/null)
|
|
fi
|
|
else
|
|
- ($1 --version </dev/null) >/dev/null 2>&1
|
|
+ ($@ --version </dev/null) >/dev/null 2>&1
|
|
fi
|
|
|
|
test $? -lt 126
|
|
@@ -309,7 +309,7 @@ p
|
|
q'
|
|
|
|
get_version() {
|
|
- app=$1
|
|
+ app="$@"
|
|
|
|
$app --version >/dev/null 2>&1 || { $app --version; return 1; }
|
|
|
|
@@ -366,13 +366,13 @@ check_versions() {
|
|
if [ "$req_ver" = "-" ]; then
|
|
# Merely require app to exist; not all prereq apps are well-behaved
|
|
# so we have to rely on $? rather than get_version.
|
|
- if ! check_exists --verbose $app; then
|
|
+ if ! check_exists --verbose "$app"; then
|
|
warn_ "Error: '$app' not found"
|
|
ret=1
|
|
fi
|
|
else
|
|
# Require app to produce a new enough version string.
|
|
- inst_ver=$(get_version $app)
|
|
+ inst_ver=$(get_version "$app")
|
|
if [ ! "$inst_ver" ]; then
|
|
warn_ "Error: '$app' not found"
|
|
ret=1
|
|
@@ -1157,7 +1157,7 @@ autogen()
|
|
# two just-pre-run programs.
|
|
|
|
# Import from gettext.
|
|
- with_gettext=yes
|
|
+ with_gettext=no
|
|
grep '^[ ]*AM_GNU_GETTEXT_VERSION(' configure.ac >/dev/null || \
|
|
with_gettext=no
|
|
|
|
--- a/bootstrap.conf
|
|
+++ b/bootstrap.conf
|
|
@@ -349,11 +349,8 @@ gnulib_tool_option_extras="--tests-base=
|
|
buildreq="\
|
|
autoconf 2.64
|
|
automake 1.11.2
|
|
-autopoint 0.19.2
|
|
bison -
|
|
-gettext 0.19.2
|
|
git 1.4.4
|
|
-gperf -
|
|
gzip -
|
|
m4 -
|
|
makeinfo 6.1
|