pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/json-c json-c: Fix build with clang10svn



details:   https://anonhg.NetBSD.org/pkgsrc/rev/90ea49d72c15
branches:  trunk
changeset: 401745:90ea49d72c15
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Tue Sep 24 16:08:29 2019 +0000

description:
json-c: Fix build with clang10svn

Drop -Werror due to -Werror,-Wimplicit-int-float-conversion.

Issie fixed upstream in:

https://github.com/json-c/json-c/commit/d0b87ee87b282e9b91a1af924050e217b0b2ae8b.patch

Keep another rm:-Werror for gcc3/4, in order to not change the bahavior
once this package will be upgraded.

diffstat:

 textproc/json-c/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 229e2dcb26dd -r 90ea49d72c15 textproc/json-c/Makefile
--- a/textproc/json-c/Makefile  Tue Sep 24 15:15:35 2019 +0000
+++ b/textproc/json-c/Makefile  Tue Sep 24 16:08:29 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2018/08/04 09:53:05 adam Exp $
+# $NetBSD: Makefile,v 1.14 2019/09/24 16:08:29 kamil Exp $
 
 DISTNAME=      json-c-0.13.1
 CATEGORIES=    textproc
@@ -17,6 +17,8 @@
 
 .include "../../mk/compiler.mk"
 
+BUILDLINK_TRANSFORM+=  rm:-Werror # -Werror,-Wimplicit-int-float-conversion fixed in https://github.com/json-c/json-c/commit/d0b87ee87b282e9b91a1af924050e217b0b2ae8b.patch
+
 # gcc < 4.2 does not have -Wno-error= option.
 .if !empty(CC_VERSION:Mgcc-3*) || !empty(CC_VERSION:Mgcc-4.[01]*)
 BUILDLINK_TRANSFORM+=  rm:-Werror rm:-Wno-error=deprecated-declarations



Home | Main Index | Thread Index | Old Index