From owner-svn-ports-head@freebsd.org Sat Sep 21 15:21:12 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 60FEB12739E; Sat, 21 Sep 2019 15:21:12 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46bDnN1vsJz4ddL; Sat, 21 Sep 2019 15:21:12 +0000 (UTC) (envelope-from pkubaj@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 24CC5181E9; Sat, 21 Sep 2019 15:21:12 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8LFLCj0048297; Sat, 21 Sep 2019 15:21:12 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8LFLCVj048296; Sat, 21 Sep 2019 15:21:12 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201909211521.x8LFLCVj048296@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sat, 21 Sep 2019 15:21:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512510 - head/security/arirang X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/security/arirang X-SVN-Commit-Revision: 512510 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Sep 2019 15:21:12 -0000 Author: pkubaj Date: Sat Sep 21 15:21:11 2019 New Revision: 512510 URL: https://svnweb.freebsd.org/changeset/ports/512510 Log: security/arirang: fix build on GCC architectures Add USES=compiler:c11, base GCC can't build this port. Only add -L${OPENSSLLIB} when OpenSSL not from base is used to avoid linking to base libstdc++. Approved by: linimon (mentor) Differential Revision: https://reviews.freebsd.org/D21719 Modified: head/security/arirang/Makefile Modified: head/security/arirang/Makefile ============================================================================== --- head/security/arirang/Makefile Sat Sep 21 15:19:31 2019 (r512509) +++ head/security/arirang/Makefile Sat Sep 21 15:21:11 2019 (r512510) @@ -13,23 +13,29 @@ COMMENT= Powerful webserver security scanner for netwo LICENSE= BSD3CLAUSE -BROKEN_powerpc64= fails to compile: ruby.h:1381: error: wrong number of arguments specified for '__deprecated__' attribute - LIB_DEPENDS= lib${RUBY_NAME}.so:${RUBY_PORT} -USES= ssl +USES= compiler:c11 ssl USE_RUBY= yes USE_RUBY_EXTCONF= yes CFLAGS+= -I${LOCALBASE}/include/ruby-${RUBY_VER} -I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH} CFLAGS+= -DRUBY_19 + +.include + +.if ${SSL_DEFAULT} != base CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} +.endif +post-patch: + ${REINPLACE_CMD} -e 's/cc/${CC}/g' ${WRKSRC}/extconf.rb + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/arirang ${STAGEDIR}${PREFIX}/sbin @${MKDIR} ${STAGEDIR}${PREFIX}/share/arirang ${INSTALL_DATA} ${WRKSRC}/scanrule/*.uxe ${STAGEDIR}${PREFIX}/share/arirang ${INSTALL_DATA} ${WRKSRC}/script/*.rb ${STAGEDIR}${PREFIX}/share/arirang -.include +.include