Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2021 16:47:27 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 75be3f4488eb - main - multimedia/ustreamer: Fix build on systems not having strerror_l.
Message-ID:  <202104071647.137GlRRo014577@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=75be3f4488eb98dcfb6f228dd7413e203ecc3e03

commit 75be3f4488eb98dcfb6f228dd7413e203ecc3e03
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-04-07 16:42:51 +0000
Commit:     Yuri Victorovich <yuri@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104071647.137GlRRo014577>