git: 1ec162a92706 - main - audio/aubio: unbreak build with python 3.11+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Jun 2023 15:50:56 UTC
The branch main has been updated by jhale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1ec162a92706e35bee060393f83a3c887f021259
commit 1ec162a92706e35bee060393f83a3c887f021259
Author: Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-06-13 12:43:24 +0000
Commit: Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-06-15 15:50:33 +0000
audio/aubio: unbreak build with python 3.11+
Python has set as default and deprecated the 'U' (open as Unicode) flag
for all file open routines since 3.3 release and removed it in 3.11+.
PR: 271980
---
audio/aubio/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/audio/aubio/Makefile b/audio/aubio/Makefile
index f9d04c6e1e23..e6d51bf55e9a 100644
--- a/audio/aubio/Makefile
+++ b/audio/aubio/Makefile
@@ -68,6 +68,8 @@ PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e \
'/pkgconfig/s|$${LIBDIR}|&data|' ${WRKSRC}/waflib/TaskGen.py
+ @${REINPLACE_CMD} -e \
+ '/read/s|rU|r|' ${WRKSRC}/waflib/ConfigSet.py ${WRKSRC}/waflib/Context.py
post-install:
.for b in mfcc notes onset pitch quiet track