From owner-freebsd-toolchain@FreeBSD.ORG Sat Jul 7 08:21:08 2012 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1CFCF1065673; Sat, 7 Jul 2012 08:21:08 +0000 (UTC) (envelope-from theraven@freebsd.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) by mx1.freebsd.org (Postfix) with ESMTP id B6D568FC1A; Sat, 7 Jul 2012 08:21:07 +0000 (UTC) Received: from [192.168.0.2] (cpc2-cmbg15-2-0-cust445.5-4.cable.virginmedia.com [86.26.13.190]) (authenticated bits=0) by theravensnest.org (8.14.5/8.14.5) with ESMTP id q678Kufa036491 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Sat, 7 Jul 2012 08:21:00 GMT (envelope-from theraven@freebsd.org) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: David Chisnall In-Reply-To: <4FF766D6.5040909@FreeBSD.org> Date: Sat, 7 Jul 2012 09:20:53 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <7937CE7E-2583-4DAF-9782-37B82891D3FF@freebsd.org> References: <4FF60A9E.5070503@FreeBSD.org> <4FF6DB51.40904@FreeBSD.org> <508B8B4E-DF5E-412B-BD2B-86F21EBF4C8C@bsdimp.com> <4FF700CF.2000206@FreeBSD.org> <1DED79CC-CACD-4D22-9F1F-E3EB17938EB6@bsdimp.com> <4FF7182A.9070803@FreeBSD.org> <714BF622-A1B3-4A4A-A8BC-DCA82B4434A2@FreeBSD.org> <4FF766D6.5040909@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.1278) Cc: toolchain@freebsd.org Subject: Re: gcc46 header search path X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2012 08:21:08 -0000 On 6 Jul 2012, at 23:29, Andriy Gapon wrote: > I think that this is a dummy argument. One could easily want his = LOCALBASE to > be /opt and the real ports system should support that. So what ports = currently > do, they really have to do (assuming $LOCALBASE as opposed to = /usr/local). That's completely irrelevant. If a user installs things in a = non-standard location, then that user should expect to have to point = things that they build from source at that non-standard location. If, = however, a user installs things in the standard location, then this = should Just Work. =20 The workflow that I have seen where this fails: - User runs ./configure - Configure script says 'libpng is not installed!' - User installs libpng from ports / packages - User runs ./configure - Configure script says 'libpng is not installed!' - User sends me an email asking why they can't install on FreeBSD, = usually including a small whine that this works on their favourite Linux = distro. - I tell the user 'Oh, you need to say = --with-png-include=3D/usr/local/include --with-png-lib=3D/usr/local/lib' - User says 'Why doesn't the compiler that FreeBSD ships know where to = find headers and libraries that FreeBSD installs?' - I shrug. I assumed this was done for a sensible reason, but so far no one has = actually said what that reason is. In an ideal world, the system = compiler should be able to automatically find any headers and libraries = installed by any supported mechanism (ports, pkg_add, pkg add), but in = an almost-ideal world it should at least find them if they are in the = default locations. David=