From owner-svn-src-head@freebsd.org Fri Jun 23 15:43:08 2017 Return-Path: Delivered-To: svn-src-head@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 3625BDA6EB9; Fri, 23 Jun 2017 15:43:08 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0224E65173; Fri, 23 Jun 2017 15:43:08 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 42C0B74B5; Fri, 23 Jun 2017 15:43:07 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 131EC2DB1; Fri, 23 Jun 2017 15:43:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id pTz34wzh1u_c; Fri, 23 Jun 2017 15:42:57 +0000 (UTC) Subject: Re: svn commit: r320245 - head/share/mk DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com F40F42DAC To: Cy Schubert Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201706231356.v5NDujRH002025@slippy.cwsent.com> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: Date: Fri, 23 Jun 2017 08:42:41 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <201706231356.v5NDujRH002025@slippy.cwsent.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wgtDeWvwHi0cSQFVbm1oqMHHag11O62n3" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2017 15:43:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wgtDeWvwHi0cSQFVbm1oqMHHag11O62n3 Content-Type: multipart/mixed; boundary="77famXCJfxNoDslk4Jg33FDxFgUd929a1"; protected-headers="v1" From: Bryan Drewery To: Cy Schubert Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: Subject: Re: svn commit: r320245 - head/share/mk References: <201706231356.v5NDujRH002025@slippy.cwsent.com> In-Reply-To: <201706231356.v5NDujRH002025@slippy.cwsent.com> --77famXCJfxNoDslk4Jg33FDxFgUd929a1 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/23/2017 6:56 AM, Cy Schubert wrote: > In message <201706231347.v5NDlt39037415@slippy.cwsent.com>, Cy Schubert= =20 > writes: >> Let me try replying to this again. It's an exmh thing. Sorry. >> >> In message <201706222103.v5ML3Oq3026557@repo.freebsd.org>, Bryan Drewe= ry=20 >> writes >> : >>> Author: bdrewery >>> Date: Thu Jun 22 21:03:24 2017 >>> New Revision: 320245 >>> URL: https://svnweb.freebsd.org/changeset/base/320245 >>> >>> Log: >>> Support XLD for setting X_LINKER_TYPE and X_LINKER_VERSION. >>> =20 >>> This is similar to r300350 for bsd.compiler.mk. >>> =20 >>> MFC after: 2 weeks >>> Reviewed by: emaste >>> Sponsored by: Dell EMC Isilon >>> Differential Revision: https://reviews.freebsd.org/D11309 >>> >>> Modified: >>> head/share/mk/bsd.linker.mk >>> >>> Modified: head/share/mk/bsd.linker.mk >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D >> =3D=3D >>> =3D >>> --- head/share/mk/bsd.linker.mk Thu Jun 22 21:03:20 2017 (r32024 >>> 4) >>> +++ head/share/mk/bsd.linker.mk Thu Jun 22 21:03:24 2017 (r32024 >>> 5) >>> @@ -9,25 +9,39 @@ >>> # major * 10000 + minor * 100 + tiny >>> # It too can be overridden on the command line. >>> # >>> +# These variables with an X_ prefix will also be provided if XLD is = set. >>> +# >>> # This file may be included multiple times, but only has effect the = first=20 >> ti >>> me. >>> # >>> =20 >>> .if !target(____) >>> ____: >>> =20 >>> -_ld_version!=3D ${LD} --version 2>/dev/null | head -n 1 || echo none= >>> +.for ld X_ in LD $${_empty_var_} XLD X_ >>> +.if ${ld} =3D=3D "LD" || !empty(XLD) >>> +.if ${ld} =3D=3D "LD" || (${ld} =3D=3D "XLD" && ${XLD} !=3D ${LD}) >>> + >>> +_ld_version!=3D ${${ld}} --version 2>/dev/null | head -n 1 || echo n= one >> >> This line gave one of my machines a bit of gas with the error: >> >> sh: head: not found >> make[2]: "/opt/src/svn-current/share/mk/bsd.linker.mk" line 42: Unable= to=20 >> determine linker type from LD=3Dld >> *** Error code 1 >> >> Specifying the full pathname for head resolves the isssue. >=20 > Or better yet, use include head in the build tools (or use sed or awk).= >=20 >=20 Good point, but r320249 should remove the head(1) call entirely during installworld. Can you try again? --=20 Regards, Bryan Drewery --77famXCJfxNoDslk4Jg33FDxFgUd929a1-- --wgtDeWvwHi0cSQFVbm1oqMHHag11O62n3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJZTTbxAAoJEDXXcbtuRpfPp8cH/AtRKy9Mmx2V8uo3fJjKrV+K 3t9NyvPfzz0XXR4m/HXCIJzDZOpYNkdVWQlAYvQP2J/Uq+klttermehRYYsyvqvb lmJWwNuVYlUlQsnpPXPhILdFfSRGrHgxjDCWiVQQ4SlzGIQkwSIeJCGNC3idxPq/ h/JtY5BQCF7JIweY9xB5VU5uURp28Wioxhydvf9Ej/6ME1zaQyeajLsMMUJtZgrO KSmesQei7viFXs6VLdOBcAfR/uSYZlBnL/9NNUEo//uIC//JWYVpdgr4lnIZHwaT rIzmOXM41dj6LS10mA7v+0N0yCExiUbwCGAtacvRXkZGGtJ3+ECCAYe8GG2mgWA= =4zps -----END PGP SIGNATURE----- --wgtDeWvwHi0cSQFVbm1oqMHHag11O62n3--