From owner-svn-ports-all@freebsd.org Sat Sep 8 08:53:38 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 107BFFED635; Sat, 8 Sep 2018 08:53:38 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BAD158C6B6; Sat, 8 Sep 2018 08:53:37 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B5CE5990; Sat, 8 Sep 2018 08:53:37 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w888rbHQ028120; Sat, 8 Sep 2018 08:53:37 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w888rb8K028119; Sat, 8 Sep 2018 08:53:37 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201809080853.w888rb8K028119@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sat, 8 Sep 2018 08:53:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479234 - head/security/sancp X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/security/sancp X-SVN-Commit-Revision: 479234 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2018 08:53:38 -0000 Author: tobik Date: Sat Sep 8 08:53:37 2018 New Revision: 479234 URL: https://svnweb.freebsd.org/changeset/ports/479234 Log: security/sancp: Fix build with Clang 6 In file included from build_acl.cc:2: In file included from ./sancp.h:47: In file included from ./gvars.h:6: ./pcapFileHandle.h:19:30: error: constant expression evaluates to 212 which cannot be narrowed to type 'char' [-Wc++11-narrowing] const char pcap_header[] = { 0xd4,0xc3,0xb2,0xa1,0x02,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x4e,0x00,0x00,0x01,0x00,0x00,0x00 }; ^~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p477696_s338122/logs/errors/sancp-1.6.1_6.log - Make sure CXXFLAGS is respected PR: 230878 Submitted by: tobik Approved by: bofh (maintainer timeout, 2 weeks) Modified: head/security/sancp/Makefile Modified: head/security/sancp/Makefile ============================================================================== --- head/security/sancp/Makefile Sat Sep 8 08:16:55 2018 (r479233) +++ head/security/sancp/Makefile Sat Sep 8 08:53:37 2018 (r479234) @@ -16,6 +16,7 @@ LICENSE_NAME= Q PUBLIC LICENSE v1.0 LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept +USES= compiler ALL_TARGET= bsd USE_RC_SUBR= sancp @@ -27,7 +28,9 @@ OPTIONS_DEFINE= DOCS PORTDOCS= CHANGES INSTALL ISSUES \ README SETUP fields.LIST -MAKE_ARGS= CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing +MAKE_ARGS= CFLAGS="${CXXFLAGS}" \ LFLAGS="${LDFLAGS}" SUB_FILES= pkg-message