From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#29931: 27.0.50; Slightly suboptimal build behavior on macOS Date: Mon, 01 Jan 2018 15:05:02 +0000 Message-ID: References: <20180101145919.GC86834@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114c563e204a540561b84f73" X-Trace: blaine.gmane.org 1514819066 16899 195.159.176.226 (1 Jan 2018 15:04:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2018 15:04:26 +0000 (UTC) Cc: 29931@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 01 16:04:22 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW1dP-0003Wc-1U for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jan 2018 16:04:15 +0100 Original-Received: from localhost ([::1]:32788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eW1fM-0008KI-2n for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jan 2018 10:06:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eW1fB-0008Jf-MX for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 10:06:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eW1f8-0006FH-CT for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 10:06:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eW1f8-0006En-7w for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 10:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eW1f7-0001Ic-Qv for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2018 10:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jan 2018 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29931 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29931-submit@debbugs.gnu.org id=B29931.15148191204942 (code B ref 29931); Mon, 01 Jan 2018 15:06:01 +0000 Original-Received: (at 29931) by debbugs.gnu.org; 1 Jan 2018 15:05:20 +0000 Original-Received: from localhost ([127.0.0.1]:59996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW1eS-0001He-8B for submit@debbugs.gnu.org; Mon, 01 Jan 2018 10:05:20 -0500 Original-Received: from mail-qk0-f169.google.com ([209.85.220.169]:39427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW1eQ-0001HR-GK for 29931@debbugs.gnu.org; Mon, 01 Jan 2018 10:05:18 -0500 Original-Received: by mail-qk0-f169.google.com with SMTP id c5so4746qkg.6 for <29931@debbugs.gnu.org>; Mon, 01 Jan 2018 07:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x4BzA5lfJt5WIA+ffWUtz3aOegDpDvdYGVURQ1Th/wA=; b=OwLw9AaGew1dHM3xfABgYCKfsEVIkrGGgiXiB0rGqxmL8eGwsPVnRAQ8C8kocq13d5 vAzn+mKFsbFw9GMTsWrFzisbqHP7e7C2SnIvWBBSW5XyHHeyEkH6odgiWHIG7g8I0/1T mT+iC/7KBOqtUCbPh7ZqIgJACohQMAOY/yWOMN80My+i/FjYqN+E8NdYYBfWHJeW9YXt LRDNs08HH4aZYEitM5ptnNp3TC2ixJCeBELmaMR5sgGyWtRYlObX1XnkVwoVB1Cubtox dcSuCZsuJzbhVzftTVLO53v/0Hs9IH12G55GONBXIJJ9k4SCeS+gOp/ZqWVYKTiUwd0E LWGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x4BzA5lfJt5WIA+ffWUtz3aOegDpDvdYGVURQ1Th/wA=; b=TzN3xIaIVWoBu1VBy76i9OO3kDbZkiFxD+AcIAG0WgFxdjoX2Zna1bM7X8tfPg0zOf T3IxdBK9VaFU7vHWuVjx2wjCbAPTqhLYSBuc8GAStzmvGUPLxpUCNe11pwxvh7KiEBlu 3W8BfFnD5aePgjAGVxJMI8h8jDutq4k7TNelHoI9VPibH1MuurkwsrSNn2W8Pv49FMrN SeTPrLgp01bqOj1m6YuphDpRT1MBLc9cSNFPf7eZF7RHTqtO4ORTur2PxdvQ/j+k53SF RsQeDrzk5rOmPz8f26Z7OCPuhS7V8t/+jIjkYM7Eu8NLCKO25jGGRbbPXDeeiZx3dlPK JA4w== X-Gm-Message-State: AKGB3mLDhXRqTQoA0mKUugB7PWJNRYjt4LawiT+25QpQ7v0CTWYH/AEX rzGxfdSyIHoqCAzOpGVzSFX6sw9VuuNo5+qFHps= X-Google-Smtp-Source: ACJfBos6I/oXKbTetFqEV+YI3PGxswZDiADHFjM4+psq6BEfdgwx6L5TDdTGL++t0LK4ujVnwFMbs3WfMZuNiz3tVak= X-Received: by 10.55.10.7 with SMTP id 7mr55296101qkk.198.1514819112944; Mon, 01 Jan 2018 07:05:12 -0800 (PST) In-Reply-To: <20180101145919.GC86834@breton.holly.idiocy.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141687 Archived-At: --001a114c563e204a540561b84f73 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Alan Third schrieb am Mo., 1. Jan. 2018 um 15:59 Uhr: > On Mon, Jan 01, 2018 at 01:15:09PM +0100, Philipp wrote: > > > > There are a few small bugs when building on macOS and not passing the > > right configure options. > > > > 1. When running configure without options, the build fails with an erro= r > > > > xml.c:26:10: fatal error: 'libxml/tree.h' file not found > > #include > > ^~~~~~~~~~~~~~~ > > > > Apparently configure detects libxml2 to be present, but doesn't set the > > correct include path. > > This works fine here. Is it possible this was introduced by macOS > 10.13? > > Do you see the file in /usr/include/libxml2/libxml/? > No, /usr/include doesn't exist at all on my system. The include directory is /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo= per/SDKs/MacOSX.sdk/usr/include. > > > 2. When building with --without-libxml2, the build succeeds, but gives > > warnings like > > > > GEN ../../info/auth.info > > ./../emacs/docstyle.texi:3: warning: unrecognized encoding name `UTF-8'= . > > > > This is because macOS ships an ancient version of makeinfo (4.8). It's > > possible to install a newer version using Homebrew, but that's not in > > PATH and therefore not found. Maybe configure could also search for > > makeinfo in the Homebrew directory (/usr/local/opt/texinfo/bin)? > > I=E2=80=99d think it=E2=80=99s the user=E2=80=99s responsibility to make = sure /usr/local/bin > is on their path if they want to use homebrew stuff? > > /usr/local/bin doesn't contain makeinfo when installed via Homebrew. This is intentional; `brew info texinfo` says =3D=3D> *Caveats* This formula is keg-only, which means it was not symlinked into /usr/local, because software that uses TeX, such as lilypond and octave, require a newe= r version of these files. If you need to have this software first in your PATH run: echo 'export PATH=3D"/usr/local/opt/texinfo/bin:$PATH"' >> ~/.bash_profil= e I can obviously do that or set MAKEINFO explicitly when invoking configure, but it would be nice if configure detected this situation automatically. --001a114c563e204a540561b84f73 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Alan T= hird <alan@idiocy.org> schrieb= am Mo., 1. Jan. 2018 um 15:59=C2=A0Uhr:
On Mon, Jan 01, 2018 at 01:15:09PM +0100, Philipp wrote:
>
> There are a few small bugs when building on macOS and not passing the<= br> > right configure options.
>
> 1. When running configure without options, the build fails with an err= or
>
> xml.c:26:10: fatal error: 'libxml/tree.h' file not found
> #include <libxml/tree.h>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~
>
> Apparently configure detects libxml2 to be present, but doesn't se= t the
> correct include path.

