From owner-svn-ports-all@freebsd.org Mon Jun 17 07:17:11 2019 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 B2F8215AF766; Mon, 17 Jun 2019 07:17:11 +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 5789D82E62; Mon, 17 Jun 2019 07:17:11 +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 2E71822505; Mon, 17 Jun 2019 07:17:11 +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 x5H7HBZv044009; Mon, 17 Jun 2019 07:17:11 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x5H7HBwK044008; Mon, 17 Jun 2019 07:17:11 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201906170717.x5H7HBwK044008@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Mon, 17 Jun 2019 07:17:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r504395 - head/math/openlibm X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/math/openlibm X-SVN-Commit-Revision: 504395 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 5789D82E62 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.963,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 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: Mon, 17 Jun 2019 07:17:11 -0000 Author: pkubaj Date: Mon Jun 17 07:17:10 2019 New Revision: 504395 URL: https://svnweb.freebsd.org/changeset/ports/504395 Log: math/openlibm: fix build with GCC-based architectures The port needs to respect CC and use a new compiler. PR: 238613 Approved by: iblis@hs.ntnu.edu.tw (maintainer), mat (mentor) Differential Revision: https://reviews.freebsd.org/D20670 Modified: head/math/openlibm/Makefile Modified: head/math/openlibm/Makefile ============================================================================== --- head/math/openlibm/Makefile Mon Jun 17 06:44:24 2019 (r504394) +++ head/math/openlibm/Makefile Mon Jun 17 07:17:10 2019 (r504395) @@ -17,9 +17,8 @@ BROKEN_armv6= fails to compile: a parameter list with BROKEN_armv7= fails to compile: a parameter list without types is only allowed in a function definition BROKEN_mips= fails to compile: No rule to make target mips/Make.files BROKEN_mips64= fails to compile: No rule to make target mips64/Make.files -BROKEN_powerpc64= fails to build: gmake: clang: Command not found -USES= gmake +USES= compiler:c11 gmake USE_GITHUB= yes GH_ACCOUNT= JuliaMath GH_PROJECT= openlibm @@ -28,8 +27,16 @@ USE_LDCONFIG= yes .include -MAKE_ENV+= prefix=${PREFIX} +MAKE_ENV+= prefix=${PREFIX} ${MAKE_ENV_${CHOSEN_COMPILER_TYPE}} +MAKE_ENV_gcc= USEGCC=1 USECLANG=0 +MAKE_ENV_clang= USEGCC=0 USECLANG=1 TEST_TARGET= check +post-patch: + ${REINPLACE_CMD} -e 's/USEGCC =/USEGCC ?=/g' \ + -e 's/USECLANG =/USECLANG ?=/g' \ + -e '/TOOLPREFIX)gcc/s/$$/${GCC_DEFAULT}/g' \ + ${WRKSRC}/Make.inc + .include