[packages/php-libvirt] - updated to 0.5.6 (PHP 8 support) - removed obsolete no-common patch

qboosh qboosh at pld-linux.org
Wed Oct 12 20:28:55 CEST 2022


commit 73046e535e858042f5bbd505aab0ce4608613108
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Oct 12 20:29:49 2022 +0200

    - updated to 0.5.6 (PHP 8 support)
    - removed obsolete no-common patch

 php-libvirt-no-common.patch | 201 --------------------------------------------
 php-libvirt.spec            |  10 +--
 2 files changed, 5 insertions(+), 206 deletions(-)
---
diff --git a/php-libvirt.spec b/php-libvirt.spec
index 98b0084..b9e03b4 100644
--- a/php-libvirt.spec
+++ b/php-libvirt.spec
@@ -12,13 +12,12 @@
 Summary:	PHP binding for libvirt
 Summary(pl.UTF-8):	Wiązanie PHP do libvirt
 Name:		%{php_name}-%{modname}
-Version:	0.5.5
+Version:	0.5.6
 Release:	1
 License:	LGPL v2.1
 Group:		Development/Languages/PHP
-Source0:	https://libvirt.org/sources/php/libvirt-php-%{version}.tar.gz
-# Source0-md5:	28fb7e2e216805e5aa5d5744fb3fd303
-Patch0:		php-libvirt-no-common.patch
+Source0:	https://libvirt.org/sources/php/libvirt-php-%{version}.tar.xz
+# Source0-md5:	13f4614f7bdafc39b0cbf8dcb4b845b6
 URL:		https://libvirt.org/php/
 BuildRequires:	%{php_name}-devel
 # as specified by `php-config --php-binary`
@@ -31,6 +30,8 @@ BuildRequires:	libxml2-progs
 BuildRequires:	libxslt-progs
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.666
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
 %{?requires_php_extension}
 Requires:	libvirt >= 1.2.13
 Provides:	php(%{modname}) = %{version}
@@ -60,7 +61,6 @@ Dokumentacja do wiązania php-libvirt.
 
 %prep
 %setup -q -n libvirt-php-%{version}
-%patch0 -p1
 
 %build
 %configure \
