From owner-freebsd-ports@freebsd.org Wed Nov 15 19:58:19 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0296BDE5C76 for ; Wed, 15 Nov 2017 19:58:19 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id E167A79597 for ; Wed, 15 Nov 2017 19:58:18 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by mailman.ysv.freebsd.org (Postfix) id DD5C5DE5C75; Wed, 15 Nov 2017 19:58:18 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCFF7DE5C74 for ; Wed, 15 Nov 2017 19:58:18 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BBD7379596 for ; Wed, 15 Nov 2017 19:58:18 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id E04D95A9F27; Wed, 15 Nov 2017 19:58:16 +0000 (UTC) Date: Wed, 15 Nov 2017 19:58:16 +0000 From: Brooks Davis To: Yuri Cc: "ports@freebsd.org" Subject: Re: What is the correct way to require a specific version of clang? Message-ID: <20171115195816.GA35747@spindle.one-eyed-alien.net> References: <408397b5-f2ff-9798-fca1-6e7567c5a4fd@rawbw.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <408397b5-f2ff-9798-fca1-6e7567c5a4fd@rawbw.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2017 19:58:19 -0000 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2017 at 10:37:37AM -0800, Yuri wrote: > There is no such thing as USES=3Dclang:38, for example. >=20 > When I try this: >=20 > .include >=20 > .if ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} < 1100000 > BUILD_DEPENDS=3D?? clang38:lang/clang38 > RUN_DEPENDS=3D?????? clang38:lang/clang38 > CC=3D???????????????????????? clang38 > CXX=3D?????????????????????? clang++38 >=20 > .endif >=20 >=20 > It prints warnings in pourdriere 10i386 machine: >=20 > clang38: not found > make: "/usr/ports/Mk/Uses/compiler.mk" line 69: warning: "clang38=20 > --version" returned non-zero status > make: "/usr/ports/Mk/Uses/compiler.mk" line 112: warning: "clang++38=20 > -### /dev/null 2>&1" returned non-zero status >=20 >=20 > How to do this without such messages? You'll need to start a shell in your poudreire instance and see what is failing. I'd expect that to work. Note that it is possible to misconfigure the llvm38 port such that this config is broken by disabling the CLANG option. -- Brooks --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJaDJxYAAoJEKzQXbSebgfAtvkH/RwY8EWPU1XtJEhOQwfW939g OLrgZwA2OWCN0GhKVxaT+URR83rZChkzy3ZI5Q58XieOt3Vp2jJeg/R2Rjm2K1Kd 980Jaf7ojXHNx4Wp2f5uRdlywS+5PwqFWpXQj/XJDTMGwdY3NdH7yw/WQRB7qCNj veJONpryTYYXcesTysna/kz/PeWtlSjlgR9VBy5jOhIQ5MHDHFG+nCD2oH6NylCx 3TXeDR4Ve6sMw77dmL3C2kCoFhxDqekGoEE2Tnz4VDoYaRa7WJtPlEo/0RACAdl7 LzknsacZ8yVhZUDYMouCEv9d+Vs7Czf47aMuaDGx1fYEJaY3USM7EYkrQrw8BQ4= =MXyV -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--