New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpsd: build fails as of missing python distutils.sysconfig #10993
Comments
ping @commodo , @RussellSenior |
The error came from the SConstruct file, which means it was run by scons. AFAIK the scons package depends on buildhost Python, not host Python provided by the python package. Your buildhost, it has distutils installed (in /usr/lib/python3.7/distutils) but not the sysconfig.py file (/usr/lib/python3.7/distutils/sysconfig.py)? What distro / OS version are you using? |
I'm running Debian 10.2 with small packageset installed, so "python3-distutils" wasn't installed at all. |
I've set up a minimal Debian 10.2 VM and it has python3.7-minimal, which only has __init__.py and version.py inside /usr/lib/python3.7/distutils. I've tried compiling the gpsd package (using a snapshot sdk), but before it can get to it, the host scons package throws an error:
How did you manage to install host scons without full distutils? |
Probably scons was built once I had "python3-distutils" installed when tracing down the build-error. Not sure if I build all from scratch then ... |
@jefferyto You are right. I started the build from scratch and have now scons failing to build.
|
New patches (both for SConstruct): * Do not import from distutils. Since Python support/modules are not built, there is no need to import from distutils. (Importing from distutils may prevent the package from being built on systems without a full distutils module, e.g. Debian with python3-minimal.) I have added back the import in places where it may be helpful to have, if scons is run manually. Fixes openwrt#10993. * Do not check the size of time_t. The way this is done is to compile and run a test program; this fails when cross-compiling[1]. This doesn't appear to affect any functionality (other than missing a compile-time warning that things will fail in 2038 if time_t is too small). [1]: https://gitlab.com/gpsd/gpsd/issues/48 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
@jefferyto thanks for taking care. |
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com>
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com>
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com> (cherry picked from commit 60af8d7)
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com>
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
Debian and Ubuntu ship a python3-minimal package which does not include the distutils module. This is not supported by upstream and can be considered a broken python distribution. In practice, many scripts depend on said module, and this is a reoccuring pain point for building various OpenWrt packages. Require and check for said module, enough time has been wasted on this. A list of just the most recent issues: openwrt/packages#16304 openwrt/packages#16027 openwrt/packages#15443 openwrt/packages#14394 openwrt/packages#12909 openwrt/packages#12443 openwrt/packages#11035 openwrt/packages#10993 Signed-off-by: Andre Heider <a.heider@gmail.com> (cherry picked from commit af77e67)
Maintainer: @psidhu @p-wassi
Environment: OpenWrt master (around 1.1.2020); mvebu-cortexa9
Description: building gpsd fails with a missing dependency to python module distutils.sysconfig
Installing the python-module via the hosts apt-get fixes the build, but this seems not the way to go.
The text was updated successfully, but these errors were encountered: