summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2025-02-26 09:36:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2025-02-26 09:36:13 +0000
commit06ceac7c2310be40b8f281ab304f941e7759785f (patch)
tree594bed430b3fd436accacec6605b7bf91aae0440
parentAdding upstream version 1.8.4. (diff)
downloadphp-kissifrot-php-ixr-debian.tar.xz
php-kissifrot-php-ixr-debian.zip
Adding debian version 1.8.4-4.debian/1.8.4-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/autoloaders/php-kissifrot-php-ixr1
-rw-r--r--debian/changelog28
-rw-r--r--debian/clean6
-rw-r--r--debian/control40
-rw-r--r--debian/copyright44
-rw-r--r--debian/docs1
-rw-r--r--debian/gbp.conf6
-rw-r--r--debian/install3
-rw-r--r--debian/patches/01-fix-phpunit11-compat.patch41
-rw-r--r--debian/patches/02-fix-deprecated-xml_set_-calls-php8.4.patch29
-rw-r--r--debian/patches/series2
-rwxr-xr-xdebian/rules27
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control3
-rw-r--r--debian/upstream/metadata5
-rw-r--r--debian/watch5
16 files changed, 242 insertions, 0 deletions
diff --git a/debian/autoloaders/php-kissifrot-php-ixr b/debian/autoloaders/php-kissifrot-php-ixr
new file mode 100644
index 0000000..3035a00
--- /dev/null
+++ b/debian/autoloaders/php-kissifrot-php-ixr
@@ -0,0 +1 @@
+kissifrot php-ixr IXR/autoload.php
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1799e14
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,28 @@
+php-kissifrot-php-ixr (1.8.4-4) unstable; urgency=medium
+
+ [ Daniel Baumann ]
+ * Adding tests in binary package as used by other packages (Closes: #1088957)
+
+ [ Fab Stz ]
+ * drop support for building with pkg-php-tools < 1.41
+ * Add patch to fix deprecated xml_set_* calls in PHP 8.4
+
+ -- Fab Stz <fabstz-it@yahoo.fr> Sat, 07 Dec 2024 09:36:36 +0100
+
+php-kissifrot-php-ixr (1.8.4-3) unstable; urgency=medium
+
+ * Fix phpunit 11 compatibility (Closes: #1070558)
+
+ -- Fab Stz <fabstz-it@yahoo.fr> Sun, 21 Jul 2024 11:05:54 +0200
+
+php-kissifrot-php-ixr (1.8.4-2) unstable; urgency=medium
+
+ * d/control: add <!nocheck> to test related build-deps
+
+ -- Fab Stz <fabstz-it@yahoo.fr> Sat, 24 Jun 2023 12:51:05 +0200
+
+php-kissifrot-php-ixr (1.8.4-1) unstable; urgency=medium
+
+ * Initial release. Closes: #1005333
+
+ -- Fab Stz <fabstz-it@yahoo.fr> Mon, 01 May 2023 10:15:45 +0200
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..16bed11
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,6 @@
+.phpunit.cache/
+.phpunit.result.cache
+debian/autoload.php.tpl
+debian/autoload.tests.php.tpl
+src/autoload.php
+vendor/
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..28d051e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,40 @@
+Source: php-kissifrot-php-ixr
+Section: php
+Priority: optional
+Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
+Uploaders: Fab Stz <fabstz-it@yahoo.fr>
+Build-Depends: debhelper-compat (= 13),
+ dh-sequence-phpcomposer,
+ phpab,
+ phpunit <!nocheck>
+Standards-Version: 4.6.1
+Rules-Requires-Root: no
+Homepage: https://github.com/kissifrot/php-ixr
+Vcs-Browser: https://salsa.debian.org/php-team/pear/php-kissifrot-php-ixr
+Vcs-Git: https://salsa.debian.org/php-team/pear/php-kissifrot-php-ixr.git
+
+Package: php-kissifrot-php-ixr
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${phpcomposer:Debian-require}
+Recommends: ${misc:Recommends}, ${phpcomposer:Debian-recommend}
+Suggests: ${phpcomposer:Debian-suggest}
+Conflicts: ${phpcomposer:Debian-conflict}
+Provides: ${phpcomposer:Debian-provide}
+Description: ${phpcomposer:description}
+ This is a fork of the original Incutio PHP XML-RPC library (IXR) SVN repo
+ hosted on Google Code
+ .
+ The Incutio XML-RPC library (IXR) is designed primarily for ease of use. It
+ incorporates both client and server classes, and is designed to hide as much
+ of the workings of XML-RPC from the user as possible. A key feature of the
+ library is automatic type conversion from PHP types to XML-RPC types and vice
+ versa. This should enable developers to write web services with very little
+ knowledge of the underlying XML-RPC standard.
+ .
+ Don't however be fooled by it's simple surface. The library includes a wide
+ variety of additional XML-RPC specifications and has all of the features
+ required for serious web service implementations.
+ .
+ https://scripts.incutio.com/xmlrpc/
+ https://web.archive.org/web/20160115201135/http://scripts.incutio.com/xmlrpc/
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e6396fa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,44 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: php-ixr
+Source: https://github.com/kissifrot/php-ixr/
+
+Files: *
+Copyright: 2010, Incutio Ltd - Simon Willison
+License: BSD-3-Clause
+
+Files: src/Server/ClassServer.php
+Copyright: 2005, Jason Stirk <jstirk@gmm.com.au>
+License: BSD-3-Clause
+
+Files: src/Client/ClientSSL.php
+Copyright: 2004-2005, Jason Stirk <jstirk@gmm.com.au>
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2022, Fab Stz <fabstz-it@yahoo.fr>
+License: BSD-3-Clause
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ - Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ - Neither the name of Incutio Ltd. nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..43824ee
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,6 @@
+[DEFAULT]
+debian-branch = debian/latest
+filter = [ '.gitattributes' ]
+pristine-tar = True
+upstream-branch = upstream/latest
+upstream-vcs-tag = %(version%~%-)s
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..9e1f866
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+debian/autoloaders usr/share/pkg-php-tools
+src/* /usr/share/php/IXR
+tests/* /usr/share/php/IXR/tests
diff --git a/debian/patches/01-fix-phpunit11-compat.patch b/debian/patches/01-fix-phpunit11-compat.patch
new file mode 100644
index 0000000..f640e4e
--- /dev/null
+++ b/debian/patches/01-fix-phpunit11-compat.patch
@@ -0,0 +1,41 @@
+Description: Fix phpunit 11 compatibility
+Forwarded: https://github.com/kissifrot/php-ixr/issues/11
+Bug-Debian: http://bugs.debian.org/1070558
+Author: Fab Stz <fabstz-it@yahoo.fr>
+Last-Update: 2024-07-21
+
+--- a/tests/DataType/DateTest.php
++++ b/tests/DataType/DateTest.php
+@@ -12,7 +12,7 @@
+ * @return array
+ * @see testParseIso
+ */
+- function provideDates()
++ static function provideDates()
+ {
+ return [
+ // full datetime, different formats
+@@ -44,10 +44,10 @@
+ * @param mixed $input
+ * @param int $expect
+ */
+- function testParseIso($input, $expect)
++ static function testParseIso($input, $expect)
+ {
+ $dt = new Date($input);
+- $this->assertEquals($expect, $dt->getTimeStamp());
++ self::assertEquals($expect, $dt->getTimeStamp());
+ }
+
+ }
+--- a/tests/Message/MessageTest.php
++++ b/tests/Message/MessageTest.php
+@@ -5,7 +5,7 @@
+ use IXR\Message\Message;
+ use PHPUnit\Framework\TestCase;
+
+-class ixr_library_ixr_message_test extends TestCase
++class MessageTest extends TestCase
+ {
+
+ function testUntypedValue()
diff --git a/debian/patches/02-fix-deprecated-xml_set_-calls-php8.4.patch b/debian/patches/02-fix-deprecated-xml_set_-calls-php8.4.patch
new file mode 100644
index 0000000..c399430
--- /dev/null
+++ b/debian/patches/02-fix-deprecated-xml_set_-calls-php8.4.patch
@@ -0,0 +1,29 @@
+From 15bc2183654e230658b1bd7f155e0b21d1539d71 Mon Sep 17 00:00:00 2001
+From: Andreas Gohr <andi@splitbrain.org>
+Date: Mon, 25 Nov 2024 14:50:44 +0100
+Subject: [PATCH] fix deprecated xml_set_* calls
+Origin: https://github.com/kissifrot/php-ixr/pull/12
+
+Instead of first setting the handler object and then passing the
+handlers as strings, handlers should be set via proper callables.
+The old method has been deprecated in PHP 8.4
+---
+ src/Message/Message.php | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/src/Message/Message.php b/src/Message/Message.php
+index d932431..8203e37 100644
+--- a/src/Message/Message.php
++++ b/src/Message/Message.php
+@@ -65,9 +65,8 @@ public function parse()
+ // Set XML parser to take the case of tags in to account
+ xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);
+ // Set XML parser callback functions
+- xml_set_object($this->_parser, $this);
+- xml_set_element_handler($this->_parser, 'tagOpen', 'tagClose');
+- xml_set_character_data_handler($this->_parser, 'cdata');
++ xml_set_element_handler($this->_parser, [$this, 'tagOpen'], [$this, 'tagClose']);
++ xml_set_character_data_handler($this->_parser, [$this, 'cdata']);
+ $chunk_size = 262144; // 256Kb, parse in chunks to avoid the RAM usage on very large messages
+ $final = false;
+ do {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f6a22f9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-fix-phpunit11-compat.patch
+02-fix-deprecated-xml_set_-calls-php8.4.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e3d72b0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+export DH_VERBOSE = 1
+
+%:
+ dh $@
+
+execute_before_dh_auto_build:
+ phpabtpl \
+ --basedir src \
+ composer.json > debian/autoload.php.tpl
+ phpab \
+ --output src/autoload.php \
+ --template debian/autoload.php.tpl \
+ src
+
+execute_before_dh_auto_test:
+ # Build classloader for tests
+ mkdir --parents vendor
+ phpabtpl \
+ > debian/autoload.tests.php.tpl
+ phpab \
+ --output vendor/autoload.php \
+ --template debian/autoload.tests.php.tpl \
+ src
+
+override_dh_auto_test:
+ phpunit
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..5893de8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Test-Command: mkdir -p vendor && phpabtpl --require kissifrot/php-ixr > debian/autoload.tests.php.tpl && phpab --output vendor/autoload.php --template debian/autoload.tests.php.tpl tests && phpunit
+Restrictions: rw-build-tree, allow-stderr
+Depends: phpab, phpunit, pkg-php-tools, @
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..a2dce9e
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/kissifrot/php-ixr/issues
+Bug-Submit: https://github.com/kissifrot/php-ixr/issues/new
+Repository: https://github.com/kissifrot/php-ixr.git
+Repository-Browse: https://github.com/kissifrot/php-ixr
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d01d429
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=4
+options=uversionmangle=s/-?([^\d.]+)/~$1/;tr/A-Z/a-z/,\
+mode=git,gitmode=full,gitexport=all \
+https://github.com/kissifrot/php-ixr \
+refs/tags/v?(\d.+)