public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/php: Add parth to ca-cert
@ 2026-01-22 16:11 Julian Vetter via buildroot
  2026-02-16  9:29 ` Julian Vetter via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Julian Vetter via buildroot @ 2026-01-22 16:11 UTC (permalink / raw)
  To: buildroot; +Cc: Bernd Kuhls, Julian Vetter

If BR2_PACKAGE_CA_CERTIFICATES is present, add the ca-certificates.crt
to the php.ini, to not get SSL errors when using PHP.

Signed-off-by: Julian Vetter <julian@outer-limits.org>
---
 package/php/php.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/php/php.mk b/package/php/php.mk
index 2c91ef7b63..3c79ae4589 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -362,6 +362,14 @@ endef
 
 PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FIXUP
 
+ifeq ($(BR2_PACKAGE_CA_CERTIFICATES),y)
+define PHP_CERTIFICATES_FIXUP
+$(SED) 's%;openssl.cafile=%openssl.cafile=/etc/ssl/certs/ca-certificates.crt%' \
+		$(TARGET_DIR)/etc/php.ini
+endef
+PHP_POST_INSTALL_TARGET_HOOKS += PHP_CERTIFICATES_FIXUP
+endif
+
 PHP_CONF_ENV += CFLAGS="$(PHP_CFLAGS)" CXXFLAGS="$(PHP_CXXFLAGS)"
 
 HOST_PHP_CONF_OPTS = \
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-07  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22 16:11 [Buildroot] [PATCH] package/php: Add parth to ca-cert Julian Vetter via buildroot
2026-02-16  9:29 ` Julian Vetter via buildroot
2026-03-07  9:20   ` Julian Vetter via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox