-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure finds libpng but matplotlib does not #29448
Comments
This comment has been minimized.
This comment has been minimized.
comment:5
Could you try if #29444 (Upgrade matplotlib to 2.2.5) fixes it? |
comment:6
What exactly failed? |
comment:7
Replying to @mkoeppe:
I will, but I ran into #29449 first. Replying to @orlitzky:
I see this in the matplotlib log file:
and then the build fails. |
comment:8
Same problem with the upgrade to 2.2.5. |
comment:9
Note that installing Sage's |
comment:10
This looks to me like an issue with Homebrew installing packages in a non-standard location, and then they get mixed up with system packages. It should be totally indifferent whether it is using Sage's pkgconf (providing pkg-config), or system's pkg-config, they both do exactly the same thing (if not, it's a bug in our management of its PKG_CONFIG_PATH). |
comment:11
libpng.pc is unusual in that it |
comment:12
Possibly related: build error of sagelib,
reported at https://groups.google.com/d/msg/sage-support/Oh3ev_wrjyo/od4R2FCNDQAJ |
comment:13
It's likely the same thing: spkg-configure.m4 has a sneaky way of finding libpng but does not tell any of the other packages - matplotlib and now sagelib. |
comment:15
if we use Homebrew, can we just bail out if pkg-config is not installed? |
comment:16
No, that's not the correct solution. If an spkg-configure has more general ways of finding a library than one of the spkgs depending on it, then spkg-configure needs to communicate the install information to that spkg. |
comment:17
Replying to @mkoeppe:
you say that reinventing the wheel is the correct solution... Writing tricky autoconf code, where the user can simply do |
comment:18
No, the problem is that the autoconf code is already too tricky and finds more libpng than the spkgs that it is guarding. |
comment:19
The code I wrote there assumed that users are sane, and install a meaningful set of tools. You propose to make it dumber to make it work in pathological cases, I don't get why this is needed, sorry. |
Commit: |
comment:21
It was a great initiative to get these spkg-configure files started, and now we are refining them so that they do their job correctly --- by testing on many platforms. New commits:
|
comment:22
See code comments for better explanation. |
comment:23
ok, this will do, sorry for noise. |
Reviewer: Dima Pasechnik |
comment:24
is it ready? |
comment:25
Ready for review |
Author: Matthias Koeppe |
comment:26
LGTM |
comment:27
Thanks! |
Changed branch from u/mkoeppe/configure_finds_libpng_but_matplotlib_does_not to |
comment:29
Same for zlib->pillow in #30103 |
Changed commit from |
This happens at least in the following situation: Sage 9.1.beta9 on OS X, using the system's rather than Sage's Python, no pkg-config installed.
CC: @jhpalmieri @dimpase @orlitzky
Component: build: configure
Author: Matthias Koeppe
Branch:
0ac76c3
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/29448
The text was updated successfully, but these errors were encountered: