Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654794 - dev-lang/php[gd,truetype] (all version) failed to build due to freetype-config removed from >=media-libs/freetype-2.9.1
Summary: dev-lang/php[gd,truetype] (all version) failed to build due to freetype-confi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 654848 (view as bug list)
Depends on:
Blocks: freetype-config
  Show dependency tree
 
Reported: 2018-05-04 06:30 UTC by Seong-ho Cho
Modified: 2018-11-11 02:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seong-ho Cho 2018-05-04 06:30:27 UTC
This bug is occured by #654792, related log is below here.
#654792 should be resolved to fix this bug.

... (omitted) ...

checking for FlatFile support... builtin
checking whether to enable DBA interface... yes
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for ENCHANT support... yes
checking for enchant_broker_set_param in -lenchant... yes
checking whether to enable EXIF (metadata from images) support... yes
checking for fileinfo support... yes
checking for strcasestr... yes
checking for utimes... yes
checking for strndup... yes
checking whether to enable input filter support... yes
checking pcre install prefix... /usr
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... /usr
checking for GD support... yes
checking for the location of libwebp... /usr
checking for the location of libjpeg... /usr
checking for the location of libpng... /usr
checking for the location of libXpm... /usr
checking for FreeType 2... /usr
checking whether to enable JIS-mapped Japanese font support in GD... yes
checking for WebPGetInfo in -lwebp... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
configure: error: freetype-config not found.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/php-7.2.5/work/sapis-build/cli/config.log
 * ERROR: dev-lang/php-7.2.5::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  124:  Called src_configure
 *             environment, line 2839:  Called econf '--prefix=/usr/lib64/php7.2' '--mandir=/usr/lib64/php7.2/man' '--infodir=/usr/lib64/php7.2/info' '--libdir=/usr/lib64/php7.2/lib' '--with-libdir=lib64' '--localstatedir=/var' '--without-pear' '--enable-maintainer-zts' '--without-password-argon2' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-gcov' '--enable-ctype' '--with-curl=/usr' '--enable-dom' '--with-enchant=/usr' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--disable-ftp' '--with-gettext=/usr' '--with-gmp=/usr' '--enable-hash' '--with-mhash=/usr' '--with-iconv' '--enable-intl' '--enable-ipv6' '--enable-json' '--with-kerberos=/usr' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-mbstring' '--with-onig=/usr' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--enable-pcntl' '--enable-phar' '--enable-pdo' '--enable-opcache' '--without-pgsql' '--enable-posix' '--with-pspell=/usr' '--without-recode' '--enable-simplexml' '--disable-shmop' '--without-snmp' '--enable-soap' '--disable-sockets' '--without-sodium' '--with-sqlite3=/usr' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--with-tidy=/usr' '--enable-tokenizer' '--enable-wddx' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xmlrpc' '--with-xsl=/usr' '--enable-zip' '--without-libzip' '--with-zlib=/usr' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4=/usr' '--enable-flatfile' '--with-gdbm=/usr' '--enable-inifile' '--without-qdbm' '--without-lmdb' '--with-freetype-dir=/usr' '--enable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-webp-dir=/usr' '--with-gd' '--with-imap=/usr' '--with-imap-ssl=/usr' '--without-interbase' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--with-mysqli=mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-unixODBC=/usr' '--with-iodbc=/usr' '--without-oci8' '--with-pdo-dblib=/usr' '--with-pdo-mysql=mysqlnd' '--without-pdo-pgsql' '--with-pdo-sqlite=/usr' '--without-pdo-firebird' '--with-pdo-odbc=unixODBC,/usr' '--without-pdo-oci' '--with-readline=/usr' '--without-libedit' '--without-mm' '--with-pic' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--without-pcre-valgrind' '--without-pcre-jit' '--cache-file=/var/tmp/portage/dev-lang/php-7.2.5/temp/config.cache' '--with-config-file-path=/etc/php/cli-php7.2' '--with-config-file-scan-dir=/etc/php/cli-php7.2/ext-active' '--disable-embed' '--enable-cli' '--disable-cgi' '--disable-fpm' '--without-apxs2' '--disable-phpdbg'
 *        phase-helpers.sh, line  718:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  121:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/php-7.2.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/php-7.2.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/php-7.2.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-7.2.5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/php-7.2.5/work/sapis-build/cli'
 * S: '/var/tmp/portage/dev-lang/php-7.2.5/work/php-7.2.5'
