Solved poudriere & php73-gd

I can't get poudriere-3.3.2_1 to build php73-gd-7.3.7 due to a configure error
Code:
checking for FreeType 2... /usr/local
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.
===>  Script "configure" failed unexpectedly.
Please report the problem to tz@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/graphics/php73-gd/work/php-7.3.7/ext/gd/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
The same configure error happens for php72-gd and libwmf-nox11. libwmf-nox11 is needed for php73-pecl-imagick-im7 and/or php72-pecl-imagick-im7, the other php graphics library.

The problem seems to be tied into a ~15 years old less-than-optimal practice from php's side:

But I didn't learn anything I could apply to poudriere. How do others go about building one of the two packages with poudriere?

Please let me know if more info is needed
 
Well, I'm sorry to say, that I didn't thought about trying to build graphics/php73-gd in a new jail, because it worked without any problems. The configure error is changed to
checking for FreeType 2... /usr/local
and the build goes through.

On the build that fails, I've have indeed set a fair amount of OPTIONS for the different ports to non-default values. I will probably try to experiment a bit with the OPTIONS again, and see if I can zero in on where the problem is.

Thank you very much for your help and sorry for the noise.
 
Back
Top