From owner-freebsd-gnome@freebsd.org Wed May 17 16:43:08 2017 Return-Path: Delivered-To: freebsd-gnome@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 A009FD7189C for ; Wed, 17 May 2017 16:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 859C3372 for ; Wed, 17 May 2017 16:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 84F34D7189B; Wed, 17 May 2017 16:43:08 +0000 (UTC) Delivered-To: gnome@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 84973D7189A for ; Wed, 17 May 2017 16:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 5BA31370 for ; Wed, 17 May 2017 16:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4HGh71a003896 for ; Wed, 17 May 2017 16:43:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 219161] www/webkit2-gtk3: 2.14.6 fails to build depending on $PATH Date: Wed, 17 May 2017 16:43:07 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: z7dr6ut7gs@snkmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2017 16:43:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219161 --- Comment #7 from John Hein --- Created attachment 182671 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D182671&action= =3Dedit [patch] explicitly point to base binutils tools if not using ports binutils I added an -B/usr/bin to Carlos' patch. If we are explicitly setting the p= ath for certain base tools (/usr/bin/ar, etc.), we should explicitly tell clang= ++40 to look in /usr/bin at link time instead of relying on /usr/bin being in yo= ur path before /usr/local/bin. It turns out that the newer ld from the binutils port will probably work fi= ne with .a files generated by the current /usr/bin/ar & /usr/bin/ranlib. But = it's better to explicitly point to /usr/bin/ld to match the use of base ar & ran= lib, IMO. By the way, something in the cmake code is causing the detection of ar, ran= lib, etc., tools based on the CMAKE_CXX_COMPILER path. If CMAKE_CXX_COMPILER is /usr/local/bin/clang++40, it finds ar, ranlib, etc., in /usr/local/bin (if binutils port is installed). If CMAKE_CXX_COMPILER is /usr/bin/c++, cmake finds ar, ranlib, etc., in /usr/bin. Trying to follow the cmake logic to see where the determination which tool = to use is difficult (at least for me). I'm no cmake guru. So there may be another way to "hint" cmake where to look for the tools. But this patch wo= rks well enough, I think. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=