checking for major... yes
checking for getaddrinfo... yes
checking getaddrinfo bug... yes
Fatal: You must get working getaddrinfo() function.
???????????? or you can specify "--disable-ipv6".
Due to previous errors, no 1-python.log file!
(Try enabling xtrace in the config to track an error inside the build
system.)
--- BUILD ERROR ---
Creating file list and doing final adaptions ...
Searching for orphaned files ...
Found 7 files for this package.
Found 2 orphaned files for this package.
Clear (old) md5sums ...
Creating md5sum files ... done.
Creating package description ...
I saw that var_append configcache ' ' "ac_cv_buggy_getaddrinfo=no"
was set for cross, but that was not enough now, there was a
--disable-ipv6 that was commented out, but I saw someone else on the web
mention that if you say "enable" it, it will skip the test, and succeed.
so that is what I went with.
Patch attached, but there are previous python fixes in there too, not
sure if they are still needed.
I will review & clean up this later, on the weekend. included now for
reference.
Jan
Jan
Index: package/python/python/python.conf
===================================================================
--- package/python/python/python.conf (revision 49417)
+++ package/python/python/python.conf (working copy)
@@ -27,8 +27,9 @@
var_append confopt " " "--enable-shared --with-threads"
var_append makeinstopt " " "-j1"
-# atstage cross && var_append confopt " " " --disable-ipv6"
+# sed can't find Modules/Setup.dist, amd the build fails
+# so we will skip calling this
python_modules() {
if pkginstalled gdbm; then
sed -i 's:#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib:gdbm gdbmmodule.c -I/usr/include -L/usr/lib:' Modules/Setup.dist
@@ -49,7 +50,8 @@
sed -i 's:#zlib:zlib:' Modules/Setup.dist
fi
}
-atstage toolchain || hook_add preconf 5 "python_modules"
+# FAILED. skip.
+#atstage toolchain || hook_add preconf 5 "python_modules"
# We can savely ignore this dependencies.
var_append flistrfilter "|" ".*: /usr/lib.*/python.*/site-packages/.*"
@@ -56,7 +58,7 @@
# hardcoded paths
fix_python_libdir() {
- sed -i "s,/lib\([[:blank:]]\),/${libdir##*/}\1,g" Modules/Setup.dist
+ #sed -i "s,/lib\([[:blank:]]\),/${libdir##*/}\1,g" Modules/Setup.dist
ln -svnf ../lib/python${ver:0:3} $root/$libdir/python${ver:0:3}
}
[[ $libdir = *lib ]] || hook_add preconf 9 "fix_python_libdir"
@@ -65,9 +67,18 @@
if atstage toolchain; then
export LDFLAGS="-Wl,-rpath,${root}${libdir}"
#hook_add postmake 5 'cp Parser/pgen $root$bindir/python-pgen'
+
+ # env/python fails without this, and other builds that call this will fail.
+ hook_add postmake 5 'ln -s $root$bindir/python3 $root$bindir/python'
fi
# cross-compiling
+#
+#Fatal: You must get working getaddrinfo() function.
+#or you can specify "--disable-ipv6".
+#atstage cross && var_append confopt " " " --disable-ipv6"
+# It also works if you explicitly say enable it too:
+atstage cross && var_append confopt " " " --enable-ipv6"
if atstage cross; then
var_append configcache ' ' "ac_cv_buggy_getaddrinfo=no"
var_append configcache ' ' "ac_cv_file__dev_ptmx=yes"
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2