Comment 1 Seong-ho Cho 2018-05-04 06:38:04 UTC
I checked that this bug is exactly same with #654792.

*** This bug has been marked as a duplicate of bug 654792 ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-04 06:39:30 UTC
This is not a duplicate. php packages need to be fixed instead.
Comment 3 Seong-ho Cho 2018-05-04 08:02:46 UTC
Poly-C:
in #654792

"After a routine `emerge -avuDN world` I noticed my PHP packages (5.6, 7.0 and 7.2) failed to complete the configure phase for the same reason:

...snip...
checking for FreeType 2... /usr
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-webp-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype-config not found.
...snip..."

so description is the same and I thought solution will also same.

I found ext/gd/config.m4 and configure causes this problem when we try to build php, as you know.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-04 17:58:02 UTC
*** Bug 654848 has been marked as a duplicate of this bug. ***
Comment 5 Brian Evans (RETIRED) gentoo-dev 2018-05-04 18:03:50 UTC
Only the gd extension/USE looks for freetype
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-04 18:30:10 UTC
Yeah, here are the lines that need changes:

https://github.com/php/php-src/blob/master/ext/gd/config.m4#L186

I already tried to make it use pkg-config but I failed miserably...
Comment 7 Brian Evans (RETIRED) gentoo-dev 2018-05-04 19:35:28 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #6)
> Yeah, here are the lines that need changes:
> 
> https://github.com/php/php-src/blob/master/ext/gd/config.m4#L186
> 
> I already tried to make it use pkg-config but I failed miserably...

I have a patch incoming.. you also have to patch ./configure too
Comment 8 Larry the Git Cow gentoo-dev 2018-05-04 21:03:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ef0a9d7feaa6bc13c22a33267a1bd496d98e8d

commit 71ef0a9d7feaa6bc13c22a33267a1bd496d98e8d
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-05-04 21:03:32 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-05-04 21:03:32 +0000

    dev-lang/php: Fix building with freetype 2.9.1 by using pkgconfig
    
    Closes: https://bugs.gentoo.org/654794
    Package-Manager: Portage-2.3.36, Repoman-2.3.9

 dev-lang/php/files/php-freetype-2.9.1.patch | 231 ++++++++++++++++++++++++++++
 dev-lang/php/php-5.6.35-r1.ebuild           |   1 +
 dev-lang/php/php-5.6.36.ebuild              |   1 +
 dev-lang/php/php-7.0.29.ebuild              |   1 +
 dev-lang/php/php-7.0.30.ebuild              |   1 +
 dev-lang/php/php-7.1.16.ebuild              |   1 +
 dev-lang/php/php-7.1.17.ebuild              |   1 +
 dev-lang/php/php-7.2.5.ebuild               |   1 +
 8 files changed, 238 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2018-05-08 17:56:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=400a7eb881369ddda92d5d16b9a31179d44a6bfa

commit 400a7eb881369ddda92d5d16b9a31179d44a6bfa
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-05-08 17:56:32 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-05-08 17:56:32 +0000

    dev-lang/php: Fix freetype patch to make sure functions are available
    
    Bug: https://bugs.gentoo.org/654794
    Package-Manager: Portage-2.3.36, Repoman-2.3.9

 dev-lang/php/files/php-freetype-2.9.1.patch | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 10 Eli Schwartz gentoo-dev 2018-11-11 02:01:39 UTC
The correct fix is https://github.com/php/php-src/pull/3632 and the upstream tracking bug is https://bugs.php.net/bug.php?id=76324