Package: release.debian.org
Severity: normal
Tags: bookworm
X-Debbugs-Cc: php-doctrine-le...@packages.debian.org, t...@security.debian.org
Control: affects -1 + src:php-doctrine-lexer
User: release.debian....@packages.debian.org
Usertags: pu

[8/9 for bookworm]

This is a follow up from composer/DSA-5632-1.

In order to fix a Debian-specific issue related to CVE-2024-24821, we
agreed with the security team to push related dependencies via the next
point release.

The only change (besides changelog entry) in the binary package is the
following (thanks to diffoscope).

│ │ ├── ./usr/share/php/Doctrine/Common/Lexer/autoload.php
│ │ │ @@ -1,11 +1,11 @@
│ │ │  <?php
│ │ │  
│ │ │  // Require
│ │ │ -require_once 'Doctrine/Deprecations/autoload.php';
│ │ │ +require_once __DIR__ . '/../../Deprecations/autoload.php';
│ │ │  
│ │ │  // Suggest

The goal is to ensure related dependencies are loaded from the system
path.

The attached debdiff is a bit bigger, since it aims at keeping the
testsuite at buildtime effective.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

TIA for considering.

Cheers,

taffit
diff -Nru php-doctrine-lexer-2.1.0/debian/autoload.php.tpl php-doctrine-lexer-2.1.0/debian/autoload.php.tpl
--- php-doctrine-lexer-2.1.0/debian/autoload.php.tpl	1970-01-01 01:00:00.000000000 +0100
+++ php-doctrine-lexer-2.1.0/debian/autoload.php.tpl	2024-02-15 23:22:05.000000000 +0100
@@ -0,0 +1,29 @@
+<?php
+
+// Require
+require_once __DIR__ . '/../../Deprecations/autoload.php';
+
+// Suggest
+
+// @codingStandardsIgnoreFile
+// @codeCoverageIgnoreStart
+// this is an autogenerated file - do not edit
+spl_autoload_register(
+    function($class) {
+        static $classes = null;
+        if ($classes === null) {
+            $classes = array(
+                ___CLASSLIST___
+            );
+        }
+        $cn = strtolower($class);
+        if (isset($classes[$cn])) {
+            require ___BASEDIR___$classes[$cn];
+        }
+    },
+    ___EXCEPTION___,
+    ___PREPEND___
+);
+// @codeCoverageIgnoreEnd
+
+// Files
diff -Nru php-doctrine-lexer-2.1.0/debian/changelog php-doctrine-lexer-2.1.0/debian/changelog
--- php-doctrine-lexer-2.1.0/debian/changelog	2023-01-01 10:13:59.000000000 +0100
+++ php-doctrine-lexer-2.1.0/debian/changelog	2024-02-15 23:22:10.000000000 +0100
@@ -1,3 +1,10 @@
+php-doctrine-lexer (2.1.0-2+deb12u1) bookworm; urgency=medium
+
+  * Track debian/bookworm-security
+  * Force system dependencies loading
+
+ -- David Prévot <taf...@debian.org>  Thu, 15 Feb 2024 23:22:10 +0100
+
 php-doctrine-lexer (2.1.0-2) unstable; urgency=medium
 
   * Upload to unstable
diff -Nru php-doctrine-lexer-2.1.0/debian/clean php-doctrine-lexer-2.1.0/debian/clean
--- php-doctrine-lexer-2.1.0/debian/clean	2022-12-12 07:58:13.000000000 +0100
+++ php-doctrine-lexer-2.1.0/debian/clean	2024-02-15 23:22:05.000000000 +0100
@@ -1,5 +1,4 @@
 .phpunit.result.cache
-debian/autoload.php.tpl
 debian/autoload.tests.php.tpl
 Doctrine/
 src/autoload.php
diff -Nru php-doctrine-lexer-2.1.0/debian/control php-doctrine-lexer-2.1.0/debian/control
--- php-doctrine-lexer-2.1.0/debian/control	2023-01-01 10:10:48.000000000 +0100
+++ php-doctrine-lexer-2.1.0/debian/control	2024-02-15 23:20:25.000000000 +0100
@@ -9,7 +9,7 @@
                phpab,
                phpunit
 Standards-Version: 4.6.2
-Vcs-Git: https://salsa.debian.org/php-team/pear/php-doctrine-lexer.git -b debian/bookworm
+Vcs-Git: https://salsa.debian.org/php-team/pear/php-doctrine-lexer.git -b debian/bookworm-security
 Vcs-Browser: https://salsa.debian.org/php-team/pear/php-doctrine-lexer
 Homepage: https://www.doctrine-project.org/projects/lexer.html
 Rules-Requires-Root: no
diff -Nru php-doctrine-lexer-2.1.0/debian/gbp.conf php-doctrine-lexer-2.1.0/debian/gbp.conf
--- php-doctrine-lexer-2.1.0/debian/gbp.conf	2023-01-01 10:10:48.000000000 +0100
+++ php-doctrine-lexer-2.1.0/debian/gbp.conf	2024-02-15 23:20:29.000000000 +0100
@@ -1,5 +1,5 @@
 [DEFAULT]
-debian-branch = debian/bookworm
+debian-branch = debian/bookworm-security
 filter = [ '.gitattributes' ]
 pristine-tar = True
 upstream-branch = upstream-2.x
diff -Nru php-doctrine-lexer-2.1.0/debian/rules php-doctrine-lexer-2.1.0/debian/rules
--- php-doctrine-lexer-2.1.0/debian/rules	2022-12-12 07:59:50.000000000 +0100
+++ php-doctrine-lexer-2.1.0/debian/rules	2024-02-15 23:22:05.000000000 +0100
@@ -3,13 +3,13 @@
 	dh $@
 
 override_dh_auto_build:
-	phpabtpl composer.json > debian/autoload.php.tpl
 	phpab \
 		--output src/autoload.php \
 		--template debian/autoload.php.tpl \
 		src
 	mkdir --parents vendor Doctrine/Common
-	ln -s ../../src Doctrine/Common/Lexer
+	cp -r src Doctrine/Common/Lexer
+	ln -s /usr/share/php/Doctrine/Deprecations Doctrine
 	phpabtpl \
 		--require doctrine/lexer \
 		> debian/autoload.tests.php.tpl

Attachment: signature.asc
Description: PGP signature

Reply via email to