Closed Bug 985806 Opened 10 years ago Closed 10 years ago

freetype build system bases automatic detection of bzip2 and zlib on host files

Categories

(Firefox Build System :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla31

People

(Reporter: glandium, Assigned: mwu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #985803 +++

Freetype now finds the host harfbuzz when cross-compiling freetype for android and thus enables harfbuzz support.

The same applies to bzip2 and zlib. We can probably escape the bzip2 problem with --without-bzip2, but for zlib, we probably need something like we have for libpng. Mwu, would you mind taking this?
OS: Linux → Android
Hardware: x86_64 → All
Note this bug also probably means that without zlib development files on your host system, zlib support is disabled in freetype.
(In reply to Mike Hommey [:glandium] from comment #1)
> Note this bug also probably means that without zlib development files on
> your host system, zlib support is disabled in freetype.

freetype has its own copy of zlib that it turns on when it can't find some other copy. Still not great, since we don't want another extra copy of zlib.
Going to send off to the try server. Seems to work fine here. Also, this changes B2G's freetype to use the moz copy of zlib. Previously, it was using its internal copy.
Rebased and *_CFLAGS and *_LIBS made a bit more aggressive.
Attachment #8394265 - Attachment is obsolete: true
Attachment #8394582 - Flags: review?(mh+mozilla)
Blocks: 986580
Comment on attachment 8394582 [details] [diff] [review]
Explicitly enable zlib and disable bzip2, v2

Review of attachment 8394582 [details] [diff] [review]:
-----------------------------------------------------------------

::: configure.in
@@ +8967,4 @@
>     export CPPFLAGS="$CPPFLAGS $MOZ_DEBUG_FLAGS"
>     export CXXFLAGS="$CXXFLAGS $MOZ_DEBUG_FLAGS"
>     export LDFLAGS="$LDFLAGS $MOZ_DEBUG_LDFLAGS"
> +   export LIBPNG_CFLAGS="$MOZ_PNG_CFLAGS "

Please add a comment about the space, so that nobody thinks of removing them later on.
Attachment #8394582 - Flags: review?(mh+mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/2378f03042a2
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
blocking-b2g: --- → 1.3T?
Freetype 2.5.2 do not need this.
blocking-b2g: 1.3T? → ---
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: