glib2: is not a valid python or it is missing distutils
Open
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
running on arch linux, latest openwrt / packages snapshot.
but i must say it compiles on debian 11 without problems.
so whats the problem on arch?
docmax@zeus: /mnt/zeus/hdd/sources/openwrt/sources/snapshot $ ./scripts/getver.sh
r21757+13-895f38ca1e
Dependency mount skipped: feature libmount disabled
Dependency libselinux skipped: feature selinux disabled
Checking for function "getxattr" : YES
Has header "sys/xattr.h" : YES
Checking if "XATTR_NOFOLLOW" compiles: NO
Checking for function "strlcpy" : YES
Program python3 found: YES (/mnt/zeus/hdd/sources/openwrt/sources/snapshot_fb7530/staging_dir/host/bin/python3)
../../../../build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/glib-2.74.0/meson.build:2274:0: ERROR: <PythonExternalProgram 'python3' -> ['/mnt/zeus/hdd/sources/openwrt/sources/snapshot_fb7530/staging_dir/host/bin/python3']> is not a valid python or it is missing distutils
A full log can be found at /mnt/zeus/hdd/sources/openwrt/sources/snapshot_fb7530/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/glib-2.74.0/openwrt-build/meson-logs/meson-log.txt
make[2]: *** [Makefile:125: /mnt/zeus/hdd/sources/openwrt/sources/snapshot_fb7530/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/glib-2.74.0/.configured_efb2d3cf01c707184fb77fd0fe149f94] Error 1
make[2]: Leaving directory '/mnt/zeus/hdd/sources/openwrt/sources/snapshot_fb7530/feeds/packages/libs/glib2'
time: package/feeds/packages/glib2/compile#9.97#3.94#12.67
ERROR: package/feeds/packages/glib2 failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/glib2/compile] Error 1
make[1]: Leaving directory '/mnt/zeus/hdd/sources/openwrt/sources/snapshot_fb7530'
make: *** [/mnt/zeus/hdd/sources/openwrt/sources/snapshot_fb7530/include/toplevel.mk:231: package/feeds/packages/glib2/compile] Error 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the glib2 package build from feeds/packages/libs/glib2 and inspect the Meson log referenced in the report. Compare the host Python setup and the checks around glib-2.74.0/meson.build:2274; done means identifying the Arch-specific cause and restoring a successful glib2 build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100