Skip to content

Commit

Permalink
audio/py-aubio: Fix build with Clang >= 16
Browse files Browse the repository at this point in the history
python/ext/ufuncs.c:48:3: error: incompatible function pointer types
initializing 'PyUFuncGenericFunction'

Const qualifiers were added to the dimension and strides arguments of
PyUFuncGenericFunction in NumPy 1.19.0 [1]. This was previously a
warning, but Clang 16 has -Werror=incompatible-function-pointer-types
turned on by default.

[1] numpy/numpy@e94cec8

Reported by:	pkg-fallout
  • Loading branch information
BSDKaffee committed Jun 25, 2023
1 parent 9942fda commit 7d30ecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions audio/aubio/Makefile
Expand Up @@ -7,6 +7,7 @@ MASTER_SITES= https://aubio.org/pub/
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/
PATCHFILES+= cdfe9cef2dcc3edf7d05ca2e9c2dbbf8dea21f1c.patch:-p1 #FFmpeg 6.x compat
PATCHFILES+= 8a05420e5dd8c7b8b2447f82dc919765876511b3.patch:-p1 #FFmpeg 6.x compat
PATCHFILES+= 95ff046c698156f21e2ca0d1d8a02c23ab76969f.patch:-p1 #Add const qualifiers for NumPy >= 1.19.0

MAINTAINER?= jhale@FreeBSD.org
COMMENT?= Library for audio labelling
Expand Down
4 changes: 3 additions & 1 deletion audio/aubio/distinfo
@@ -1,7 +1,9 @@
TIMESTAMP = 1678741487
TIMESTAMP = 1687726308
SHA256 (aubio-0.4.9.tar.bz2) = d48282ae4dab83b3dc94c16cf011bcb63835c1c02b515490e1883049c3d1f3da
SIZE (aubio-0.4.9.tar.bz2) = 397604
SHA256 (cdfe9cef2dcc3edf7d05ca2e9c2dbbf8dea21f1c.patch) = 025b6d0668601a17ce8312ad4930d7ba99715b754191208347df46b9a07b0a91
SIZE (cdfe9cef2dcc3edf7d05ca2e9c2dbbf8dea21f1c.patch) = 4743
SHA256 (8a05420e5dd8c7b8b2447f82dc919765876511b3.patch) = 33b730d1aa0562d5cb96341fce268acb8a42a0381e9dcd52caef0fc2737b8ad0
SIZE (8a05420e5dd8c7b8b2447f82dc919765876511b3.patch) = 729
SHA256 (95ff046c698156f21e2ca0d1d8a02c23ab76969f.patch) = 4f7a7f59b58fc2b4fc80378966455b7f7b3bea508f2e46c88b6521c084cbe9e4
SIZE (95ff046c698156f21e2ca0d1d8a02c23ab76969f.patch) = 1264

0 comments on commit 7d30ecf

Please sign in to comment.