Bug #64405 [Opn->Csd]: Use freetype-config for determining freetype2 dir(s)
| From: | aharvey@php.net | Date: | Wed, 11 Dec 2013 22:04:53 +0000 |
| Subject: | Bug #64405 [Opn->Csd]: Use freetype-config for determining freetype2 dir(s) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183244@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64405&edit=1
ID: 64405
Updated by: aharvey@php.net
Reported by: olemarkus@php.net
-Summary: Use pkg-config for determining freetype2 dir(s)
+Summary: Use freetype-config for determining freetype2 dir(s)
-Status: Open
+Status: Closed
Type: Bug
Package: GD related
PHP Version: 5.4.12
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2013-12-11 21:19:10] pgnet dot dev+phpbugs at gmail dot com
referencing my duplicate #66259, pkg-config or freetype-config are flexible options. here, they
produce different results:
pkg-config --cflags --libs freetype2
-I/usr/include/freetype2 -lfreetype
freetype-config --cflags --libs
-I/usr/include/freetype2
-lfreetype -lz -lpng15
a quick workaround @ php config-time, changing both
perl -pi -e 's|(FREETYPE2_INC_DIR)=.*|$1=\$i/include|g' ./configure
perl -pi -e 's|freetype2/freetype/freetype.h|freetype2/freetype.h|g' ./configure
and
export CPPFLAGS="
pkg-config --cflags freetype2"
which 'fixes' missing incorrect path references in GD ext, allows config & build to
complete.
------------------------------------------------------------------------
[2013-12-11 21:07:27] aharvey@php.net
Related To: Bug #66198
------------------------------------------------------------------------
[2013-12-11 21:07:16] aharvey@php.net
Related To: Bug #66259
------------------------------------------------------------------------
[2013-03-11 12:45:29] olemarkus@php.net
Description:
------------
Currently PHP does not use pkg-config to determine the location of freetype2
header files. Instead it looks for freetype.h in a set of dirs. On e.g multilib
systems this causes ./configure to fail when using --with-freetype-dir
pkg-config --cflags freetype2
-I/usr/lib64/freetype2/include/freetype2 -I/usr/lib64/freetype2/include
And header files like:
/usr/lib64/freetype2/include/ft2build.h
/usr/lib64/freetype2/include/freetype2/freetype/freetype.h
Downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=459598
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64405&edit=1