Created attachment 220900 [details]
Patch for php73
Use pkg-config (pkgconfig) to detect freetype(2)
Patch obtained from Arch Linux
Compile tested on FreeBSD 13.0-CURRENT #0 r367711 (amd64)
Poudriere testport OK 12.2-RELEASE (amd64)
thank you for the patch! I have no rejections at all, but i also do not understand the improvements the patch brings. You can please give me some background on it?
Thank you very much!
I think this will answer your question
So we should switch to the prefered way of freetype itself?
Just 2 questions:
1. Shouldn't this also be ported into PHP itself? Patching always introduces effort and it seems that your patch just does the right think. So should this not be the default in upstream?
2. Is PHP 7.4 and PHP 8.0 also effected? If so, can you please provide a patch (here in the issue)
This issue is fixed in php 7.4 and higher :-)
I didn't bother with 7.2 as it's scheduled for removal shortly.
A commit references this bug:
Date: Tue Dec 29 11:01:21 UTC 2020
New revision: 559561
lang/php73: Use pkg-config to detect freetype
In PHP 7.4 and above it is already in use.
Also ignore PHP 7.2 because it is scheduled for removal.
Submitted by: <firstname.lastname@example.org>
Obtained from: https://aur.archlinux.org/cgit/aur.git/tree/freetype.patch?h=php73
Committed, thank you! :)