This works fine here. Is it possible this was introduced by macOS
10.13?

Do you see the file in /usr/include/libxml2/libxml/?
<= br>
No, /usr/include doesn't exist at all on my system. The i= nclude directory is /Applications/Xcode.app/Contents/Developer/Platforms/Ma= cOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include.
=C2=A0

> 2. When building with --without-libxml2, the build succeeds, but gives=
> warnings like
>
>=C2=A0 =C2=A0GEN=C2=A0 =C2=A0 =C2=A0 ../../info/auth.info
> ./../emacs/docstyle.texi:3: warning: unrecognized encoding name `UTF-8= '.
>
> This is because macOS ships an ancient version of makeinfo (4.8).=C2= =A0 It's
> possible to install a newer version using Homebrew, but that's not= in
> PATH and therefore not found.=C2=A0 Maybe configure could also search = for
> makeinfo in the Homebrew directory (/usr/local/opt/texinfo/bin)?

I=E2=80=99d think it=E2=80=99s the user=E2=80=99s responsibility to make su= re /usr/local/bin
is on their path if they want to use homebrew stuff?


/usr/local/bin doesn't contain mak= einfo when installed via Homebrew. This is intentional; `brew info texinfo`= says

=3D=3D> Caveats

This formula is = keg-only, which means it was not symlinked into /usr/local,

because software= that uses TeX, such as lilypond and octave, require a newer

version of these= files.


If you need to h= ave this software first in your PATH run:

=C2=A0=C2=A0e= cho 'export PATH=3D"/usr/local/opt/texinfo/bin:$PATH"' &g= t;> ~/.bash_profile

I can obviously do that or = set MAKEINFO explicitly when invoking configure, but it would be nice if co= nfigure detected this situation automatically.=C2=A0
--001a114c563e204a540561b84f73--