all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xu Xin <railwaycat@gmail.com>
Cc: 32927@debbugs.gnu.org
Subject: bug#32927: 27.0.50; libxml not found when building on macOS Mojave
Date: Mon, 15 Oct 2018 10:52:32 -0400	[thread overview]
Message-ID: <CAOtMdqnvkf7ZMvrTm_BN0tiay7s_ae_k3gUdTm5opyyi_emdTg@mail.gmail.com> (raw)
In-Reply-To: <wllg7dnsd3.wl-mituharu@math.s.chiba-u.ac.jp>

On Thu, Oct 4, 2018 at 8:35 PM YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp> wrote:
>
> tags 32927 notabug
> close 32927
> quit
>
> On Fri, 05 Oct 2018 06:22:22 +0900,
> Philipp Stephani wrote:
>
> > Yes, looks like this is the problem:
> >
> > $ pkg-config --cflags --libs "libxml-2.0 > 2.6.17"
> >
> > -I/usr/include/libxml2 -lxml2
> >
> > $ pkg-config --variable pcfiledir "libxml-2.0 > 2.6.17"
> >
> > /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12
>
> The file libxml-2.0.pc there (installed via Homebrew?) does not make
> sense (and actually does harm) unless the header files are installed
> into /usr/include.  You can do that by following the workaround
> mentioned in the Xcode release notes, but I'm not sure this is the way
> intended by the Homebrew developers (and I'm not using Homebrew).
> Maybe you want to ask it at some Homebrew forum.
>
> Anyway, this is not a bug in Emacs.  Closing.
>
>                                      YAMAMOTO Mitsuharu
>                                 mituharu@math.s.chiba-u.ac.jp
>
>
>

A ticket opened for Homebrew, but looks like there's no plan to fix it
for now: https://github.com/Homebrew/brew/issues/5068

A patch like this can also be a hack:

% cat pkgconfig_10.14.diff
diff --git a/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc
b/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc
index c297c6b45..7a037a9cf 100644
--- a/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc
+++ b/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc
@@ -1,7 +1,8 @@
 prefix=/usr
+xcode_prefix=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk${prefix}
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
-includedir=${prefix}/include
+includedir=${xcode_prefix}/include
 modules=1

 Name: libXML

Another interesting thing is Homebrew itself able to build emacs
successfully by command `brew install --build-from-source emacs`
without any header file error and any hack/workaround to *.pc files.
Maybe because of some internal settings.

- Xin





      reply	other threads:[~2018-10-15 14:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-03 21:19 bug#32927: 27.0.50; libxml not found when building on macOS Mojave Philipp
2018-10-03 23:10 ` Glenn Morris
2018-10-04  5:24   ` YAMAMOTO Mitsuharu
2018-10-04 21:22     ` Philipp Stephani
2018-10-05  0:34       ` YAMAMOTO Mitsuharu
2018-10-15 14:52         ` Xu Xin [this message]

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=CAOtMdqnvkf7ZMvrTm_BN0tiay7s_ae_k3gUdTm5opyyi_emdTg@mail.gmail.com \
    --to=railwaycat@gmail.com \
    --cc=32927@debbugs.gnu.org \
    /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.