gnu: python-pyportmidi: Fix build with gcc-14.

* gnu/packages/music.scm (python-pyportmidi)[arguments]: New field to relax
gcc-14's strictness.

Change-Id: I4c77560991a12cf86ffa751c66aa98e602613d68
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-03 18:16:58 +01:00
parent ac0a30a5c7
commit db97dee0a1
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -3242,6 +3242,13 @@ (define-public python-pyportmidi
(base32 "1jvp9na8d1hw46w9ybhkimbavfb3ysw7hp30cbk6dj40k5y5vgvz"))
(file-name (git-file-name name version))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'relax-gcc-14-strictness
(lambda _
(setenv "CFLAGS" "-Wno-error=incompatible-pointer-types"))))))
(inputs (list portmidi-2 alsa-lib))
(native-inputs (list python-cython))
(home-page "https://github.com/PortMidi")