diff --git a/php-libvirt-no-common.patch b/php-libvirt-no-common.patch
deleted file mode 100644
index 2f7d328..0000000
--- a/php-libvirt-no-common.patch
+++ /dev/null
@@ -1,201 +0,0 @@
---- libvirt-php-0.5.5/src/libvirt-connection.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-connection.h	2020-10-06 17:26:49.496920124 +0200
-@@ -46,7 +46,7 @@
-             RETURN_FALSE;                                                      \
-     } while (0)
- 
--int le_libvirt_connection;
-+extern int le_libvirt_connection;
- 
- typedef struct _php_libvirt_connection {
-     virConnectPtr conn;
---- libvirt-php-0.5.5/src/libvirt-connection.c.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-connection.c	2020-10-06 17:51:56.241895065 +0200
-@@ -11,6 +11,8 @@
- 
- DEBUG_INIT("connection");
- 
-+int le_libvirt_connection;
-+
- /*
-  * Private function name:   free_resources_on_connection
-  * Since version:           0.4.2
---- libvirt-php-0.5.5/src/libvirt-domain.h.orig	2020-02-07 10:28:53.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-domain.h	2020-10-06 17:27:17.735054051 +0200
-@@ -120,7 +120,7 @@
-     PHP_FE(libvirt_list_active_domains,          arginfo_libvirt_conn)                         \
-     PHP_FE(libvirt_list_inactive_domains,        arginfo_libvirt_conn)
- 
--int le_libvirt_domain;
-+extern int le_libvirt_domain;
- 
- typedef struct _php_libvirt_domain {
-     virDomainPtr domain;
---- libvirt-php-0.5.5/src/libvirt-domain.c.orig	2020-02-07 10:28:53.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-domain.c	2020-10-06 17:52:15.516230584 +0200
-@@ -15,6 +15,8 @@
- 
- DEBUG_INIT("domain");
- 
-+int le_libvirt_domain;
-+
- void
- php_libvirt_domain_dtor(virt_resource *rsrc TSRMLS_DC)
- {
---- libvirt-php-0.5.5/src/libvirt-network.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-network.h	2020-10-06 17:27:35.602649121 +0200
-@@ -45,7 +45,7 @@
-     PHP_FE(libvirt_list_all_networks,       arginfo_libvirt_conn_optflags)     \
-     PHP_FE(libvirt_list_networks,           arginfo_libvirt_conn_optflags)
- 
--int le_libvirt_network;
-+extern int le_libvirt_network;
- 
- typedef struct _php_libvirt_network {
-     virNetworkPtr network;
---- libvirt-php-0.5.5/src/libvirt-network.c.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-network.c	2020-10-06 17:52:32.913801854 +0200
-@@ -11,6 +11,8 @@
- 
- DEBUG_INIT("network");
- 
-+int le_libvirt_network;
-+
- void
- php_libvirt_network_dtor(virt_resource *rsrc TSRMLS_DC)
- {
---- libvirt-php-0.5.5/src/libvirt-nodedev.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-nodedev.h	2020-10-06 17:27:58.963862975 +0200
-@@ -35,7 +35,7 @@
-             RETURN_FALSE;                                                      \
-     } while (0)
- 
--int le_libvirt_nodedev;
-+extern int le_libvirt_nodedev;
- 
- typedef struct _php_libvirt_nodedev {
-     virNodeDevicePtr device;
---- libvirt-php-0.5.5/src/libvirt-nodedev.c.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-nodedev.c	2020-10-06 17:53:03.965416410 +0200
-@@ -11,6 +11,8 @@
- 
- DEBUG_INIT("nodedev");
- 
-+int le_libvirt_nodedev;
-+
- void
- php_libvirt_nodedev_dtor(virt_resource *rsrc TSRMLS_DC)
- {
---- libvirt-php-0.5.5/src/libvirt-nwfilter.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-nwfilter.h	2020-10-06 17:28:10.961153024 +0200
-@@ -42,7 +42,7 @@
-             RETURN_FALSE;                                                      \
-     } while (0)                                                                \
- 
--int le_libvirt_nwfilter;
-+extern int le_libvirt_nwfilter;
- 
- typedef struct _php_libvirt_nwfilter {
-     virNWFilterPtr nwfilter;
---- libvirt-php-0.5.5/src/libvirt-nwfilter.c.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-nwfilter.c	2020-10-06 17:53:18.179488816 +0200
-@@ -11,6 +11,8 @@
- 
- DEBUG_INIT("nwfilter");
- 
-+int le_libvirt_nwfilter;
-+
- void
- php_libvirt_nwfilter_dtor(virt_resource *rsrc TSRMLS_DC)
- {
---- libvirt-php-0.5.5/src/libvirt-snapshot.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-snapshot.h	2020-10-06 17:28:28.618737181 +0200
-@@ -38,7 +38,7 @@
-             RETURN_FALSE;                                                      \
-     } while (0)                                                                \
- 
--int le_libvirt_snapshot;
-+extern int le_libvirt_snapshot;
- 
- typedef struct _php_libvirt_snapshot {
-     virDomainSnapshotPtr snapshot;
---- libvirt-php-0.5.5/src/libvirt-snapshot.c.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-snapshot.c	2020-10-06 17:53:35.153704739 +0200
-@@ -11,6 +11,8 @@
- 
- DEBUG_INIT("snapshot");
- 
-+int le_libvirt_snapshot;
-+
- void php_libvirt_snapshot_dtor(virt_resource *rsrc TSRMLS_DC)
- {
-     php_libvirt_snapshot *snapshot = (php_libvirt_snapshot *)rsrc->ptr;
---- libvirt-php-0.5.5/src/libvirt-storage.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-storage.h	2020-10-06 17:28:47.059695378 +0200
-@@ -83,8 +83,8 @@
-             RETURN_FALSE;                                                      \
-     } while (0)                                                                \
- 
--int le_libvirt_storagepool;
--int le_libvirt_volume;
-+extern int le_libvirt_storagepool;
-+extern int le_libvirt_volume;
- 
- typedef struct _php_libvirt_storagepool {
-     virStoragePoolPtr pool;
---- libvirt-php-0.5.5/src/libvirt-storage.c.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-storage.c	2020-10-06 17:53:56.554817509 +0200
-@@ -12,6 +12,9 @@
- 
- DEBUG_INIT("storage");
- 
-+int le_libvirt_storagepool;
-+int le_libvirt_volume;
-+
- void
- php_libvirt_storagepool_dtor(virt_resource *rsrc TSRMLS_DC)
- {
---- libvirt-php-0.5.5/src/libvirt-stream.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-stream.h	2020-10-06 17:23:35.320150821 +0200
-@@ -20,7 +20,7 @@
-     PHP_FE(libvirt_stream_send,   arginfo_libvirt_stream_send)                 \
-     PHP_FE(libvirt_stream_recv,   arginfo_libvirt_stream_recv)
- 
--int le_libvirt_stream;
-+extern int le_libvirt_stream;
- 
- typedef struct _php_libvirt_stream {
-     virStreamPtr stream;
---- libvirt-php-0.5.5/src/libvirt-stream.c.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-stream.c	2020-10-06 17:54:37.943636225 +0200
-@@ -11,6 +11,8 @@
- 
- DEBUG_INIT("stream");
- 
-+int le_libvirt_stream;
-+
- void
- php_libvirt_stream_dtor(virt_resource *rsrc TSRMLS_DC)
- {
---- libvirt-php-0.5.5/src/libvirt-php.h.orig	2019-12-30 07:03:57.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-php.h	2020-10-06 17:31:43.808879304 +0200
-@@ -155,7 +155,7 @@
-     int binding_resources_count;
- ZEND_END_MODULE_GLOBALS(libvirt)
- 
--ZEND_DECLARE_MODULE_GLOBALS(libvirt)
-+ZEND_EXTERN_MODULE_GLOBALS(libvirt)
- 
- /* Private definitions */
- void set_error(char *msg TSRMLS_DC);
---- libvirt-php-0.5.5/src/libvirt-php.c.orig	2020-01-17 07:41:48.000000000 +0100
-+++ libvirt-php-0.5.5/src/libvirt-php.c	2020-10-06 17:50:18.836830402 +0200
-@@ -40,6 +40,8 @@
- const char *features_binaries[] = { NULL };
- #endif
- 
-+ZEND_DECLARE_MODULE_GLOBALS(libvirt)
-+
- ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_connect, 0, 0, 0)
- ZEND_ARG_INFO(0, url)
- ZEND_ARG_INFO(0, readonly)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-libvirt.git/commitdiff/73046e535e858042f5bbd505aab0ce4608613108



More information about the pld-cvs-commit mailing list