Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700320 - =dev-util/meson-0.51.2 on cross-armv6j-unknown-linux-gnueabihf - meson: pkg_resources.DistributionNotFound: The 'meson==0.51.2' distribution was not found and is required by the application
Summary: =dev-util/meson-0.51.2 on cross-armv6j-unknown-linux-gnueabihf - meson: pkg_r...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-17 08:19 UTC by tt_1
Modified: 2019-11-25 01:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
file list from meson installation (meson-files,37.97 KB, text/plain)
2019-11-17 08:28 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2019-11-17 08:19:45 UTC
the actuall failure is from mesa, using meson build system: 

>>> Configuring source in /var/tmp/portage/media-libs/mesa-19.1.8/work/mesa-19.1.8 ...
 * .arm: running multilib-minimal_abi_src_configure
meson --buildtype plain --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload -Dplatforms=x11,surfaceless,drm -Dllvm=true -Dlmsensors=false -Dlibunwind=false -Dgallium-nine=false -Dgallium-va=false -Dgallium-vdpau=false -Dgallium-xa=false -Dgallium-xvmc=false -Dgallium-opencl=disabled -Dosmesa=none -Dbuild-tests=false -Dglx=dri -Dshared-glapi=true -Ddri3=true -Degl=true -Dgbm=true -Dgles1=false -Dgles2=true -Dglvnd=false -Dselinux=false -Dvalgrind=false -Ddri-drivers= -Dgallium-drivers=kmsro,swrast,vc4 -Dvulkan-drivers= -Dvulkan-overlay-layer=false --buildtype plain -Db_ndebug=true /var/tmp/portage/media-libs/mesa-19.1.8/work/mesa-19.1.8 /var/tmp/portage/media-libs/mesa-19.1.8/work/mesa-19.1.8-.arm
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/meson", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3126, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3110, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3139, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 581, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 898, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 784, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'meson==0.51.2' distribution was not found and is required by the application

this is with armv6j-unknown-linux-gnueabihf as a cross compiler.
Comment 1 tt_1 2019-11-17 08:28:39 UTC
Created attachment 596448 [details]
file list from meson installation

ok, so there's something wrong with python cross compile: 

the host is amd64, hence all the python modules get installed into the wrong libdir. /usr/bin/meson pipes everthing through python-exec, clearly this must fail. I might move the files by hand into the correct dir, to see wether this is the only problem we're facing here.
Comment 2 Mike Gilbert gentoo-dev 2019-11-25 01:11:26 UTC
My best guess is that you cross-compiled dev-lang/python and dev-util/meson into some ROOT image, and are now try to run the cross-compiled meson on some other system.

Python really doesn't support cross-compiling modules into site-packages, and Gentoo's libdir patching doesn't help matters.

You may have better luck with python:3.7, which always installs modules in /usr/lib instead of /usr/${LIBDIR}.