ports/171575: [patch] sysutils/uhidd: make it work with clang (encoding-related)
Jan Beich
jbeich at tormail.org
Thu Sep 13 11:20:12 UTC 2012
The following reply was made to PR ports/171575; it has been noted by GNATS.
From: Jan Beich <jbeich at tormail.org>
To: Vitaly Magerya <vmagerya at gmail.com>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/171575: [patch] sysutils/uhidd: make it work with clang (encoding-related)
Date: Thu, 13 Sep 2012 06:12:24 -0500
--=-=-=
Content-Type: text/plain
Vitaly Magerya <vmagerya at gmail.com> writes:
> Another (and I think this is a slightly better fix) is to simply
> disable -Werror; see the attached patch.
[...]
> +MAKE_ENV+= NO_WERROR=y
What if there's a KPI change? Let's use -Wno-error=invalid-source-encoding
until clang grows support for iconv (-finput-charset, et al.)
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=clang_literal_workaround.diff
Index: sysutils/uhidd/Makefile
===================================================================
--- sysutils/uhidd/Makefile (revision 303636)
+++ sysutils/uhidd/Makefile (working copy)
@@ -34,6 +34,10 @@ MAN8= uhidd.8
.include <bsd.port.pre.mk>
+.if !empty(CC:M*clang*)
+CFLAGS+= -Wno-error=invalid-source-encoding
+.endif
+
.if defined(DEBUG_FLAGS)
MAKE_ENV+= DEBUG_FLAGS='${DEBUG_FLAGS}'
.endif
--=-=-=--
More information about the freebsd-ports-bugs
mailing list