Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2017 10:35:43 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r448460 - head/net/czmq
Message-ID:  <201708211035.v7LAZhSu045762@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Mon Aug 21 10:35:42 2017
New Revision: 448460
URL: https://svnweb.freebsd.org/changeset/ports/448460

Log:
  net/czmq: Squash -Werror flag
  
  zmq_utils.h functionality was moved to zmq.h since 4.2.0, with a deprecation
  warning added. ports r448376 updated libzm4 to 4.2.2, which caused a build error
  in net/cmzq due to the -Werror flag (set by default):
  
    /usr/local/include/zmq_utils.h:41:32: error: unknown warning group '-Werror', ignored [-Werror,-Wunknown-warning-option]
    #pragma GCC diagnostic ignored "-Werror"
                                   ^
    /usr/local/include/zmq_utils.h:44:9: warning: Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h. [-W#pragma-messages]
    #pragma message("Warning: zmq_utils.h is deprecated. All its functionality is provided by zmq.h.")
            ^
  
  Squash the -Werror flag (as done in net/libzmq4) accordingly.
  
  While I'm here:
  
  - Modernize test target
  - Group build related entries (MAKE_ENV/CPPFLAGS)
  
  PR:		221688
  Reported by:	olgeni, Jan Bramkamp <crest_maintainer rlwinm de>
  MFH:		2017Q3

Modified:
  head/net/czmq/Makefile

Modified: head/net/czmq/Makefile
==============================================================================
--- head/net/czmq/Makefile	Mon Aug 21 09:51:29 2017	(r448459)
+++ head/net/czmq/Makefile	Mon Aug 21 10:35:42 2017	(r448460)
@@ -22,10 +22,10 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-libzmq=${LOCALBASE} \
 		--with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig
 
-MAKE_ENV=	V=1
 INSTALL_TARGET=	install-strip
+TEST_TARGET=	check
 
-regression-test: build
-	@cd ${WRKSRC} && ${MAKE} check
+MAKE_ENV=	V=1
+CPPFLAGS+=	-Wno-error
 
 .include <bsd.port.mk>



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