I'm new to the community and do not see any way to create git merge request. I have made a patch to replace freetype-config with pkg-config
$ cat gd_config.m4.patch
--- ext/gd/config.m4.orig
+++ ext/gd/config.m4
193c193
< if test -f "$i/bin/freetype-config"; then
---
> if test -f "$i/bin/pkg-config"; then
195c195
< FREETYPE2_CONFIG="$i/bin/freetype-config"
---
> FREETYPE2_CONFIG="$i/bin/pkg-config"
201c201
< AC_MSG_ERROR([freetype-config not found.])
---
> AC_MSG_ERROR([pkg-config not found.])
204,205c204,205
< FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
< FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
---
> FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags freetype2`
> FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs freetype2`
--- configure.orig
+++ configure
34322c34323
< if test -f "$i/bin/freetype-config"; then
---
> if test -f "$i/bin/pkg-config"; then
34324c34325
< FREETYPE2_CONFIG="$i/bin/freetype-config"
---
> FREETYPE2_CONFIG="$i/bin/pkg-config"
34330c34331
< as_fn_error $? "freetype-config not found." "$LINENO" 5
---
> as_fn_error $? "pkg-config not found." "$LINENO" 5
34333,34334c34334,34335
< FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
< FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
---
> FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags freetype2`
> FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs freetype2`
35999c36000
< if test -f "$i/bin/freetype-config"; then
---
> if test -f "$i/bin/pkg-config"; then
36001c36002
< FREETYPE2_CONFIG="$i/bin/freetype-config"
---
> FREETYPE2_CONFIG="$i/bin/pkg-config"
36007c36008
< as_fn_error $? "freetype-config not found." "$LINENO" 5
---
> as_fn_error $? "pkg-config not found." "$LINENO" 5
P.S. @JohnMaguire your suggestion is much easier and faster :)
Pinned Comments
el_aur commented on 2022-02-03 18:48 (UTC) (edited on 2022-02-18 10:38 (UTC) by el_aur)
Created binary repository on build.opensuse.org
https://build.opensuse.org/project/show/home:el:archphp
For Arch Linux, edit /etc/pacman.conf and add the following (note that the order of repositories in pacman.conf is important, since pacman always downloads the first found package):
Then run the following as root
Refresh packages database
Now search for php packages you need:
Install with
pacman -S
packages you need or all PHP 7.1 packages with:el_aur commented on 2022-02-03 18:47 (UTC) (edited on 2022-02-03 18:50 (UTC) by el_aur)
Read Carefully! Breaking changes in compare with native PHP package
Console version
/usr/bin/php71
is installed withphp71-cli
subpackage,php71
doesn't include it anymore!!!PEAR and PECL are available as
php71-pear
andphp71-pecl
subpackagesAll shared modules are respresented as stand-alone subpackages and are not included with
php71
package anymore.No more extensions in php.ini itself!
Separate INI files for each extension are placed in
/etc/php71/conf.d
They are loaded in correct order according to priority