[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autodetect imagemagick on macOS + Homebrew
From: |
Alan Third |
Subject: |
Re: Autodetect imagemagick on macOS + Homebrew |
Date: |
Sun, 28 Jan 2018 23:50:09 +0000 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Sun, Jan 28, 2018 at 06:35:41PM +0000, Philipp Stephani wrote:
> Alan Third <address@hidden> schrieb am Mi., 10. Jan. 2018 um 22:38 Uhr:
>
> > When imagemagick 6 is installed on macOS using Homebrew it can be a
> > bit of a faff to get Emacs built with it. The attached patch
> > automatically adds it to PKG_CONFIG_PATH if Homebrew is detected.
> >
> >
> I'm wondering whether these concatenations work if the packages aren't
> installed. `brew --prefix texinfo 2>/dev/null`/bin results in /bin if
> texinfo isn't installed,
It doesn’t, actually. I’ve never installed tomcat on this laptop:
breton:/Users/alan>brew --prefix tomcat
/usr/local/Cellar/tomcat/8.5.27
Although it does return blank if the package doesn’t exist at all. (It
sends an error message to stderr.)
> Maybe it would be better to check the return value of brew and
> append the path segments only if it has suceeded.
Yes, it might be a good idea.
--
Alan Third