Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: php-horde-date

php-horde-date (2.4.1-1ubuntu1) bionic; urgency=medium * debian/patches/phpunit6_compat.patch: PHPUnit 6 has namespaced classes. -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Fri, 16 Feb 2018 15:18:30 -0800

Modifications :
  1. Download patch debian/control

    --- 2.4.1-1/debian/control 2017-09-26 19:50:24.000000000 +0000 +++ 2.4.1-1ubuntu1/debian/control 2018-02-16 23:18:30.000000000 +0000 @@ -1,7 +1,8 @@ Source: php-horde-date Section: php Priority: extra -Maintainer: Horde Maintainers <pkg-horde-hackers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Horde Maintainers <pkg-horde-hackers@lists.alioth.debian.org> Uploaders: Mathieu Parent <sathieu@debian.org> Build-Depends: debhelper (>= 9), pkg-php-tools, pear-horde-channel Standards-Version: 3.9.8
  2. Download patch debian/patches/phpunit6_compat.patch

    --- 2.4.1-1/debian/patches/phpunit6_compat.patch 1970-01-01 00:00:00.000000000 +0000 +++ 2.4.1-1ubuntu1/debian/patches/phpunit6_compat.patch 2018-02-16 23:18:24.000000000 +0000 @@ -0,0 +1,137 @@ +Description: PHPUnit 6 has namespaced classes +Author: Nishanth Aravamudan <nish.aravamudan@canonical.com> +Forwarded: Will be done by Nishanth Aravamudan +Last-Update: 2018-02-16 + +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/DateTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/DateTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_DateTest extends PHPUnit_Framework_TestCase ++class Horde_Date_DateTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/DayNameTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/DayNameTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_DayNameTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_DayNameTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/DayTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/DayTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_DayTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_DayTest extends PHPUnit\Framework\TestCase + { + public function testNextFuture() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/HourTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/HourTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_HourTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_HourTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/MonthNameTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/MonthNameTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_MonthNameTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_MonthNameTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/MonthTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/MonthTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_MonthTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_MonthTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/TimeTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/TimeTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_TimeTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_TimeTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/WeekTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/WeekTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_WeekTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_WeekTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/WeekendTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/WeekendTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_WeekendTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_WeekendTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/Repeater/YearTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/Repeater/YearTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_Repeater_YearTest extends PHPUnit_Framework_TestCase ++class Horde_Date_Repeater_YearTest extends PHPUnit\Framework\TestCase + { + public function setUp() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/SpanTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/SpanTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_SpanTest extends PHPUnit_Framework_TestCase ++class Horde_Date_SpanTest extends PHPUnit\Framework\TestCase + { + public function testWidth() + { +--- php-horde-date-2.4.1.orig/Horde_Date-2.4.1/test/Horde/Date/UtilsTest.php ++++ php-horde-date-2.4.1/Horde_Date-2.4.1/test/Horde/Date/UtilsTest.php +@@ -10,7 +10,7 @@ + * @package Date + * @subpackage UnitTests + */ +-class Horde_Date_UtilsTest extends PHPUnit_Framework_TestCase ++class Horde_Date_UtilsTest extends PHPUnit\Framework\TestCase + { + public function testFirstDayOfWeek() + {
  3. Download patch debian/patches/series

    --- 2.4.1-1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ 2.4.1-1ubuntu1/debian/patches/series 2018-02-16 23:17:54.000000000 +0000 @@ -0,0 +1 @@ +phpunit6_compat.patch

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: php-horde-date-parser

php-horde-date-parser (2.0.6-1ubuntu1) bionic; urgency=medium * debian/patches/php72_compat.patch: PHP7.2 deprecated create_function. -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Tue, 20 Feb 2018 15:36:09 -0800

Modifications :
  1. Download patch debian/control

    --- 2.0.6-1/debian/control 2016-09-09 12:45:37.000000000 +0000 +++ 2.0.6-1ubuntu1/debian/control 2018-02-20 23:36:09.000000000 +0000 @@ -1,7 +1,8 @@ Source: php-horde-date-parser Section: php Priority: extra -Maintainer: Horde Maintainers <pkg-horde-hackers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Horde Maintainers <pkg-horde-hackers@lists.alioth.debian.org> Uploaders: Mathieu Parent <sathieu@debian.org> Build-Depends: debhelper (>= 9), pkg-php-tools, pear-horde-channel Standards-Version: 3.9.8
  2. Download patch debian/patches/series

    --- 2.0.6-1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.6-1ubuntu1/debian/patches/series 2018-02-20 23:35:39.000000000 +0000 @@ -0,0 +1 @@ +php72_compat.patch
  3. Download patch debian/patches/php72_compat.patch

    --- 2.0.6-1/debian/patches/php72_compat.patch 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.6-1ubuntu1/debian/patches/php72_compat.patch 2018-02-20 23:36:09.000000000 +0000 @@ -0,0 +1,124 @@ +Description: PHP7.2 deprecated create_function +Author: Nishanth Aravamudan <nish.aravamudan@canonical.com> +Forwarded: Will be done by Nishanth Aravamudan +Last-Update: 2018-02-20 + +--- a/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser.php ++++ b/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser.php +@@ -44,7 +44,7 @@ + foreach (new DirectoryIterator($dir) as $f) { + if ($f->isFile()) { + $locale = str_replace('.php', '', $f->getFilename()); +- $locale = preg_replace_callback('/([A-Z][a-z]*)([A-Z].*)?/', create_function('$m', 'if (!isset($m[2])) { return Horde_String::lower($m[1]); } else { return Horde_String::lower($m[1]) . "_" . Horde_String::upper($m[2]); }'), $locale); ++ $locale = preg_replace_callback('/([A-Z][a-z]*)([A-Z].*)?/', function($m ) { if (!isset($m[2])) { return Horde_String::lower($m[1]); } else { return Horde_String::lower($m[1]) . "_" . Horde_String::upper($m[2]); } }, $locale); + $locales[] = $locale; + } + } +--- a/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Locale/Base.php ++++ b/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Locale/Base.php +@@ -97,7 +97,7 @@ + } + + // strip any non-tagged tokens +- $taggedTokens = array_values(array_filter($tokens, create_function('$t', 'return $t->tagged();'))); ++ $taggedTokens = array_values(array_filter($tokens, function ($t) { return $t->tagged(); })); + + // Remove tokens we know we don't want - for example, if the first token + // is a separator, drop it. +@@ -197,7 +197,7 @@ + */ + public function preTokenize($text) + { +- return array_map(create_function('$w', 'return new Horde_Date_Parser_Token($w);'), preg_split('/\s+/', $text)); ++ return array_map(function ($w) { return new Horde_Date_Parser_Token($w); }, preg_split('/\s+/', $text)); + } + + /** +@@ -292,7 +292,7 @@ + // maybe it's a specific date + foreach ($this->definitions['date'] as $handler) { + if ($handler->match($tokens, $this->definitions)) { +- $goodTokens = array_values(array_filter($tokens, create_function('$o', 'return !$o->getTag("separator");'))); ++ $goodTokens = array_values(array_filter($tokens, function ($o) { return !$o->getTag("separator"); })); + $this->debug($handler->handlerMethod, $goodTokens, $options); + return call_user_func(array($this, $handler->handlerMethod), $goodTokens, $options); + } +@@ -301,7 +301,7 @@ + // I guess it's not a specific date, maybe it's just an anchor + foreach ($this->definitions['anchor'] as $handler) { + if ($handler->match($tokens, $this->definitions)) { +- $goodTokens = array_values(array_filter($tokens, create_function('$o', 'return !$o->getTag("separator");'))); ++ $goodTokens = array_values(array_filter($tokens, function ($o) { return !$o->getTag("separator"); })); + $this->debug($handler->handlerMethod, $goodTokens, $options); + return call_user_func(array($this, $handler->handlerMethod), $goodTokens, $options); + } +@@ -310,7 +310,7 @@ + // not an anchor, perhaps it's an arrow + foreach ($this->definitions['arrow'] as $handler) { + if ($handler->match($tokens, $this->definitions)) { +- $goodTokens = array_values(array_filter($tokens, create_function('$o', 'return !$o->getTag("separator_at") && !$o->getTag("separator_slash_or_dash") && !$o->getTag("separator_comma");'))); ++ $goodTokens = array_values(array_filter($tokens, function ($o) { return !$o->getTag("separator_at") && !$o->getTag("separator_slash_or_dash") && !$o->getTag("separator_comma"); })); + $this->debug($handler->handlerMethod, $goodTokens, $options); + return call_user_func(array($this, $handler->handlerMethod), $goodTokens, $options); + } +@@ -603,7 +603,7 @@ + } + + // Return repeaters in order from widest (years) to smallest (seconds) +- usort($repeaters, create_function('$a, $b', 'return $b->width() > $a->width();')); ++ usort($repeaters, function ($a, $b) { return $b->width() > $a->width(); }); + return $repeaters; + } + +--- a/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Locale/Pt.php ++++ b/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Locale/Pt.php +@@ -100,7 +100,7 @@ + } + + // strip any non-tagged tokens +- $taggedTokens = array_values(array_filter($tokens, create_function('$t', 'return $t->tagged();'))); ++ $taggedTokens = array_values(array_filter($tokens, function ($t) { return $t->tagged(); })); + + // Remove tokens we know we don't want - for example, if the first + // token is a separator, drop it. +--- a/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Result.php ++++ b/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Result.php +@@ -28,14 +28,14 @@ + + public function taggedText() + { +- $taggedTokens = array_values(array_filter($this->tokens, create_function('$t', 'return $t->tagged();'))); +- return implode(' ', array_map(create_function('$t', 'return $t->word;'), $taggedTokens)); ++ $taggedTokens = array_values(array_filter($this->tokens, function ($t) { return $t->tagged(); })); ++ return implode(' ', array_map(function ($t) { return $t->word; }, $taggedTokens)); + } + + public function untaggedText() + { +- $untaggedTokens = array_values(array_filter($this->tokens, create_function('$t', 'return ! $t->tagged();'))); +- return implode(' ', array_map(create_function('$t', 'return $t->word;'), $untaggedTokens)); ++ $untaggedTokens = array_values(array_filter($this->tokens, function ($t) { return ! $t->tagged(); })); ++ return implode(' ', array_map(function ($t) { return $t->word; }, $untaggedTokens)); + } + + } +--- a/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Token.php ++++ b/Horde_Date_Parser-2.0.6/lib/Horde/Date/Parser/Token.php +@@ -23,7 +23,7 @@ + */ + public function untag($tagClass) + { +- $this->tags = array_filter($this->tags, create_function('$t', 'return substr($t[0], 0, ' . strlen($tagClass) . ') != "' . $tagClass . '";')); ++ $this->tags = array_filter($this->tags, function ($t) use ($tagClass) { return substr($t[0], 0, strlen($tagClass)) != $tagClass; }); + } + + /** +@@ -39,7 +39,7 @@ + */ + public function getTag($tagClass) + { +- $matches = array_filter($this->tags, create_function('$t', 'return substr($t[0], 0, ' . strlen($tagClass) . ') == "' . $tagClass . '";')); ++ $matches = array_filter($this->tags, function ($t) use ($tagClass) { return substr($t[0], 0, strlen($tagClass)) == $tagClass; }); + $match = array_shift($matches); + return $match[1]; + }
  1. php-horde-date
  2. php-horde-date-parser