Dear maintainer, I've prepared an NMU for davical (versioned as 1.1.12-2.1) and uploaded it to DELAYED/0.
Regards.
diff -Nru davical-1.1.12/debian/changelog davical-1.1.12/debian/changelog --- davical-1.1.12/debian/changelog 2023-05-01 00:29:20.000000000 +0200 +++ davical-1.1.12/debian/changelog 2025-01-14 13:45:14.000000000 +0100 @@ -1,3 +1,10 @@ +davical (1.1.12-2.1) unstable; urgency=medium + + * Non-maintainer upload + * Add support for PHPUnit 10 (Closes: #1039746) + + -- David Prévot <taf...@debian.org> Tue, 14 Jan 2025 13:45:14 +0100 + davical (1.1.12-2) unstable; urgency=medium * Cherry-pick two bug fixes from upstream: diff -Nru davical-1.1.12/debian/patches/0003-Add-support-for-phpunit-10.patch davical-1.1.12/debian/patches/0003-Add-support-for-phpunit-10.patch --- davical-1.1.12/debian/patches/0003-Add-support-for-phpunit-10.patch 1970-01-01 01:00:00.000000000 +0100 +++ davical-1.1.12/debian/patches/0003-Add-support-for-phpunit-10.patch 2025-01-14 13:40:48.000000000 +0100 @@ -0,0 +1,114 @@ +From: Athos Ribeiro <athoscribe...@gmail.com> +Date: Thu, 6 Jul 2023 16:28:53 -0300 +Subject: Add support for phpunit 10 + +In phpunit 10, global states are no longer preserved by default [1]. + +* https://bugs.debian.org/1039746 + +[1] https://github.com/sebastianbergmann/phpunit/blob/10.0.0/ChangeLog-10.0.md#changed + +Origin: upstream, https://gitlab.com/davical-project/davical/-/commit/0502860a9543567e35bf4a770315c03220672c31 +Bug: https://gitlab.com/davical-project/davical/-/merge_requests/115 +Bug-Debian: https://bugs.debian.org/1039746 +--- + testing/phpunit/ExpansionTest.php | 16 ++++++++++++++++ + testing/phpunit/RangeTest.php | 16 ++++++++++++++++ + 2 files changed, 32 insertions(+) + +diff --git a/testing/phpunit/ExpansionTest.php b/testing/phpunit/ExpansionTest.php +index 5a71318..7e5bf84 100644 +--- a/testing/phpunit/ExpansionTest.php ++++ b/testing/phpunit/ExpansionTest.php +@@ -143,6 +143,10 @@ final class ExpansionTest extends TestCase + '20190124T000000Z/20190124T010000Z', + ]; + ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testUnmodifiedCal() { + global $base_cal; + +@@ -152,6 +156,10 @@ final class ExpansionTest extends TestCase + ); + } + ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testTueRenamed() { + global $tuesday_renamed_cal; + +@@ -161,6 +169,10 @@ final class ExpansionTest extends TestCase + ); + } + ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testTueRenamedSwapped() { + global $tuesday_renamed_cal_order_swapped; + +@@ -170,6 +182,10 @@ final class ExpansionTest extends TestCase + ); + } + ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testCalWithCount() { + global $count_cal; + +diff --git a/testing/phpunit/RangeTest.php b/testing/phpunit/RangeTest.php +index 5b865d5..7c68d7a 100644 +--- a/testing/phpunit/RangeTest.php ++++ b/testing/phpunit/RangeTest.php +@@ -12,6 +12,10 @@ $c->rrule_loop_limit = 100; + + final class RangeTest extends TestCase + { ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testGetVCalendarRange() { + $cal = new vCalendar("BEGIN:VCALENDAR + PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN +@@ -48,6 +52,10 @@ END:VCALENDAR"); + self::assertEquals("20190102T072000Z", (string) $range->until->UTC()); + } + ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testGetVCalendarRangeTwoDayAllDay() { + $cal = new vCalendar("BEGIN:VCALENDAR + PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN +@@ -70,6 +78,10 @@ END:VCALENDAR"); + self::assertEquals("20190109T200000Z", (string) $range->until->UTC()); + } + ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testGetVCalendarRangeFloating() { + // When interpreted as being in Greece, this event crosses the daylight savings boundary! + // TODO deal with how that affects all-day events... +@@ -94,6 +106,10 @@ END:VCALENDAR"); + self::assertEquals("20181210T130000Z", (string) $range->until->UTC()); + } + ++ /** ++ * @runInSeparateProcess ++ * @preserveGlobalState enabled ++ */ + public function testGetVCalendarRangeAllDayAcrossDST() { + // When interpreted as being in Greece, this event crosses the daylight savings boundary! + diff -Nru davical-1.1.12/debian/patches/series davical-1.1.12/debian/patches/series --- davical-1.1.12/debian/patches/series 2023-05-01 00:29:20.000000000 +0200 +++ davical-1.1.12/debian/patches/series 2025-01-14 13:40:48.000000000 +0100 @@ -1,2 +1,3 @@ 1-use-.-to-concat-strings.patch 2-add-missing-space-to-sql.patch +0003-Add-support-for-phpunit-10.patch diff -Nru davical-1.1.12/debian/tests/phpunit davical-1.1.12/debian/tests/phpunit --- davical-1.1.12/debian/tests/phpunit 2023-03-13 21:56:34.000000000 +0100 +++ davical-1.1.12/debian/tests/phpunit 2025-01-14 13:44:27.000000000 +0100 @@ -4,5 +4,5 @@ set -e # 2) phpunit tests -phpunit --include-path "/usr/share/davical:/usr/share/awl" testing/phpunit +phpunit --do-not-cache-result --include-path "/usr/share/davical:/usr/share/awl" testing/phpunit
signature.asc
Description: PGP signature