From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Autodetect imagemagick on macOS + Homebrew Date: Mon, 15 Jan 2018 23:09:36 +0000 Message-ID: <20180115230936.GA69927@breton.holly.idiocy.org> References: <20180110213750.GA16679@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1516057716 4363 195.159.176.226 (15 Jan 2018 23:08:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2018 23:08:36 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) Cc: emacs-devel@gnu.org To: "Charles A. Roelli" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 16 00:08:32 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 1ebDrY-0008Dd-Pf for ged-emacs-devel@m.gmane.org; Tue, 16 Jan 2018 00:08:20 +0100 Original-Received: from localhost ([::1]:42475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebDtV-0002HY-5D for ged-emacs-devel@m.gmane.org; Mon, 15 Jan 2018 18:10:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebDsr-0002Gk-2X for emacs-devel@gnu.org; Mon, 15 Jan 2018 18:09:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebDsq-0002q6-0r for emacs-devel@gnu.org; Mon, 15 Jan 2018 18:09:41 -0500 Original-Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:37927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebDsp-0002po-PC for emacs-devel@gnu.org; Mon, 15 Jan 2018 18:09:39 -0500 Original-Received: by mail-wr0-x229.google.com with SMTP id x1so9194675wrb.5 for ; Mon, 15 Jan 2018 15:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=9WQlEXW7hVYLjNFT/LC/6yovqVpoTgFRFxQnbOduk7Y=; b=ROElcT1TSmP2CC3rAwekkx3At2BR0f7fTMkjUJ6yE3am3pKLPsA5sdvtHJo3pVuqqJ iZGhaLX6rcQT+0AtBP+SFvKj7uJHtwx7COEjdLdHsGZskA6yrOdb0zBmP42XrAx5agVb cV7Lc9YqrUg8k32fzGbBb6y7iSSVnc5R+BGM57A6zKDg10ArRELDkWXKTH/Y1GrT55gE ZhM5mkzW/c5Cph/AU94QfVHuLDpvqGZ8Pc+ZHcjPMakfXk19kKpIr2RkzvX3UOaAa0pU fbS+aM5RDnUdW9OKQVYGjblB9gWg5i/qKjjEgl4G1KJDgAxRc2omS5vAmHeVJCKLbHGv WC2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9WQlEXW7hVYLjNFT/LC/6yovqVpoTgFRFxQnbOduk7Y=; b=gBpWZ4tExArfvw0JvgU7Qd7eLb0nod/S2EzUdiWcL55CiLR9KuhU7n0yx0EnJUGBEd ZA9KllUZ4f71oN3uMvvzykSp4dHMyHlBinuOuufPVCUOK9xVLZ1r5CBMFXOV9PQws5Rq gobNQoCqX+2qt5Vpq6yJBDioM2NmUFMeLcqSAR0y/dteBWvyv1QGg4hcS0dzvAmkYmSz C8BFMD+yEQRt1a0bcrIg/eS0wrwGh9cwoRo8SsO3HC29WwgybUbs5wYSJBfSlaGob6Oo 1i6vgxSfzhuK3bgYhPgHksxu8fvC1YdRy1+Sx2pP0rXW2L2Mn7pZLcPAsquUe9g7WXeg IU3A== X-Gm-Message-State: AKwxytcALXUA1jtLGDOiIbpNJNRh55P1MHx/9bb9blOHsAIE2jgJAHRe DyJJ7wB2fh+jKMP2eK9jYZfDgCfc X-Google-Smtp-Source: ACJfBouYdcNgdP2CazjYGf2AYVXdAArrYgi+uBieHUrVv/cT/XzYkWNlGEGGRp67pmtxt5fDM/bCng== X-Received: by 10.223.161.198 with SMTP id v6mr11033344wrv.65.1516057778462; Mon, 15 Jan 2018 15:09:38 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-0c9f-d078-0073-e913.holly.idiocy.org. [2001:8b0:3f8:8129:c9f:d078:73:e913]) by smtp.gmail.com with ESMTPSA id 89sm597984wrl.22.2018.01.15.15.09.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jan 2018 15:09:37 -0800 (PST) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::229 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:221995 Archived-At: On Mon, Jan 15, 2018 at 08:42:41PM +0100, Charles A. Roelli wrote: > > Date: Wed, 10 Jan 2018 21:37:50 +0000 > > From: Alan Third > > > > 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. > > Thanks for looking into this. When I tried "brew" last time, I > remember running into a similar problem in this area. > > That said, isn't this a problem that should be fixed in the package > manager? Why does "brew" not place ImageMagick's pkg-config file > where they are usually stored? I’m not sure. I believe it’s because other applications use imagemagick 7, and they don’t want to cause issues by putting both on PATH or something. OTOH I don’t think that matters too much with pkg-config because it can detect versions, but I don’t really know. There’s a similar issue with makeinfo, which is why we’re detecting homebrew already. -- Alan Third