[packages/php-composer-ca-bundle] Up to 1.5.11

arekm arekm at pld-linux.org
Fri Apr 3 16:21:41 CEST 2026


commit 8cc62a8d6e1c31aa0470543ff78a16ed09f7a5b5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 3 16:21:33 2026 +0200

    Up to 1.5.11

 php-composer-ca-bundle.spec |  8 ++++----
 system-ca-certs.patch       | 15 ++++++++++-----
 2 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/php-composer-ca-bundle.spec b/php-composer-ca-bundle.spec
index 7a8d2dd..98740da 100644
--- a/php-composer-ca-bundle.spec
+++ b/php-composer-ca-bundle.spec
@@ -1,13 +1,13 @@
-%define		php_min_version 5.3.2
+%define		php_min_version 7.2
 %define		pkgname	ca-bundle
 Summary:	Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle
 Name:		php-composer-%{pkgname}
-Version:	1.2.3
-Release:	2
+Version:	1.5.11
+Release:	1
 License:	MIT
 Group:		Development/Languages/PHP
 Source0:	https://github.com/composer/ca-bundle/archive/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	1ef81ed2e95278dfb658ea1246e4dc3e
+# Source0-md5:	f475e20bdd9cfe6e90165b8b08c81bd6
 URL:		https://github.com/composer/ca-bundle
 Patch0:		system-ca-certs.patch
 Requires:	ca-certificates >= 20141019-3
diff --git a/system-ca-certs.patch b/system-ca-certs.patch
index cd9fbe3..3210db9 100644
--- a/system-ca-certs.patch
+++ b/system-ca-certs.patch
@@ -1,6 +1,6 @@
---- ca-bundle-1.1.3/src/CaBundle.php~	2018-10-18 09:09:13.000000000 +0300
-+++ ca-bundle-1.1.3/src/CaBundle.php	2018-11-05 01:38:02.282995447 +0200
-@@ -130,24 +130,7 @@
+--- ca-bundle-1.5.11/src/CaBundle.php.orig	2024-07-08 15:28:07.000000000 +0200
++++ ca-bundle-1.5.11/src/CaBundle.php	2024-07-08 15:28:07.000000000 +0200
+@@ -122,29 +122,7 @@
       */
      public static function getBundledCaBundlePath()
      {
@@ -9,8 +9,13 @@
 -        // cURL does not understand 'phar://' paths
 -        // see https://github.com/composer/ca-bundle/issues/10
 -        if (0 === strpos($caBundleFile, 'phar://')) {
+-            $tempCaBundleFile = tempnam(sys_get_temp_dir(), 'openssl-ca-bundle-');
+-            if (false === $tempCaBundleFile) {
+-                throw new \RuntimeException('Could not create a temporary file to store the bundled CA file');
+-            }
+-
 -            file_put_contents(
--                $tempCaBundleFile = tempnam(sys_get_temp_dir(), 'openssl-ca-bundle-'),
+-                $tempCaBundleFile,
 -                file_get_contents($caBundleFile)
 -            );
 -
@@ -24,5 +29,5 @@
 -        return $caBundleFile;
 +        return '/etc/pki/tls/certs/ca-bundle.crt';
      }
- 
+
      /**
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-composer-ca-bundle.git/commitdiff/8cc62a8d6e1c31aa0470543ff78a16ed09f7a5b5



More information about the pld-cvs-commit mailing list