git: 75be3f4488eb - main - multimedia/ustreamer: Fix build on systems not having strerror_l.
Yuri Victorovich
yuri at FreeBSD.org
Wed Apr 7 16:47:27 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=75be3f4488eb98dcfb6f228dd7413e203ecc3e03
commit 75be3f4488eb98dcfb6f228dd7413e203ecc3e03
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-04-07 16:42:51 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-04-07 16:47:24 +0000
multimedia/ustreamer: Fix build on systems not having strerror_l.
Also: it builds on 11 now.
Reported by: olgeni
---
multimedia/ustreamer/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/multimedia/ustreamer/Makefile b/multimedia/ustreamer/Makefile
index 61655f375000..c26d316c9d03 100644
--- a/multimedia/ustreamer/Makefile
+++ b/multimedia/ustreamer/Makefile
@@ -26,6 +26,12 @@ PLIST_FILES= bin/ustreamer \
man1/ustreamer-dump.1.gz \
man1/ustreamer.1.gz
-BROKEN_FreeBSD_11= error: thread_get_name() not implemented, you can disable it using WITH_PTHREAD_NP=0
+.include <bsd.port.options.mk>
+
+# strerror_l appeared in 12 in r368915 on 2021-01-01, OSVERSION was last changed to 1202505 in r368887 on 2020-12-29
+post-patch:
+.if ${OPSYS} == "FreeBSD" && ${OSVERSION} <= 1202505
+ @${REINPLACE_CMD} -e 's|strerror_l(error, locale)|strerror(error)|' ${WRKSRC}/src/libs/tools.h
+.endif
.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list