Merge ~bryce/ubuntu/+source/php-parser:merge-v4.13.2-1-jammy into ubuntu/+source/php-parser:debian/sid

Proposed by Bryce Harrington
Status: Merged
Merge reported by: Bryce Harrington
Merged at revision: e75a3801c573e6756ddcecaf066d93da397463f2
Proposed branch: ~bryce/ubuntu/+source/php-parser:merge-v4.13.2-1-jammy
Merge into: ubuntu/+source/php-parser:debian/sid
Diff against target: 234 lines (+181/-1)
5 files modified
debian/changelog (+49/-0)
debian/control (+2/-1)
debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch (+57/-0)
debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch (+71/-0)
debian/patches/series (+2/-0)
Reviewer Review Type Date Requested Status
Utkarsh Gupta (community) Approve
Canonical Server Pending
Canonical Server packageset reviewers Pending
git-ubuntu import Pending
Review via email: mp+416359@code.launchpad.net

Description of the change

Merge with Debian's package. This simply pulls in a bugfix release from upstream, with the following changes:

Version 4.13.2 (2021-11-30)
---------------------------

### Added

* Added builders for enums and enum cases.

### Fixed

* NullsafeMethodCall now extends from CallLike.
* The `namespacedName` property populated by the `NameResolver` is now declared on relevant nodes,
  to avoid a dynamic property deprecation warning with PHP 8.2.

These sound more like refactoring than bugfixing, but the changes are discrete enough I think they'll be safe. I don't think this violates feature freeze but am filing this MP for a second opinion. The changes are not very important, so skipping this update is certainly a valid possibility here. OTOH, if this is acceptable there are some other random PHP packages with similarly modest merges I might try to pull in.

PPA: https://launchpad.net/~bryce/+archive/ubuntu/php-parser-merge-v4.13.2-1

Bileto:
* gnome-terminal
  - lp-test-ppa ppa:bryce/php-parser-merge-v4.13.2-1 --release jammy --showpass

Usual tags pushed for review:
  tags/old/debian 2456951
  tags/new/debian 6cb14a8
  tags/old/ubuntu 5b1b4e9
  tags/logical/4.13.1-1ubuntu2 c6c7b96
  tags/reconstruct/4.13.1-1ubuntu2 60b5e53
  tags/split/4.13.1-1ubuntu2 a7d1868

Code for this change has been pushed to this branch:
  merge-v4.13.2-1-jammy

To post a comment you must log in.
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Go, go, go.

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks; uploaded

Vcs-Git: https://git.launchpad.net/~bryce/ubuntu/+source/php-parser
Vcs-Git-Commit: e75a3801c573e6756ddcecaf066d93da397463f2
Vcs-Git-Ref: refs/heads/merge-v4.13.2-1-jammy

$ dput ubuntu ../php-parser_4.13.2-1ubuntu1_source.changes
gpg: ../php-parser_4.13.2-1ubuntu1_source.changes: Valid signature from E603B2578FB8F0FB
gpg: ../php-parser_4.13.2-1ubuntu1.dsc: Valid signature from E603B2578FB8F0FB
D: Setting host argument.
Checking signature on .changes
Checking signature on .dsc
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading php-parser_4.13.2-1ubuntu1.dsc: done.
  Uploading php-parser_4.13.2.orig.tar.xz: done.
  Uploading php-parser_4.13.2-1ubuntu1.debian.tar.xz: done.
  Uploading php-parser_4.13.2-1ubuntu1_source.buildinfo: done.
  Uploading php-parser_4.13.2-1ubuntu1_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 5c1a75a..9e80dcd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,18 @@
