all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 29931@debbugs.gnu.org
Subject: bug#29931: 27.0.50; Slightly suboptimal build behavior on macOS
Date: Mon, 1 Jan 2018 15:48:01 +0000	[thread overview]
Message-ID: <20180101154801.GA53381@breton.holly.idiocy.org> (raw)
In-Reply-To: <CAArVCkQB8wzNEQPu4tZv9Ycacm8AHZLsMAtYQREWNiHP3G+Kcg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

On Mon, Jan 01, 2018 at 03:05:02PM +0000, Philipp Stephani wrote:
> Alan Third <alan@idiocy.org> schrieb am Mo., 1. Jan. 2018 um 15:59 Uhr:
> 
> > I’d think it’s the user’s 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
<snip>
> If you need to have this software first in your PATH run:
>   echo 'export PATH="/usr/local/opt/texinfo/bin:$PATH"' >> ~/.bash_profile
> 
> I can obviously do that or set MAKEINFO explicitly when invoking configure,
> but it would be nice if configure detected this situation automatically.

Ah, I think I must have linked it into /usr/local/bin myself.

Do you have any idea if other packaging tools do similar things?

Patch attached.
-- 
Alan Third

[-- Attachment #2: 0001-Use-Homebrew-installed-makeinfo-if-it-exists-bug-299.patch --]
[-- Type: text/plain, Size: 998 bytes --]

From 6fe03f8c62a063866504ef1c746ac01305b53890 Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Mon, 1 Jan 2018 15:44:24 +0000
Subject: [PATCH] Use Homebrew installed makeinfo if it exists (bug#29931)

* configure.ac: Add check for Homebrew texinfo install on darwin.
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index ec1418b99e..e695e0d791 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1267,6 +1267,13 @@ AC_DEFUN
 AC_SUBST([PAXCTL_dumped])
 AC_SUBST([PAXCTL_notdumped])
 
+# Makeinfo on macOS is ancient, check whether there is a more recent
+# version installed by Homebrew.
+if test "${opsys}" = darwin && test -z ${MAKEINFO} && \
+   test -d "/usr/local/opt/texinfo/bin"; then
+  MAKEINFO=/usr/local/opt/texinfo/bin/makeinfo
+fi
+
 ## Require makeinfo >= 4.13 (last of the 4.x series) to build the manuals.
 if test "${MAKEINFO:=makeinfo}" != "no"; then
   case `($MAKEINFO --version) 2>/dev/null` in
-- 
2.14.3


  parent reply	other threads:[~2018-01-01 15:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-01 12:15 bug#29931: 27.0.50; Slightly suboptimal build behavior on macOS Philipp
2018-01-01 13:13 ` Noam Postavsky
2018-01-01 13:51   ` Philipp Stephani
2018-01-01 14:54   ` Alan Third
2018-01-01 14:59 ` Alan Third
2018-01-01 15:05   ` Philipp Stephani
2018-01-01 15:12     ` Philipp Stephani
2018-01-01 15:53       ` Alan Third
2018-01-02 12:10         ` Alan Third
2018-01-02 20:03           ` Philipp Stephani
2018-01-02 21:51             ` Alan Third
2018-01-02 19:51         ` Philipp Stephani
2018-01-01 15:48     ` Alan Third [this message]
2018-01-02 19:42       ` Philipp Stephani
2018-01-02 19:48       ` Philipp Stephani
2018-01-02 19:49         ` Philipp Stephani
2018-01-02 20:04         ` Eli Zaretskii
2018-01-02 20:19           ` Alan Third
2018-01-02 21:24             ` Alan Third
2018-01-07 14:05               ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180101154801.GA53381@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=29931@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.