* [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
* Re: [Buildroot] [PATCH] package/php: Add parth to ca-cert
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
0 siblings, 1 reply; 3+ messages in thread
From: Julian Vetter via buildroot @ 2026-02-16 9:29 UTC (permalink / raw)
To: bernd; +Cc: buildroot, julian
On 1/22/26 5:11 PM, Julian Vetter via buildroot wrote:
> 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 = \
Hello,
I might have forgotten to add you Bernd. I think I have just sent it to
the mailinglist.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] package/php: Add parth to ca-cert
2026-02-16 9:29 ` Julian Vetter via buildroot
@ 2026-03-07 9:20 ` Julian Vetter via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Julian Vetter via buildroot @ 2026-03-07 9:20 UTC (permalink / raw)
To: bernd; +Cc: buildroot
Gentle ping. Is this patch of interest?
On 2/16/26 10:29, Julian Vetter via buildroot wrote:
>
>
> On 1/22/26 5:11 PM, Julian Vetter via buildroot wrote:
>> 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 = \
>
> Hello,
> I might have forgotten to add you Bernd. I think I have just sent it to
> the mailinglist.
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [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