From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.bugs Subject: bug#10313: configure fails to find include path on openbsd Date: Sat, 24 Dec 2011 03:40:28 +0000 Message-ID: <4EF549AC.3050104@harpegolden.net> References: <87y5ucvlg3.fsf@ledu-giraud.fr> <4EEBEF0C.4050604@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1324698056 22559 80.91.229.12 (24 Dec 2011 03:40:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2011 03:40:56 +0000 (UTC) Cc: 10313@debbugs.gnu.org, Manuel Giraud To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 24 04:40:51 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ReITb-00037t-6j for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2011 04:40:51 +0100 Original-Received: from localhost ([::1]:56545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReITZ-0002iv-Ed for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Dec 2011 22:40:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReITW-0002iD-7C for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 22:40:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ReITV-0005pc-5q for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 22:40:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReITV-0005p8-45 for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 22:40:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ReIVj-0003vv-3p for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2011 22:43:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David De La Harpe Golden Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Dec 2011 03:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10313 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10313-submit@debbugs.gnu.org id=B10313.132469817715108 (code B ref 10313); Sat, 24 Dec 2011 03:43:02 +0000 Original-Received: (at 10313) by debbugs.gnu.org; 24 Dec 2011 03:42:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReIVc-0003vb-S8 for submit@debbugs.gnu.org; Fri, 23 Dec 2011 22:42:57 -0500 Original-Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ReIVX-0003vR-7Y for 10313@debbugs.gnu.org; Fri, 23 Dec 2011 22:42:52 -0500 Original-Received: from [87.198.47.210] (87-198-47-210.ptr.magnet.ie [87.198.47.210]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 69FA668413; Sat, 24 Dec 2011 03:40:30 +0000 (GMT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 In-Reply-To: <4EEBEF0C.4050604@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 23 Dec 2011 22:43:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55147 Archived-At: On 17/12/11 01:23, Paul Eggert wrote: > Thanks for the bug report. I worry that that fix, > though it works for you, may cause problmes on other > OpenBSD installations. So I have some questions. > > First, Is this use of /usr/local standardized by OpenBSD? > Is there documentation for this somewhere? I for one welcome our OpenBSD over... I mean, I suspect Emacs upstream (i.e. "us") hardcoding an extra /usr/local search path would _not_ be welcomed by the GNU Emacs OpenBSD port&package maintainers - though I don't actually speak for them, maybe one Manuel Giraud already knows them [0]? Why? Well... *** OpenBSD local modifications to gcc seem comprehensively documented in their gcc-local manpage: policy is to explicitly modify the system gcc to stop it looking in /usr/local [1]: """ gcc does not search under /usr/local for include files nor for libraries: as a system compiler, it only searches the system paths by default. """ *** BUT: /usr/local is where OpenBSD packages and ports install to, it's not quite the playground it is on some systems. The OpenBSD system is fairly simple [2]: """ Packages install to /usr/local """ *** So, um how does that work, you may ask? Well, AFAICS the Done Thing is to always explicitly specify the extra paths required on the command line in the package/port build wrapper scripts [3]: """ CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include \ -I${LOCALBASE}/include/libpng" \ LDFLAGS="-L${LOCALBASE}/lib" """ *** But note $LOCALBASE variable, it is NOT just a hardcoded /usr/local ! In bsd.port.mk, we find [4]: """ LOCALBASE where other ports have already been installed. Default: /usr/local. """ *** So, in conclusion, a hardcoded /usr/local is IMO The Wrong Thing for upstream Emacs on OpenBSD, especially seeing as advanced folk may be futzing with $LOCALBASE. Now, the OpenBSD ports&package maintainers can of course just patch out anything that upstream Emacs adds that they don't like, but IMO no point putting them to that hassle, and IMO users building from upstream source on OpenBSD outside the garden of the ports&packages system are advanced and therefore might be expected to be prepared for little OpenBSD quirks like having to add the extra paths themselves. *** [0] http://www.openbsd.org/cgi-bin/cvsweb/ports/editors/emacs23/distinfo [1] http://www.openbsd.org/cgi-bin/man.cgi?query=gcc-local&sektion=1 [2] http://www.openbsd.org/cgi-bin/man.cgi?query=packages&sektion=7 [3] http://www.openbsd.org/cgi-bin/cvsweb/ports/editors/emacs23/Makefile [4] http://www.openbsd.org/cgi-bin/man.cgi?query=bsd.port.mk&sektion=5