1php-parser (4.13.2-1ubuntu1) jammy; urgency=medium
2
3 * Merge with Debian unstable. Remaining changes:
4 - d/p/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch:
5
6 + Disable two new test cases in order to fix proposed migration
7 blockage on armhf due to autopkgtest failures. Upstream indicates
8 these new test cases have not been verified to work with 32-bit.
9 (LP #1878102)
10 - d/p/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch:
11 + Disable another test case that is not yet 32-bit compatible, to fix
12 proposed migration blockage on armhf.
13
14 -- Bryce Harrington <bryce@canonical.com> Thu, 03 Mar 2022 14:54:31 -0800
15
1php-parser (4.13.2-1) unstable; urgency=medium16php-parser (4.13.2-1) unstable; urgency=medium
217
3 [ Jaroslav Hanslík ]18 [ Jaroslav Hanslík ]
@@ -8,6 +23,26 @@ php-parser (4.13.2-1) unstable; urgency=medium
823
9 -- David Prévot <taffit@debian.org> Mon, 06 Dec 2021 09:49:28 -040024 -- David Prévot <taffit@debian.org> Mon, 06 Dec 2021 09:49:28 -0400
1025
26php-parser (4.13.1-1ubuntu2) jammy; urgency=medium
27
28 * No-change rebuild against older phpunit to resolve dependency confusion.
29
30 -- Bryce Harrington <bryce@canonical.com> Fri, 19 Nov 2021 00:38:48 +0000
31
32php-parser (4.13.1-1ubuntu1) jammy; urgency=medium
33
34 * Merge with Debian unstable. Remaining changes:
35 - d/p/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch:
36 + Disable two new test cases in order to fix proposed migration
37 blockage on armhf due to autopkgtest failures. Upstream indicates
38 these new test cases have not been verified to work with
39 32-bit. (LP #1878102)
40 - d/p/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch:
41 + Disable another test case that is not yet 32-bit compatible, to
42 fix proposed migration blockage on armhf.
43
44 -- Utkarsh Gupta <utkarsh@debian.org> Tue, 09 Nov 2021 17:51:30 +0530
45
11php-parser (4.13.1-1) unstable; urgency=medium46php-parser (4.13.1-1) unstable; urgency=medium
1247
13 [ Nikita Popov ]48 [ Nikita Popov ]
@@ -35,6 +70,20 @@ php-parser (4.13.0-1) unstable; urgency=medium
3570
36 -- David Prévot <taffit@debian.org> Thu, 07 Oct 2021 14:17:02 -040071 -- David Prévot <taffit@debian.org> Thu, 07 Oct 2021 14:17:02 -0400
3772
73php-parser (4.10.4-1ubuntu1) hirsute; urgency=medium
74
75 * Merge with Debian unstable. Remaining changes:
76 - d/p/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch:
77 + Disable two new test cases in order to fix proposed migration
78 blockage on armhf due to autopkgtest failures. Upstream indicates
79 these new test cases have not been verified to work with 32-bit.
80 (LP #1878102)
81 - d/p/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch:
82 + Disable another test case that is not yet 32-bit compatible, to fix
83 proposed migration blockage on armhf.
84
85 -- Bryce Harrington <bryce@canonical.com> Thu, 21 Jan 2021 13:39:03 -0800
86
38php-parser (4.10.4-1) unstable; urgency=medium87php-parser (4.10.4-1) unstable; urgency=medium
3988
40 [ Nikita Popov ]89 [ Nikita Popov ]
diff --git a/debian/control b/debian/control
index 2e9c63d..9d06b17 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: php-parser1Source: php-parser
2Section: php2Section: php
3Priority: optional3Priority: optional
4Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
5Uploaders: David Prévot <taffit@debian.org>,6Uploaders: David Prévot <taffit@debian.org>,
6 Prach Pongpanich <prachpub@gmail.com>7 Prach Pongpanich <prachpub@gmail.com>
7Build-Depends: debhelper-compat (= 13),8Build-Depends: debhelper-compat (= 13),
diff --git a/debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch b/debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch
8new file mode 1006449new file mode 100644
index 0000000..759c633
--- /dev/null
+++ b/debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch
@@ -0,0 +1,57 @@
1From d8a2b2392cc65b493e375987cb593a4f641e7b64 Mon Sep 17 00:00:00 2001
2From: Bryce Harrington <bryce@bryceharrington.org>
3Date: Tue, 12 May 2020 20:37:14 +0000
4Subject: [PATCH] Disable new test cases not yet 32-bit compatible
5
6Two test cases new in 4.4.0 fail on armhf:
7
8 - CodeParsingTest::testParse: Different integer syntaxes
9 - Lexer\EmulativeTest::testLexNewFeatures: '0xCAFE_F00D'
10
11Upstream reports these may not be 32-bit compatible.
12
13For now, don't run these two new test cases, until they're expected to be
14able to run on all platforms.
15
16Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
17---
18 test/PhpParser/Lexer/EmulativeTest.php | 12 ------------
19 1 file changed, 12 deletions(-)
20
21Origin: vendor
22Bug: https://github.com/nikic/PHP-Parser/issues/662
23Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/php-parser/+bug/1878102
24Last-Updated: 2020-12-18
25
26diff --git a/test/PhpParser/Lexer/EmulativeTest.php b/test/PhpParser/Lexer/EmulativeTest.php
27index e141b13..9b74fd1 100644
28--- a/test/PhpParser/Lexer/EmulativeTest.php
29+++ b/test/PhpParser/Lexer/EmulativeTest.php
30@@ -105,15 +105,6 @@ class EmulativeTest extends LexerTest
31 $this->assertSame($expectedTokens, $tokens);
32 }
33
34- /**
35- * @dataProvider provideTestLexNewFeatures
36- */
37- public function testLexNewFeatures($code, array $expectedTokens) {
38- $lexer = $this->getLexer();
39- $lexer->startLexing('<?php ' . $code);
40- $this->assertSameTokens($expectedTokens, $lexer);
41- }
42-
43 /**
44 * @dataProvider provideTestLexNewFeatures
45 */
46@@ -241,9 +232,6 @@ class EmulativeTest extends LexerTest
47 ['1_000', [
48 [Tokens::T_LNUMBER, '1_000'],
49 ]],
50- ['0xCAFE_F00D', [
51- [Tokens::T_LNUMBER, '0xCAFE_F00D'],
52- ]],
53 ['0b0101_1111', [
54 [Tokens::T_LNUMBER, '0b0101_1111'],
55 ]],
56--
572.25.1
diff --git a/debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch b/debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch
0new file mode 10064458new file mode 100644
index 0000000..de04972
--- /dev/null
+++ b/debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch
@@ -0,0 +1,71 @@
1From a354b3bc4fcf1bfe22d84741ebd1d945c4fa50df Mon Sep 17 00:00:00 2001
2From: Bryce Harrington <bryce@bryceharrington.org>
3Date: Thu, 14 May 2020 23:11:18 +0000
4Subject: [PATCH] Disable CodeParsingTest due to integer syntax inconsistency
5 on armhf
6
7Workaround testsuite failure when run on armhf by disabling the test
8case. The specific failing test case is from
9PhpParser\CodeParsingTest::testParse with the
10scalar/numberSeparators.test#0 data set:
11
12 2: Stmt_Expression(
13 - expr: Scalar_LNumber(
14 - value: 3405705229
15 + expr: Scalar_DNumber(
16 + value: 0
17 )
18
19Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
20---
21 test/PhpParser/CodeParsingTest.php | 29 -----------------------------
22 1 file changed, 29 deletions(-)
23
24Origin: vendor
25Bug: https://github.com/nikic/PHP-Parser/issues/662
26Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/php-parser/+bug/1878102
27Last-Updated: 2020-12-18
28
29diff --git a/test/PhpParser/CodeParsingTest.php b/test/PhpParser/CodeParsingTest.php
30index 24e93dd..1947932 100644
31--- a/test/PhpParser/CodeParsingTest.php
32+++ b/test/PhpParser/CodeParsingTest.php
33@@ -7,35 +7,6 @@ use PhpParser\Node\Stmt;
34
35 class CodeParsingTest extends CodeTestAbstract
36 {
37- /**
38- * @dataProvider provideTestParse
39- */
40- public function testParse($name, $code, $expected, $modeLine) {
41- if (null !== $modeLine) {
42- $modes = array_fill_keys(explode(',', $modeLine), true);
43- } else {
44- $modes = [];
45- }
46-
47- list($parser5, $parser7) = $this->createParsers($modes);
48- list($stmts5, $output5) = $this->getParseOutput($parser5, $code, $modes);
49- list($stmts7, $output7) = $this->getParseOutput($parser7, $code, $modes);
50-
51- if (isset($modes['php5'])) {
52- $this->assertSame($expected, $output5, $name);
53- $this->assertNotSame($expected, $output7, $name);
54- } elseif (isset($modes['php7'])) {
55- $this->assertNotSame($expected, $output5, $name);
56- $this->assertSame($expected, $output7, $name);
57- } else {
58- $this->assertSame($expected, $output5, $name);
59- $this->assertSame($expected, $output7, $name);
60- }
61-
62- $this->checkAttributes($stmts5);
63- $this->checkAttributes($stmts7);
64- }
65-
66 public function createParsers(array $modes) {
67 $lexer = new Lexer\Emulative(['usedAttributes' => [
68 'startLine', 'endLine',
69--
702.25.1
71
diff --git a/debian/patches/series b/debian/patches/series
index 629876c..5ce80e0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
10001-Allow-require-to-search-in-the-path.patch10001-Allow-require-to-search-in-the-path.patch
20002-Adapt-shebang-for-PHP-script.patch20002-Adapt-shebang-for-PHP-script.patch
30003-Disable-new-test-cases-not-yet-32-bit-compatible.patch
40004-Disable-CodeParsingTest-due-to-integer-syntax.patch

Subscribers

People subscribed via source and target branches