Closed adaaaaaa closed 5 years ago
The same here on Archlinux
@Andy2244
mhh packages and faillogs look fine for the buildbots on 25.07 ?
Did a quick run for the x86_64 target via my package builder and this worked. The base image is based on debian:stretch-slim, my live dev system is based on ClearLinux and also worked.
Not sure what i can do here, this looks like a waf <-> distro problem to me, maybe try with just python 2.7 installed?
Got same error during compile libtalloc.
This should be the issue of changing to python3.
I am using master branch source code compile, 4.9.11 is ok when openwrt build don't switch to python3.
You may check this https://github.com/openwrt/openwrt/commit/19938c8de7a062626796f53a2805608c0dd4edbd
4.9.11 is ok when openwrt build don't switch to python3
I mean what python version is installed for the buildbots/sdk, since this still builds fine. I did not try to build 4.9.x with only python3 installed, since its not officially supported. Only 4.10/11 have python3 support, but those branches have some other major bugs atm and i need to wait for official fixes before i can try a switch again.
PS: Try this to ensure python2 is available:
HOST_BUILD_DEPENDS:=python/host nfs-kernel-server/host e2fsprogs/host
Same here. (Debian Testing)
For Python 3, I will try changing the line
except Utils.WafError,e:
to
except Utils.WafError as e:
and try again to see if other errors occur
ok just confirmed on debian testing, the error is because openwrt did drop the python2 requirement on host for the sdk, so if you don't have python2 installed on host you get this error.
The fix is to ensure we have a valid python2 version for the build step via this makefile change:
HOST_BUILD_DEPENDS:=python/host nfs-kernel-server/host e2fsprogs/host
PS: Will be fixed with the next update.
@Andy2244 This will fix the build issue. It, however, introduces another issue.
Wiresless regdb won't build, because it calls the python binary which is a symlink to python2.7. This is due to the fact that samba4 adds python2 as a dependency.
I fixed it by adding the following to /package/firmware/wireless-regdb/Makefile
:
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
and changed $(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
to $(PYTHON3) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
Mhh thats strange the file uses #!/usr/bin/env python
which is generally assumed to work with python2, while #!/usr/bin/env python3
is used for explicit python3 support. At least thats what i have seen on some python projects.
So given the age of the project i'm surprised it wont build with python2?
I'm sorry. I missed a point in my explanation. I forced wireles-regdb to use python3 since python2 is missing a module called builtins. The error when running build_dir/target-mips_24kc_musl/wireless-regdb-2019.06.03/regulatory.db
is: No module named builtins
.
Yeah i guess thats the fix than, if it only builds with python3 anyway than it has to ensure it actually uses python3 and not rely on whatever symlink exists.
Ic. Who is responsible for fixing this? How should a fix might look like?
Andy Walsh notifications@github.com schrieb am Di., 30. Juli 2019, 22:26:
Yeah i guess thats the fix than, if it only builds with python3 anyway than it has to ensure it actually uses python3 and not rely on whatever symlink exists.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/openwrt/packages/issues/9579?email_source=notifications&email_token=AAIEJETSHYLJ4OITLCY2NQ3QCCPZBA5CNFSM4IHIRBR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3FGWYY#issuecomment-516582243, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIEJEUCS6O5QS6X23VJXTTQCCPZBANCNFSM4IHIRBRQ .
Maintainer is listed as Felix Fietkau nbd@nbd.name @nbd168 is that you? If so can you have a look at this please, regarding wireless-regdb?
@ynezz
This https://github.com/ynezz/openwrt/commit/e523a9d1f4d3391ac8c173c6b5d687bce0c529e7 should make wireless-regdb use proper python(python3), so please try it and let me know if it's ok, thanks.
cant even build my openwrt so its not only samba its everything kinda, libtalloc is also affected
subtarget:X86_64