Your message dated Mon, 13 Apr 2020 00:19:22 +0000
with message-id <[email protected]>
and subject line Bug#947966: fixed in php-nesbot-carbon 2.30.0-1
has caused the Debian Bug report #947966,
regarding php-nesbot-carbon: include an autoloader
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
947966: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947966
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php-nesbot-carbon
Version: 1.27.0-2
Severity: wishlist
Tags: patch
Dear Maintainer,
Please consider including an autoloader (autoload.php) in the package.
Many PHP library packages contain a file (autoload.php) defining an
autoloader for the library's classes and loading its own dependencies.
It's then sufficient for the client to include this one file to use the
library, without care for the its internals, dependencies, etc.
Outside of Debian packaging, this is often similarly handled with Composer's
"vendor/autoload.php" file.
I've attached a patch to implement this, should you be interested.
Regards,
Robin
-- System Information:
Debian Release: 10.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-6-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages php-nesbot-carbon depends on:
ii php-common 2:69
pn php-symfony-translation <none>
php-nesbot-carbon recommends no packages.
php-nesbot-carbon suggests no packages.
>From c68adc94881cf69613c15531b873ff9778f1e901 Mon Sep 17 00:00:00 2001
From: Robin Gustafsson <[email protected]>
Date: Thu, 2 Jan 2020 20:34:10 +0100
Subject: [PATCH] Add an autoloader
---
debian/autoload.php.tpl | 24 ++++++++++++++++++++++++
debian/clean | 1 +
debian/control | 2 +-
debian/rules | 4 ++++
4 files changed, 30 insertions(+), 1 deletion(-)
create mode 100644 debian/autoload.php.tpl
create mode 100644 debian/clean
diff --git a/debian/autoload.php.tpl b/debian/autoload.php.tpl
new file mode 100644
index 0000000..89c4f4f
--- /dev/null
+++ b/debian/autoload.php.tpl
@@ -0,0 +1,24 @@
+<?php
+
+require_once 'Symfony/Component/Translation/autoload.php';
+
+// @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]) and file_exists(___BASEDIR___$classes[$cn])) {
+ require ___BASEDIR___$classes[$cn];
+ }
+ },
+ true,
+ false
+);
+// @codeCoverageIgnoreEnd
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..d8d15f2
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+src/Carbon/autoload.php
diff --git a/debian/control b/debian/control
index 71e1ff0..cda966f 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: php
Priority: optional
Maintainer: Teckids Debian Task Force <[email protected]>
Uploaders: Thorsten Glaser <[email protected]>, Dominik George
<[email protected]>
-Build-Depends: debhelper-compat (= 12), pkg-php-tools (>= 1.7~)
+Build-Depends: debhelper-compat (= 12), pkg-php-tools (>= 1.7~), phpab
Standards-Version: 4.4.1
Homepage: https://carbon.nesbot.com/
Rules-Requires-Root: no
diff --git a/debian/rules b/debian/rules
index 3b60be1..4a6c6bd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,7 @@
%:
dh $@ --with phpcomposer
+
+override_dh_auto_build:
+ dh_auto_build
+ phpab -o src/Carbon/autoload.php -t debian/autoload.php.tpl src/Carbon
--
2.20.1
--- End Message ---
--- Begin Message ---
Source: php-nesbot-carbon
Source-Version: 2.30.0-1
Done: Robin Gustafsson <[email protected]>
We believe that the bug you reported is fixed in the latest version of
php-nesbot-carbon, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Robin Gustafsson <[email protected]> (supplier of updated php-nesbot-carbon
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 12 Apr 2020 20:58:10 +0200
Source: php-nesbot-carbon
Architecture: source
Version: 2.30.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian PHP PEAR Maintainers <[email protected]>
Changed-By: Robin Gustafsson <[email protected]>
Closes: 947966 951603
Changes:
php-nesbot-carbon (2.30.0-1) unstable; urgency=medium
.
* New maintainer
* New upstream release (Closes: #951603)
* Include an autoloader (Closes: #947966)
* Reformat copyright and upstream metadata
* Import upstream's git tags instead of their releases to keep tests
* Set up automated testing
* Remove patch for versioned Symfony dependency
* Update standards version
* Filter out upstream's .gitattributes
* Remove .gitattributes
* Enable Salsa CI
* Update package info for team maintenance
Checksums-Sha1:
d3e7000d16231acec8b4a17e2f4f9f8f41153810 1760 php-nesbot-carbon_2.30.0-1.dsc
8e4c8fba867a16358eaa4eccc3c0c71a03d20ddf 442412
php-nesbot-carbon_2.30.0.orig.tar.xz
b781e334748d275740cc9271204b0360a2c349a6 4296
php-nesbot-carbon_2.30.0-1.debian.tar.xz
bab6aac067b55773c30c5883a6354f864f454cb2 5889
php-nesbot-carbon_2.30.0-1_amd64.buildinfo
Checksums-Sha256:
6e29849d03a71b31690a4a7cc8db75dd148b35e380f62c6e4f6c3f26038d37d6 1760
php-nesbot-carbon_2.30.0-1.dsc
72f0df039d0c879119ff76e2fc4c2fbc6a370943a93505b1a6f1795be949b5a8 442412
php-nesbot-carbon_2.30.0.orig.tar.xz
68ae56d9b4d023edce17d10dd4318799c710faca2e89423864dfb144a9b5f548 4296
php-nesbot-carbon_2.30.0-1.debian.tar.xz
68cb08c19cc6cbdc3f8467e55b5414bbb96b4415efde3d3211869a1d357dcb36 5889
php-nesbot-carbon_2.30.0-1_amd64.buildinfo
Files:
21d65383d49a26b9f4abd20570d3a147 1760 php optional
php-nesbot-carbon_2.30.0-1.dsc
5100837e2a7fd924fa22fd49acf7d4cc 442412 php optional
php-nesbot-carbon_2.30.0.orig.tar.xz
46384beaffb873569aa5ba84ff870aca 4296 php optional
php-nesbot-carbon_2.30.0-1.debian.tar.xz
f490f4fa37b8268d6393bd2da4edb283 5889 php optional
php-nesbot-carbon_2.30.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEeHVNB7wJXHRI941mBYwc+UT2vTwFAl6Tp7oACgkQBYwc+UT2
vTywxwf/b0y4Kgw31jPx7CKIisPwCY83OsK/tHCx50B/wu+M5BfP5pf7JqRWwDGK
9pnDbMf/8KCx8qunwwQp0yXuRhr7Qut/+ExR5AMGrzGKjzSnPj7IV5r4+nVng3aq
VltUFk3R24bphqtGLpXsEv9faNgFhlxM5rMKSAzp14iSswpYGm3VXMBR/Wawtxzw
s9w+8Uodx5dnCIvYaETWwAg39r2jxKXKIoR7zOyxpizSWRFYksXQxoHXry2DXfal
+2N9crQmQKaERhAZuynvg4Rm46OrF3Ie9weJeDvYswIkGH3xGUdXKgtaGn5IEv0j
Mu3ZB/HJ5qT+VdpX17SGZJTQfWDP4w==
=6QnZ
-----END PGP SIGNATURE-----
--- End Message ---