From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Autodetect imagemagick on macOS + Homebrew Date: Sun, 28 Jan 2018 18:35:41 +0000 Message-ID: References: <20180110213750.GA16679@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114082e0301dbd0563da66cc" X-Trace: blaine.gmane.org 1517164469 19996 195.159.176.226 (28 Jan 2018 18:34:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2018 18:34:29 +0000 (UTC) Cc: Emacs-Devel devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 28 19:34:25 2018 Return-path: Envelope-to: ged-emacs-devel@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 1efrmC-0003UY-RY for ged-emacs-devel@m.gmane.org; Sun, 28 Jan 2018 19:34:01 +0100 Original-Received: from localhost ([::1]:54308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efroD-00063p-AQ for ged-emacs-devel@m.gmane.org; Sun, 28 Jan 2018 13:36:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efro2-000635-Ks for emacs-devel@gnu.org; Sun, 28 Jan 2018 13:35:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efro1-00082l-MC for emacs-devel@gnu.org; Sun, 28 Jan 2018 13:35:54 -0500 Original-Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:43924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efro1-00082F-Cr for emacs-devel@gnu.org; Sun, 28 Jan 2018 13:35:53 -0500 Original-Received: by mail-lf0-x234.google.com with SMTP id o89so6783607lfg.10 for ; Sun, 28 Jan 2018 10:35:53 -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=3LkydbZiveadPYNjVoNvFr0wr/Qzgn0KqUYddgKymKg=; b=mQe57xrU3i7RJAQrQrrBnKMbbNmhGRHJMKGJH/x3k1Yh60KFCAx8BQprdaq1UySdjn LLSrGwSL4EFcKAuVFxNGWotAikJ3rNObLUqqCURxXCk7xFGPNyVLk+zPAEYCj9D/nxT2 SWJ8jpQF3qX2yANpVgiwaLRz3IXND6ObKTFoJcXXuUi6MYk2LDoB4kdEcMh2EpDkl5yD jyBSnSORYtWgp4UuJEU/0mh1NXCCqcd0ZEsaQWPSmSrHCdK8OOarbTeUzN5EccF7rQkK OedfSX582+9ZzS1cu7P+U0HVp/3Lrq5AkDsIx6VulZL3FeZ/XwPX19KzkLI9VPAcIYQQ 2fkg== 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=3LkydbZiveadPYNjVoNvFr0wr/Qzgn0KqUYddgKymKg=; b=cVScYlYDk2WXDsd442HZOmnBvH/N2tAad8Q5t/enncxiHUHJC+meLTbAzkvW5ZzJp9 aoiQ/pQ/HDtmvCJ5U58f9/sgrcpyARgnqAf74uVlEGiALaWcvyqTi/pJ8c2/TYhh37RS WUx8zWCAXre2Cn25DKFZ9ve5l7yVlWPBRvqy581W7MaP0gLvVDls8fSElrcGBjiOA3I4 oxHo0j9CZcKFDoMOntgWsurktEYBMPlZZNdIPKWfWgVIj4wrf/KNv3rWzpClbd9Urj2D SqhUfR4gVEeYZUHppaLsjPENAeeXLz+PitMnw2Hzt0zIk2c6eOMvWHH+ySHvI59Dqys5 +zYA== X-Gm-Message-State: AKwxyteNOdn2rGgXS1zHb/go8rVRP7WtMVHVtQpBYLO614ycZOEf2gts IrueaPmDg3Rp92+zaUTdAyQmD/x8+pbrfWTX69ae8g== X-Google-Smtp-Source: AH8x2251djQFsRkVD4QdSGXsKrRURKCSJnXkDJM/fFCWuc7MKa6Ftnj40SsAGwWwgX9j/A1LWgCGLbiQD4JMNerq2fM= X-Received: by 10.25.22.2 with SMTP id m2mr12229923lfi.21.1517164552001; Sun, 28 Jan 2018 10:35:52 -0800 (PST) In-Reply-To: <20180110213750.GA16679@breton.holly.idiocy.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222277 Archived-At: --001a114082e0301dbd0563da66cc Content-Type: text/plain; charset="UTF-8" Alan Third 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, but this might be a bit too implicit and brittle - how certain are we that brew will print the empty string here forever? Maybe it would be better to check the return value of brew and append the path segments only if it has suceeded. --001a114082e0301dbd0563da66cc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Alan T= hird <alan@idiocy.org> schrieb= am Mi., 10. Jan. 2018 um 22:38=C2=A0Uhr:
When imagemagick 6 is installed on macOS using Homebrew it can be a<= br> 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 concat= enations work if the packages aren't installed. `brew --prefix texinfo = 2>/dev/null`/bin results in /bin if texinfo isn't installed, but thi= s might be a bit too implicit and brittle - how certain are we that brew wi= ll print the empty string here forever? Maybe it would be better to check t= he return value of brew and append the path segments only if it has suceede= d.=C2=A0
--001a114082e0301dbd0563da66cc--