[php-bartlett-PHP-CompatInfo/f18] add patch for https://github.com/llaville/php-compat-info/issues/69

Remi Collet remi at fedoraproject.org
Tue Feb 26 15:57:32 UTC 2013


commit 32a20cf820d33bc0435261ea65226eb414c4d976
Author: Remi Collet <remi at fedoraproject.org>
Date:   Tue Feb 26 16:44:55 2013 +0100

    add patch for https://github.com/llaville/php-compat-info/issues/69

 PHP_CompatInfo.patch             |   26 ++++++++++++++++++++++++++
 php-bartlett-PHP-CompatInfo.spec |    7 +++++++
 2 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/PHP_CompatInfo.patch b/PHP_CompatInfo.patch
new file mode 100644
index 0000000..642f430
--- /dev/null
+++ b/PHP_CompatInfo.patch
@@ -0,0 +1,26 @@
+diff --git a/PHP/CompatInfo/Reference/sockets.php b/PHP/CompatInfo/Reference/sockets.php
+index 2c4c327..de9dc32 100644
+--- a/PHP/CompatInfo/Reference/sockets.php
++++ b/PHP/CompatInfo/Reference/sockets.php
+@@ -288,6 +288,7 @@ class PHP_CompatInfo_Reference_Sockets
+             'SO_RCVLOWAT'                    => array('4.1.0', ''),
+             'SO_RCVTIMEO'                    => array('4.1.0', ''),
+             'SO_REUSEADDR'                   => array('4.1.0', ''),
++            'SO_REUSEPORT'                   => array('5.4.10', ''),
+             'SO_SNDBUF'                      => array('4.1.0', ''),
+             'SO_SNDLOWAT'                    => array('4.1.0', ''),
+             'SO_SNDTIMEO'                    => array('4.1.0', ''),
+diff --git a/tests/Reference/SocketsTest.php b/tests/Reference/SocketsTest.php
+index a5ace00..f1bb9ef 100644
+--- a/tests/Reference/SocketsTest.php
++++ b/tests/Reference/SocketsTest.php
+@@ -124,6 +124,9 @@ class PHP_CompatInfo_Reference_SocketsTest
+                 'MSG_EOF',
+             );
+         }
++        $tmp = array('SO_REUSEPORT');
++        $this->optionalconstants = array_merge($this->optionalconstants, $tmp);
++
+         $this->optionalfunctions = array(
+             // requires HAVE_SOCKETPAIR
+             'socket_create_pair',
diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec
index ad58a68..6446638 100644
--- a/php-bartlett-PHP-CompatInfo.spec
+++ b/php-bartlett-PHP-CompatInfo.spec
@@ -18,6 +18,9 @@ License:        BSD and MIT
 URL:            http://php5.laurent-laville.org/compatinfo/
 Source0:        http://bartlett.laurent-laville.org/get/%{pear_name}-%{version}%{?prever}.tgz
 
+# https://github.com/llaville/php-compat-info/issues/69
+Patch0:         %{pear_name}.patch
+
 BuildArch:      noarch
 BuildRequires:  php(language) >= 5.2.1
 BuildRequires:  php-pear(PEAR) >= 1.9.0
@@ -63,6 +66,9 @@ HTML Documentation:  %{pear_docdir}/%{pear_name}/html/index.html
 cd %{pear_name}-%{version}%{?prever}
 mv -f ../package.xml %{name}.xml
 
+%patch0 -p1 -b .orig
+sed -e 's/md5sum.*name/name/' -i %{name}.xml
+
 
 %build
 cd %{pear_name}-%{version}%{?prever}
@@ -143,6 +149,7 @@ fi
 - Update to 2.13.2
 - raise dependencies, PHP_Reflect 1.6.1
 - provides phpci
+- patch for https://github.com/llaville/php-compat-info/issues/69
 
 * Fri Feb 22 2013 Remi Collet <remi at fedoraproject.org> - 2.13.0-1
 - Update to 2.13.0


More information about the scm-commits mailing list