Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874828 - dev-python/python-rtmidi-1.4.9 fails to compile (MUSL): The 'pthread' library is required to build python-rtmidi onLinux.
Summary: dev-python/python-rtmidi-1.4.9 fails to compile (MUSL): The 'pthread' library...
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: 2022-10-04 06:59 UTC by Agostino Sarubbo
Modified: 2022-10-04 10:28 UTC (History)
0 users

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


Attachments
build.log (build.log,43.38 KB, text/plain)
2022-10-04 06:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-10-04 06:59:44 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/python-rtmidi-1.4.9 fails to compile (MUSL).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-10-04 06:59:46 UTC
Created attachment 818443 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2022-10-04 10:20:50 UTC
The bug has been closed via the following commit(s):

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

commit a5e56ad57c2db3f6c4903042f8c870611ab6d969
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-10-04 10:14:17 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-10-04 10:20:40 +0000

    dev-python/python-rtmidi: do not look for libpthread
    
    This is a glibcism, and in any case it's rtmidi and python-rtmidi which
    depends on threads.
    
    Closes: https://bugs.gentoo.org/874828
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../files/python-rtmidi-1.4.9-unbundle_rtmidi.patch | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 10:28:05 UTC
Thanks Marecki. It's also a good fix for another reason: find_library is really fragile in Python and is considered a mistake in the API.