Commit 7a1e6cb
fix: inject APP_NAME/APP_VERSION and populate Composer\InstalledVersions in Debian autoloader
- debian/control: add composer as first Depends (or replace composer-debian)
to guarantee /usr/share/php/Composer/InstalledVersions.php is present
- debian/autoload.php: require InstalledVersions.php and call reload() to
accumulate per-package data across chained autoloaders; APP_NAME/APP_VERSION
constants pin the root package identity
- debian/rules: inject guarded defined()||define() constants at build time
using PKG_SOURCE/PKG_VERSION from dpkg-parsechangelog
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0c853cb commit 7a1e6cb
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments