Bug #76310 [Com]: with-freetype-dir doesn't work with custom prefix

From: Date: Fri, 31 Aug 2018 09:11:37 +0000
Subject: Bug #76310 [Com]: with-freetype-dir doesn't work with custom prefix
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216828@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76310&edit=1

 ID:                 76310
 Comment by:         php-bugs-2018 at ryandesign dot com
 Reported by:        fred5 at originsystems dot co dot za
 Summary:            with-freetype-dir doesn't work with custom prefix
 Status:             Open
 Type:               Bug
 Package:            GD related
 Operating System:   CentOS 7
 PHP Version:        7.1.17
 Block user comment: N
 Private report:     N

 New Comment:

fred5, if "[custom directory]/bin/freetype-config --cflags" returns
"-I/usr/include/freetype2", as you say, then it sounds like your complaint is with
freetype-config, not php. It shouldn't be doing that (and doesn't on my system). Maybe
your freetype-config was built wrong, or I've just realized that freetype-config from freetype
2.8 and later uses a different codepath depending on whether or not pkg-config was found at build
time and is still available at runtime. Check your freetype-config, and if it is using pkg-config,
try it without; or if it isn't, try it with.


Previous Comments:
------------------------------------------------------------------------
[2018-07-04 12:10:44] fred5 at originsystems dot co dot za

Related To: Bug #76324

------------------------------------------------------------------------
[2018-05-14 20:47:12] cmb@php.net

It seems to me we're merely hitting a limitation of
freetype-config here, and the cleanest way to get rid of this
limitation would be to switch to pkg-config (see
<https://bugs.php.net/76324>).

For time reasons I won't be able to have a closer look at this
now, so I'm unassigning myself.  A pull request would certainly be
welcome.

------------------------------------------------------------------------
[2018-05-14 16:33:32] fred5 at originsystems dot co dot za

bump.

apologies for push on this but it as configure is generated dynamically this is a a real problem for
our automated build and I would greatly appreciate knowing whether this has been accepted as a real
bug and whether I can expect a fix to appear. thanks

------------------------------------------------------------------------
[2018-05-10 21:53:25] cmb@php.net

Related To: Bug #76324

------------------------------------------------------------------------
[2018-05-08 13:01:33] fred5 at originsystems dot co dot za

One other thing possibly worth mentioning is that I use and process a number of other PHP configure
switches for custom library locations such as:

--with-icu-dir
--with-apxs2
--with-curl
etc

in exactly the same way and all work fine ie. -I[correct custom directory prefix]. 

freetype is the only custom built library that incorrectly reports -I/usr/include/freetype2

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=76310


--
Edit this bug report at https://bugs.php.net/bug.php?id=76310&edit=1


Thread (10 messages)

« previous php.bugs (#216828) next »