php: fix curl build with pkgconf 1.5.3
PATCH 1/1 php: fix curl build with pkgconf 1.5.3
Build fails because PKG_NAME is set to the full path of libcurl.pc:
checking for libcurl.pc... using /home/dawncrow/buildroot-test/scripts/instance-0/output/host/mips64el-buildroot-linux-gnu/sysroot/usr/lib/pkgconfig/libcurl.pc
Then, when checking version, pkg-config prepends $(sysroot), which will
fails with the following error:
checking for cURL 7.10.5 or greater... Package /home/dawncrow/buildroot-test/scripts/instance-0/output/host/bin/../mips64el-buildroot-linux-gnu/sysroot/home/dawncrow/buildroot-test/scripts/instance-0/output/host/mips64el-buildroot-linux-gnu/sysroot/usr/lib/pkgconfig/libcurl.pc was not found in the pkg-config search path. Perhaps you should add the directory containing `/home/dawncrow/buildroot-test/scripts/instance-0/output/host/bin/../mips64el-buildroot-linux-gnu/sysroot/home/dawncrow/buildroot-test/scripts/instance-0/output/host/mips64el-buildroot-linux-gnu/sysroot/usr/lib/pkgconfig/libcurl.pc.pc' to the PKG_CONFIG_PATH environment variable
To fix this error, remove curl directory path from --with-curl to use the default libcurl.pc name.
It should be noted that the next php version will remove this possibility, see:
https://github.com/php/php-src/commit/78e4f047525268278ffe497a162d0d279999c8c2
Fixes:
- http://autobuild.buildroot.org/results/c80792f871f2c5f02fe3faa1fc654fef760b8e2b
--- package/php/php.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/php/php.mk +1 -1
@@ -259,7 +259,7 @@ endif endif ifeq ($(BR2_PACKAGE_PHP_EXT_CURL),y) -PHP_CONF_OPTS += --with-curl=$(STAGING_DIR)/usr +PHP_CONF_OPTS += --with-curl PHP_DEPENDENCIES += libcurl endif
Signature · 1 line
2.14.1