From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: building emacs on macos 10.15, headers missing Date: Thu, 17 Oct 2019 10:29:50 +0100 Message-ID: <20191017092950.GA1849@breton.holly.idiocy.org> References: <642F79A1-2A2B-49C1-A56C-E8CFBA65BBCB@icloud.com> <20191014130904.GA45622@breton.holly.idiocy.org> <6CB54436-F4D4-46CA-AA03-87512FF7319A@traduction-libre.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0" Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="186230"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: emacs-devel@gnu.org To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 11:30:56 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iL27U-000mJt-71 for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 11:30:56 +0200 Original-Received: from localhost ([::1]:40644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL27T-0005Nb-28 for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 05:30:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52159) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL26a-0005ND-Hc for emacs-devel@gnu.org; Thu, 17 Oct 2019 05:30:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL26V-0003Vr-TE for emacs-devel@gnu.org; Thu, 17 Oct 2019 05:29:59 -0400 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:55860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL26V-0003Uc-Jj for emacs-devel@gnu.org; Thu, 17 Oct 2019 05:29:55 -0400 Original-Received: by mail-wm1-x336.google.com with SMTP id a6so1774768wma.5 for ; Thu, 17 Oct 2019 02:29:55 -0700 (PDT) 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=zN/8Orpwoy3QAIGYHVuoW6OqJ8F6o8ab74U6KUwHOZI=; b=o5YzrTiXWy6qYgSKn/eCbXtQwLNaHHSj2vgXMGB38qx8gGclA540fb1VatMzQx2AK8 HYU1fUYEQbF+lVQl+HdR7rrFDEajtmmu20dO+fkiPRADTofitl9orpN4d5lMMab/t153 4ntNBUOCfhom6DxFsulMESO+GWQjUyW1eALMv3Pt0+8Px7U56LVKh31MlmrgHpSvZuHA tbFWimiqiqhir0YYPd8mj+TXrC4mrTHJKt4kUr6SCB+zYSkjkYlYDBpYY60OT8hIg7Kf DR6+rwzY0m+qITQMGPBdOfdfQP1rwG2leNhgCRWe0IRFeVYVoHs9l+4aV/RLf6cjZIXU IFdA== 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=zN/8Orpwoy3QAIGYHVuoW6OqJ8F6o8ab74U6KUwHOZI=; b=DV2+/y/ct2+kGxCUbAmVSNLcTyHOu28zCXiXVk9Lqjsl+E2Gg6U/yhdrp3wiKvp59i jEbB3xA6NsTgI/fOrqaK9MvR7WgA4rp2mIi/C2BaZEopN1RBaac7dKb6Be9WxItp1AvO cWWbX4vHlnWiPzWUNo4euhei/6q8x3HnOkplwh/HbpgLjQjYPZYMosW8GkbXwZp4/cMG wyHo4gB+6hdKf1wpq221683rUJa+H4bp0pmqi3TYdrOp5DDZk2mYRV1RL6yblrkbDSsQ CfbWcqV6bvrE0Ddp1cTm+SYiOHJjHcuw5zfkSgDsKXwWsWhN9hFjDKQPZlBotZrur082 YWFg== X-Gm-Message-State: APjAAAU4gCgKWV/ck7QeJfOBQECYX8p/jeqHIWm5Ttb1fhc8f7KhpHye st29DcHqYcZdu6c2W7lH8i6h/18E X-Google-Smtp-Source: APXvYqxFR026cF1T60Zlpftqswbmh5A4wm2UIxK7DCF0TnQ+N/1Tq+K71WPVuAFklL8VkptuZWWTlw== X-Received: by 2002:a1c:f31a:: with SMTP id q26mr2005050wmq.92.1571304593913; Thu, 17 Oct 2019 02:29:53 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-7415-ea7a-be7a-b72e.holly.idiocy.org. [2001:8b0:3f8:8129:7415:ea7a:be7a:b72e]) by smtp.gmail.com with ESMTPSA id h17sm2099867wme.6.2019.10.17.02.29.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 02:29:52 -0700 (PDT) Content-Disposition: inline In-Reply-To: <6CB54436-F4D4-46CA-AA03-87512FF7319A@traduction-libre.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::336 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:241128 Archived-At: --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Oct 16, 2019 at 06:46:12AM +0900, Jean-Christophe Helary wrote: > > Is libxml2 the only thing it balks at? > > Yes, as far as I can tell. > > > I considered adding a homebrew > > check for it in configure, but thought the homebrew folk would > > eventually fix the pkg-config error they introduced so it wasn’t worth > > it. > > error ? Homebrew provide a broken .pc file for the system libxml2, it should be in /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//libxml-2.0.pc and points to /usr/include even if it doesn’t exist. I can’t find the bug report right now, but they had a solution and were just waiting for someone to implement it. Looks like that’s not happened yet. > > Perhaps now is the time to add that check to configure. > > I'd be happy to test. Patch attached. It’s very simple. There’s some code just after the new code I’ve added that should check for the existence of the xcode SDK directory, but I think the bogus .pc file provided by homebrew stops it from running. But I’ve a feeling it maybe doesn’t work anyway... -- Alan Third --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Allow-configure-to-find-libxml2-installed-by-homebre.patch" >From d503c59dc903cfb5129d566698016c1bb0398c96 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Thu, 17 Oct 2019 10:22:20 +0100 Subject: [PATCH] Allow configure to find libxml2 installed by homebrew * configure.ac: Add Homebrew provided .pc file to PKG_CONFIG_PATH. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 33d725c804..62ab35ab5a 100644 --- a/configure.ac +++ b/configure.ac @@ -4041,6 +4041,11 @@ AC_DEFUN ### mingw32 doesn't use -lxml2, since it loads the library dynamically. HAVE_LIBXML2=no if test "${with_xml2}" != "no"; then + if test -n "$BREW"; then + # Makesure pkg-config can find any version installed by homebrew. + export PKG_CONFIG_PATH="$PKG_CONFIG_PATH$PATH_SEPARATOR`$BREW --prefix libxml2 2>/dev/null`/lib/pkgconfig" + fi + ### I'm not sure what the version number should be, so I just guessed. EMACS_CHECK_MODULES([LIBXML2], [libxml-2.0 > 2.6.17]) # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. -- 2.21.0 --k+w/mQv8wyuph6w0--