openwrt Ошибка проверки обязательных компонентов при обновлении до python3 - PullRequest
0 голосов
/ 10 марта 2020

Я пытаюсь обновить python с версии 2.7 до 3.6 в моем проекте openwrt. Я изменил папку prereq-build.mk соответственно. Но, столкнувшись с ошибкой зависимости сборки. Должен ли я позаботиться о чем-то еще, кроме следующих изменений?

Ошибка:

Checking 'md5sum'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'wget'... ok.
Checking 'perl'... ok.
Checking 'python'... failed.
Checking 'python3'... failed.
Checking 'svn'... ok.
Checking 'git'... ok.
Checking 'file'... ok.
Checking 'openssl'... ok.
Checking 'ldconfig-stub'... ok.

Build dependency: Please install Python >= 3.6
Build dependency: Please install Python >= 3.6

Prerequisite check failed. Use FORCE=1 to override.
make-3.81[1]: *** [staging_dir/host/.prereq-build] Error 1

Изменения:

diff --git a/include/prereq-build.mkb/include/prereq-build.mk index 1c872d55..47fb692d 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk @@ -136,10 +136,19 @@ $(eval $(call SetupHostCommand,wget,Please install GNU 'wget', \ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \ perl --version | grep "perl.*v5"))
-$(eval $(call SetupHostCommand,python,Please install Python 2.x, \
- python2.7 -V 2>&1 | grep Python, \
- python2 -V 2>&1 | grep Python, \
- python -V 2>&1 | grep Python))
+$(eval $(call SetupHostCommand,python,Please install Python >= 3.6, \
+ python3.8 -V 2>&1 | grep 'Python 3', \
+ python3.7 -V 2>&1 | grep 'Python 3', \
+ python3.6 -V 2>&1 | grep 'Python 3', \
+ python3 -V 2>&1 | grep -E 'Python 3\.[6-8]\.?'))
+
+$(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
+ python3.8 -V 2>&1 | grep 'Python 3', \
+ python3.7 -V 2>&1 | grep 'Python 3', \
+ python3.6 -V 2>&1 | grep 'Python 3', \
+ python3 -V 2>&1 | grep -E 'Python 3\.[6-8]\.?'))

Я что-то упустил? Или я должен добавить другие изменения в обновление?

Заранее спасибо!

...