From owner-svn-ports-branches@freebsd.org Sat Oct 10 11:39:45 2020 Return-Path: Delivered-To: svn-ports-branches@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 C25A34442A7; Sat, 10 Oct 2020 11:39:45 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4C7jf94l1Nz4c75; Sat, 10 Oct 2020 11:39:45 +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 85E7AA391; Sat, 10 Oct 2020 11:39:45 +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 09ABdj9K010759; Sat, 10 Oct 2020 11:39:45 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09ABdjUJ010758; Sat, 10 Oct 2020 11:39:45 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202010101139.09ABdjUJ010758@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sat, 10 Oct 2020 11:39:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r551916 - branches/2020Q4/security/highwayhash X-SVN-Group: ports-branches X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: branches/2020Q4/security/highwayhash X-SVN-Commit-Revision: 551916 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2020 11:39:45 -0000 Author: pkubaj Date: Sat Oct 10 11:39:44 2020 New Revision: 551916 URL: https://svnweb.freebsd.org/changeset/ports/551916 Log: MFH: r551915 security/highwayhash: fix build on powerpc64, powerpc64le and probably arm architectures Remove superflous ). Add necessary ifdefs. Approved by: portmgr (fix build blanket) Modified: branches/2020Q4/security/highwayhash/Makefile Directory Properties: branches/2020Q4/ (props changed) Modified: branches/2020Q4/security/highwayhash/Makefile ============================================================================== --- branches/2020Q4/security/highwayhash/Makefile Sat Oct 10 11:37:02 2020 (r551915) +++ branches/2020Q4/security/highwayhash/Makefile Sat Oct 10 11:39:44 2020 (r551916) @@ -13,8 +13,6 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= fails to compile: /usr/lib/clang/5.0.0/include/mmintrin.h:47:5: use of undeclared identifier '__builtin_ia32_emms' -BROKEN_powerpc64= fails to compile: highwayhash/arch_specific.cc:153:32: error: too few arguments to function sysctlbyname -BROKEN_powerpc64le= fails to compile: highwayhash/arch_specific.cc:153:32: error: too few arguments to function sysctlbyname ONLY_FOR_ARCHS= aarch64 amd64 powerpc powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= Assembly is implemented only for specific architectures in highwayhash/tsc_timer.h @@ -23,6 +21,15 @@ USE_GITHUB= yes GH_ACCOUNT= google GH_TAGNAME= 954e56589a7e75bad04f1063174d78f8c17a9b3a USE_LDCONFIG= yes + +.include + +.if ${ARCH:Mpowerpc*} +CXXFLAGS+= -mpower8-vector +MAKE_ENV+= HH_POWER=1 +.elif ${ARCH} == aarch64 || ${ARCH:Marmv*} +MAKE_ENV+= HH_ARM=1 +.endif post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libhighwayhash.so