Bug #76324 [NEW]: [ext/gd] cannot detect recent versions of freetype with pkg-config

From: Date: Thu, 10 May 2018 15:54:09 +0000
Subject: Bug #76324 [NEW]: [ext/gd] cannot detect recent versions of freetype with pkg-config
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215188@lists.php.net to get a copy of this message
From: eschwartz at archlinux dot org Operating system: unix-like PHP version: Irrelevant Package: Compile Failure Bug Type: Bug Bug description:[ext/gd] cannot detect recent versions of freetype with pkg-config Description: ------------ To be more specific, it's using freetype-config to detect freetype, and doesn't try using pkg-config at all. This is wrong, as pkg-config is a comprehensive standard which should be used whenever possible, as in fact php tries to do in other areas *before* falling back on legacy "foo-config" style shellscripts. This is also problematic, since https://savannah.nongnu.org/bugs/?53093 removed the freetype-config script by default, meaning that for the current version of freetype and all future versions it cannot be relied upon to exist. Meanwhile, it has been available via pkg-config for approximately 15 years. Since https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=1c513fbb8872bfac5631964963b6a751169a1ce6 freetype-config will even do its best to invoke pkg-config on your behalf (but not entirely successfully in all cases, see the referenced bug). There's no good reason to continue using the -config wrapper at all. Expected result: ---------------- php versions 5.6 through 7.2 (any and all supported versions) should compile on Arch Linux with freetype >= 2.9.1 Actual result: -------------- No versions of php will compile, aborting with the error message: configure: error: freetype-config not found. -- Edit bug report at https://bugs.php.net/bug.php?id=76324&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76324&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76324&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76324&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76324&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76324&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76324&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76324&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76324&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76324&r=support Expected behavior: https://bugs.php.net/fix.php?id=76324&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76324&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76324&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76324&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76324&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76324&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76324&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76324&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76324&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76324&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76324&r=mysqlcfg

« previous php.bugs (#215188) next »