FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't link ft2font to zlib by default. by anntzer · Pull Request #15378 · matplotlib/matplotlib · GitHub

Repository navigation

Don't link ft2font to zlib by default. - #15378

Merged
dopplershift merged 2 commits into
matplotlib:masterfrom
anntzer:zless
Oct 21, 2019
Merged

dopplershift merged 2 commits into
matplotlib:masterfrom
anntzer:zless

Conversation

anntzer commented Oct 4, 2019

Copy link
Copy Markdown
Contributor

PR Summary

First commit:

A default build of freetype (e.g. the one from MPLLOCALFREETYPE=1) uses
its own vendored version of zlib (see FT_CONFIG_OPTION_SYSTEM_ZLIB in
ftoption.h), so we don't need to link to zlib in that case; if we're
linking against a system freetype then we can assume that pkg-config
will list the right libraries to link.
https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/config/ftoption.h#n204

Not linking zlib explicitly means that the staticbuild option is not
used anymore and can just be stripped out.

Second commit:

Update build docs.
TL;DR: set MPLLOCALFREETYPE=1 and call it a day, unless you really know
what you want to do.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

anntzer added the Build label Oct 4, 2019
tacaswell added this to the v3.3.0 milestone Oct 16, 2019

Copy link
Copy Markdown
Member

This needs a re-base, but 👍

anntzer commented Oct 16, 2019

Copy link
Copy Markdown
Contributor Author

rebased.

QuLogic commented Oct 17, 2019

Copy link
Copy Markdown
Member

I'm hesitant to merge while builds are failing.

A default build of freetype (e.g. the one from MPLLOCALFREETYPE=1) uses
its own vendored version of zlib (see FT_CONFIG_OPTION_SYSTEM_ZLIB in
ftoption.h), so we don't need to link to zlib in that case; if we're
linking against a system freetype then we can assume that pkg-config
will list the right libraries to link.

Not linking zlib explicitly means that the staticbuild option is not
used anymore and can just be stripped out.
TL;DR: set MPLLOCALFREETYPE=1 and call it a day, unless you really know
what you want to do.
dopplershift merged commit 01b5833 into matplotlib:master Oct 21, 2019
anntzer deleted the zless branch October 21, 2019 16:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL