Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908457 - dev-python/python-rtmidi-1.5.1 - meson-python: error: The rtmidi package is split between purelib and platlib: .../_rtmidi.cpython
Summary: dev-python/python-rtmidi-1.5.1 - meson-python: error: The rtmidi package is s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-13 16:40 UTC by Toralf Förster
Modified: 2023-06-16 21:18 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.55 KB, text/plain)
2023-06-13 16:40 UTC, Toralf Förster
Details
dev-python:python-rtmidi-1.5.1:20230613-163644.log (dev-python:python-rtmidi-1.5.1:20230613-163644.log,8.18 KB, text/plain)
2023-06-13 16:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,192.92 KB, text/plain)
2023-06-13 16:40 UTC, Toralf Förster
Details
environment (environment,139.02 KB, text/plain)
2023-06-13 16:40 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,896 bytes, application/x-xz)
2023-06-13 16:40 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,19.51 KB, application/x-xz)
2023-06-13 16:40 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,2.57 KB, application/x-xz)
2023-06-13 16:40 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.61 KB, application/x-xz)
2023-06-13 16:40 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-06-13 16:40:14 UTC
too long lines were shrinked:

Listing '/var/tmp/portage/dev-python/python-rtmidi-1.5.1/work/python-rtmidi-1.5.1/.mesonpy-ko30_7lh/install/usr/local/lib/python3.11/site-packages/rtmidi'...
Compiling '/var/tmp/portage/dev-python/python-rtmidi-1.5.1/work/python-rtmidi-1.5.1/.mesonpy-ko30_7lh/install/usr/local/lib/python3.11/site-packages/rtmidi/__init__.py'...
Compiling '/var/tmp/portage/dev-python/python-rtmidi-1.5.1/work/python-rtmidi-1.5.1/.mesonpy-ko30_7lh/install/usr/local/lib/python3.11/site-packages/rtmidi/midiconstants.py'...
Compiling '/var/tmp/portage/dev-python/python-rtmidi-1.5.1/work/python-rtmidi-1.5.1/.mesonpy-ko30_7lh/install/usr/local/lib/python3.11/site-packages/rtmidi/midiutil.py'...
Compiling '/var/tmp/portage/dev-python/python-rtmidi-1.5.1/work/python-rtmidi-1.5.1/.mesonpy-ko30_7lh/install/usr/local/lib/python3.11/site-packages/rtmidi/version.py'...

meson-python: error: The rtmidi package is split between purelib and platlib: 'purelib/rtmidi/__init__.py' and 'platlib/rtmidi/_rtmidi.cpython-311-x86_64-linux-gnu.so', a "pure: false" argument may be missing in meson.build. It is recommended to set it in "import('python').find_installation()"
 * ERROR: dev-python/python-rtmidi-1.5.1::gentoo failed (compile phase):
 *   Wheel build failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20230610-082406

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.5
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.69.0 *
The following VMs are available for generation-2:
1)	OpenJDK 11.0.18_p10 [openjdk-11]
2)	OpenJDK 17.0.6_p10 [openjdk-17]
3)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
5)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-11 
  [2]   openjdk-17 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-11 
  [5]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.20.5 linux/amd64

  HEAD of ::gentoo
commit b723662b5060f152f7f94217d111a6b257c276de
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jun 13 16:02:06 2023 +0000

    2023-06-13 16:02:05 UTC

emerge -qpvO dev-python/python-rtmidi
[ebuild  N    ] dev-python/python-rtmidi-1.5.1  USE="alsa jack -doc -test" PYTHON_TARGETS="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-06-13 16:40:15 UTC
Created attachment 863777 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-06-13 16:40:16 UTC
Created attachment 863778 [details]
dev-python:python-rtmidi-1.5.1:20230613-163644.log
Comment 3 Toralf Förster gentoo-dev 2023-06-13 16:40:17 UTC
Created attachment 863779 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-06-13 16:40:18 UTC
Created attachment 863780 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-06-13 16:40:19 UTC
Created attachment 863781 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-06-13 16:40:20 UTC
Created attachment 863782 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-06-13 16:40:21 UTC
Created attachment 863783 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-06-13 16:40:22 UTC
Created attachment 863784 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2023-06-16 21:18:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04429885a2d8b6d95e3e0da0377be05104e9f883

commit 04429885a2d8b6d95e3e0da0377be05104e9f883
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2023-06-16 21:11:37 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2023-06-16 21:18:27 +0000

    dev-python/python-rtmidi: fix building against newer meson-python
    
    Since 0.13.0, meson-python throws an error if a package is split
    between purelib and platlib. Upstream did attempt to use the "pure"
    keyword to account for the mixed nature of this module but
    unfortunately, they appear to have got it wrong.
    
    Closes: https://bugs.gentoo.org/908457
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../files/python-rtmidi-1.5.1-meson_pure.patch     | 29 ++++++++++++++++++++++
 .../python-rtmidi/python-rtmidi-1.5.1.ebuild       |  4 +++
 2 files changed, 33 insertions(+)