php-mongodb-mongodb 2.5.0-1
Package Information
| Description | ${phpcomposer:description} This library provides a high-level abstraction around the lower-level PHP driver (mongodb extension). This library implements a full-featured API similar to that of other MongoDB drivers. It contains abstractions for client, database, and collection objects, and provides methods for CRUD operations and common commands (e.g. index and collection management). |
|---|---|
| Maintainer | Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org> |
| Changed By | David Prévot <taffit@debian.org> |
| Sponsor | taffit@debian.org |
| Distribution | experimental |
| Architecture | all |
| VCS | git: https://salsa.debian.org/php-team/pear/php-mongodb-mongodb.git (browse) |
| Tracker | https://tracker.debian.org/pkg/php-mongodb-mongodb |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Source | php-mongodb-mongodb |
|---|---|
| Version | 2.5.0-1 |
| Changed-By | David Prévot <taffit@debian.org> |
| Architecture | source all |
| Distribution | experimental |
| Date | Thu, 05 Nov 2026 10:48:07 +0100 |
Changelog
php-mongodb-mongodb (2.5.0-1) experimental; urgency=medium . * Initial release (new symfony dependency)
.dsc
| Priority | optional |
|---|---|
| Component | main |
| Package-List | php-mongodb-mongodb deb php optional arch=all |
| Section | php |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: MongoDB PHP Library Source: https://github.com/mongodb/mongo-php-library Upstream-Contact: Andreas Braun <andreas.braun@mongodb.com> Files: * Copyright: 2015-present MongoDB, Inc. License: Apache-2.0 On Debian systems, the full text of the Apache License version 2 can be found in `/usr/share/common-licenses/Apache-2.0'.
DFSG Assistant LLM REVIEW 0 blocker, 1 important, 0 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for php-mongodb-mongodb version 2.5.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 0 blocker, 1 important, 0 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
Every upstream file is under Apache-2.0 by MongoDB, Inc., which is DFSG-free and correctly reflected by the single Files: * stanza; the upstream LICENSE is the unmodified Apache-2.0 text, there is no NOTICE, and no vendored third-party code or differently-licensed file exists in the tree. debian/copyright is nevertheless inaccurate: its Files: * stanza covers debian/ too, so it attributes the Debian packaging and the three Debian patches (David Prévot's work) to MongoDB, Inc., and no stanza states the packaging's own copyright or licence.
Packaging
Competent pkg-php-tools packaging: debhelper compat 14 with dh-sequence-phpcomposer, Standards-Version: 4.7.4 (current against Policy 4.7.4.1), correct composer-derived substvars, Multi-Arch: foreign on an Architecture: all library, an autopkgtest whose Test-Command exercises the installed library, and three well-formed patches with clear purposes. The generated autoloaders, debian/clean, debian/install and debian/autoloaders/debian/overrides mappings are consistent, and the changelog is a sane initial 2.5.0-1 entry.
Issues
important
licensing
1. Files: * claims the Debian packaging and patches are Copyright MongoDB, Inc., with no Files: debian/* stanza
◂
-
Files:
debian/copyright:6-9,debian/patches/0001-Drop-composer-runtime-api-dependency.patch:1-4,debian/patches/0002-Compatibility-with-recent-PHPUnit-13.patch:1-4,debian/patches/0003-Skip-tests-requiring-an-actual-MongoDB-server.patch:1-4,debian/changelog:5 -
Basis: checked, in the package or with a reference tool
-
Evidence:
debian/copyright has only:
Files: * Copyright: 2015-present MongoDB, Inc. License: Apache-2.0 On Debian systems, the full text of the Apache License version 2 can be found in `/usr/share/common-licenses/Apache-2.0'.while the packaging is not MongoDB's:
debian/changelog:5ends-- David Prévot <taffit@debian.org> Thu, 05 Nov 2026 ...and all three patches startFrom: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>withDate: Thu, 5 Nov 2026. -
Problem: In copyright-format 1.0 a
Filespattern of*matches every file in the source package at any depth,debian/included (copyright-format 6.9), so the stanza asserts thatdebian/rules,debian/control,debian/install,debian/clean,debian/tests/control, the autoloaders/overrides files and the three patches are the copyrighted work of MongoDB, Inc. licensed under Apache-2.0. Those files are David Prévot's, so the file does not accurately describe the copyright of every file in the source, which is what Policy 12.5 requires of it. -
Fix: Add a stanza after
Files: *, e.g.Files: debian/*withCopyright: 2026 David Prévot <taffit@debian.org>and the licence he intends for the packaging (Apache-2.0 is the natural choice here), so that the catch-all no longer claims the Debian work.
Verified ◂
- The prescan (
/review-input/prescan.md) listed no files to account for and found no copyright holder missing fromdebian/copyright; I confirmed that by re-running the holder and licence searches myself. debian/copyrightread in full: DEP-5, correctFormat:URL, oneFiles: *stanza,Copyright: 2015-present MongoDB, Inc.,License: Apache-2.0pointing at/usr/share/common-licenses/Apache-2.0(the file exists), noFiles-Excluded.- Licence sweep over the whole tree (1164 files;
.pc/anddebian/cargo-checksum.jsonpassed over): the only licence text found is Apache-2.0. All PHP headers found (101 files) readCopyright <year>-present MongoDB, Inc./Licensed under the Apache License, Version 2.0; a search for BSD/MIT/ISC/CC/GNU/SPDX/public domain/All rights reservedand for SSPL, non-commercial, no-modification or field-of-use wording produced no hits (the apparent MIT hits were the substring incommit/submit). - Only licence-bearing file is the top-level
LICENSE, the complete unmodified Apache-2.0 text; there is no NOTICE/COPYING/AUTHORS and no per-directory licence file. - No vendored third-party code:
.evergreen/,.github/,benchmark/,examples/,generator/,src/,stubs/,tests/,tools/and the Markdown docs are all MongoDB's own repository content under the above LICENSE, so no separate stanza is required for them. sbom.jsonis a CycloneDX 1.5 metadata file naming the composer/cyclonedx build tools that produced it; it contains no bundled code and no licence claim about the package.tests/drivers-evergreen-tools,tests/specificationsandgenerator/mql-specificationsare the empty checkouts of the.gitmodulessubmodules (a git-export tarball does not carry submodule content); nothing from them is shipped, so nothing needs a copyright stanza, though the spec-test fixtures are consequently absent.src/Builderis 373 files whose header saysTHIS FILE IS AUTO-GENERATED. ANY CHANGES WILL BE LOST!; the generator that produces them is shipped ingenerator/(free, Apache-2.0, and referenced by.github/workflows/generator.yml), which reads its definitions from the emptygenerator/mql-specificationssubmodule, so the tree cannot be regenerated as-is even though the shipped PHP is the modifiable source.- No binary, image, font, minified, PDF or other built artifact exists in the tree, matching the prescan's empty findings.
debian/read in full exceptdebian/watch(out of scope):control,rules,changelog,copyright,install,clean,examples,gbp.conf,README.source,source/format(3.0 quilt),tests/control,upstream/metadata,autoloaders/php-mongodb-mongodb,overrides/php-mongodb-mongodband all three patches withpatches/series.Standards-Version: 4.7.4against the reviewing system's Policy 4.7.4.1: current enough, not an issue.- Dependencies exist and satisfy the composer constraints:
php-mongodb 2.5.5-1,php-symfony-polyfill-php84/-php85 1.43.3-1,phpab 1.29.4-2,phpunit 13.4.5+ds-1,pkg-php-tools 1.50(which providesphpabtpl), checked with theapt-cachetool;php-mongodb-mongodbis this upload's own binary. - debhelper compat 14:
${misc:Depends}and${phpcomposer:...}are added bydh_gencontrolitself, so their layout (and the absence of${shlibs:Depends}) is correct, anddhskips theoverride_dh_auto_testtarget underDEB_BUILD_OPTIONS=nocheck, so that override need not checknocheck; the<!nocheck>markers onphp-mongodb,php-psr-logandphpunitare therefore consistent with the test wrapper. debian/tests/controlconforms to the autopkgtest specification:Test-Commandmay stand alone withoutTests:,Depends: ..., @is right, andrw-build-treeis needed because the command writesvendor/anddebian/autoload.tests.php.tpl, both of whichdebian/cleanremoves.- Patches:
0001removes only thecomposer-runtime-apirequirement (Debian does not use composer's runtime API),0002only adapts PHPUnit API usage (isType/containsOnlytoisString/isArray/isObject/containsOnlyString) and adds the data-provider parameters the providers already yield,0003skips the server-dependent functional tests and deletes the GridFS and unified-spec runners;0002and0003apply in series cleanly because0002modifies files0003then deletes. debian/install,debian/autoloadersanddebian/overridesagree with each other:src/*goes to/usr/share/php/MongoDBand the autoloader mapping namesMongoDB/autoload.php;debian/cleanremoves every file the build generates (src/autoload.php,vendor/, both phpab templates,.phpunit.result.cache).- Changelog is a single, well-formed initial
2.5.0-1entry for a new source package, dated and signed by the Uploader; no bug closures are claimed. - uscan found the packaged version as the newest upstream release (upstream
2.5.0, packaged2.5.0). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
- I could not run the build or the autopkgtest, so I did not confirm that the patched test suite passes; the skip patch and the missing specification fixtures suggest the run exercises only the server-independent unit tests.
pkg-php-toolsis not installed on the reviewing system, so I could not readdh_phpcomposerorphpabtpland verify the${phpcomposer:Debian-require}/-provide/-replace/-conflict/-suggestsubstvar names, thephpabtpl --basedir src composer.jsonand--require-file ../src/autoload.phpinvocation, or thedebian/autoloaders/debian/overridesline formats; the.dsc's renderedTestsuite-Triggersis consistent with the control file, and the maintainer's upload would not build otherwise.- Whether the auto-generated
src/Builderclasses still match whatgenerator/would produce cannot be checked here, because the generator's definition input is the emptygenerator/mql-specificationssubmodule.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.