Created attachment 5810 [details] kos_tom's patch to disable hg and svn build info tags When building the host python, hg or svn is invoked to create build info tags. This can result in a socket hang, blocking compilation from completion. The solution, as determined by kos_tom on #buildroot (THANK YOU), was to disable hg and svn from python's automake.
Here is the quick patch I came up with: diff --git a/package/python/python.mk b/package/python/python.mk index 4a3e71c..5791d4b 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -40,7 +40,9 @@ HOST_PYTHON_CONF_OPTS += \ # This is needed because libpython may be installed at the same time that # python is called. HOST_PYTHON_CONF_ENV += \ - LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" + LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \ + ac_cv_prog_HAS_HG=/bin/false \ + ac_cv_prog_SVNVERSION=/bin/false # Building host python in parallel sometimes triggers a "Bus error" # during the execution of "./python setup.py build" in the @@ -130,7 +132,9 @@ PYTHON_CONF_ENV += \ ac_cv_have_long_long_format=yes \ ac_cv_file__dev_ptmx=yes \ ac_cv_file__dev_ptc=yes \ - ac_cv_working_tzset=yes + ac_cv_working_tzset=yes \ + ac_cv_prog_HAS_HG=/bin/false \ + ac_cv_prog_SVNVERSION=/bin/false PYTHON_CONF_OPTS += \ --without-cxx-main \
I've submitted two patches to fix this: https://patchwork.ozlabs.org/patch/664681/ and https://patchwork.ozlabs.org/patch/664680/.
Fixed by https://git.buildroot.org/buildroot/commit/?id=d0d9ba275a89cf3c71eda822d5ebf30c348ec6c7 and https://git.buildroot.org/buildroot/commit/?id=4f76d86d998e7a13e7bfa32238bcd217fbc96a42.