php-mongodb 2.5.8-1
Package Information
| Description | MongoDB driver for PHP The purpose of this driver is to provide exceptionally thin glue between MongoDB and PHP, implementing only fundemental and performance-critical components necessary to build a fully-functional MongoDB driver. This is empty package that depends on default PHP version. |
|---|---|
| Maintainer | Debian PHP PECL Maintainers <team+php-pecl@tracker.debian.org> |
| Changed By | Ondřej Surý <ondrej@debian.org> |
| Sponsor | ondrej@debian.org |
| Distribution | experimental |
| Architecture | any all |
| VCS | git: https://salsa.debian.org/php-team/pecl/php-mongodb.git (browse) |
| Popcon Installs | 168 |
| Binary NEW | Yes (new binary packages of a source already in sid) |
| Tracker | https://tracker.debian.org/pkg/php-mongodb |
| Uploaded | 4 hours ago |
New Package Report
.changes
| Source | php-mongodb |
|---|---|
| Version | 2.5.8-1 |
| Changed-By | Ondřej Surý <ondrej@debian.org> |
| Architecture | source all amd64 |
| Distribution | experimental |
| Date | Sat, 21 Nov 2026 10:04:27 +0100 |
Changelog
php-mongodb (2.5.8-1) experimental; urgency=medium . * New upstream version 2.5.8 * Build-Depend on php-all-dev (>= 2:102~) for PHP 8.6 * Bump Build-Depends to dh-php >= 5.23~
.dsc
| Section | php |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | php-mongodb deb php optional arch=all php-mongodb-all-dev deb php optional arch=all php8.6-mongodb deb php optional arch=any |
debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mongodb
Source: http://pecl.php.net/package/mongodb
Files: *
Copyright: 2013-2015 MongoDB, Inc.
License: Apache-2.0
Files: */src/libbson/src/yajl/*
Copyright: 2007-2011 Lloyd Hilaiel
License: ISC
Files: */src/libbson/src/yajl/yajl_tree.c
*/src/libbson/src/yajl/yajl_tree.h
Copyright: 2010-2011 Florian Forster
License: ISC
Files: */src/libbson/src/bson/b64_ntop.h
*/src/libbson/src/bson/b64_pton.h
*/src/libmongoc/src/mongoc/mongoc-b64.c
Copyright: 1995 by International Business Machines, Inc.
1996, 1998 by Internet Software Consortium
License: ISC and Other-IBM
Files: */src/libbson/src/bson/bson-md5.c
*/src/libbson/src/bson/bson-md5.h
Copyright: 1999, 2000, 2002 Aladdin Enterprises
License: Zlib
Files: */src/libbson/src/bson/bson-stdint-win32.h
Copyright: 2006-2013 Alexander Chemeris
License: BSD-3-clause
Files: */src/libbson/src/bson/bson-timegm.c
Copyright: 1996 Arthur David Olson
License: public-domain
Files: */src/contrib/php-ssl.c
*/src/contrib/php-ssl.h
*/src/contrib/php_array_api.h
*/src/bson.c
*/php_bson.h
*/php_phongo.h
*/php_phongo_classes.h
Copyright: 1997-2015 The PHP Group
License: PHP-3.01
Files: */src/libmongoc/src/mongoc/mongoc-memcmp.c
Copyright: 2013-2015 Frank Denis
License: ISC
Files: */src/libmongoc/src/mongoc/utlist.h
Copyright: 2007-2014 Troy D. Hanson
License: BSD-1-clause
Files: debian/*
Copyright: 2015 Ondřej Surý <ondrej@debian.org>
License: Expat
License: Apache-2.0
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the full text of the Apache Software License version 2 can
be found in the file `/usr/share/common-licenses/Apache-2.0'.
License: Expat
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
License: ISC
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
License: Other-IBM
International Business Machines, Inc. (hereinafter called IBM) grants
permission under its copyrights to use, copy, modify, and distribute this
Software with or without fee, provided that the above copyright notice and
all paragraphs of this notice appear in all copies, and that the name of IBM
not be used in connection with the marketing of any product incorporating
the Software or modifications thereof, without specific, written prior
permission.
.
To the extent it has a right to do so, IBM grants an immunity from suit
under its patents, if any, for the use, sale or manufacture of products to
the extent that such products are used for performing Domain Name System
dynamic updates in TCP/IP networks by means of the Software. No immunity is
granted for any product per se or for any other function of any product.
.
THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL,
DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN
IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
3. Neither the name of the product nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License: BSD-1-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License: Zlib
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
.
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
License: PHP-3.01
--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2006 The PHP Group. All rights reserved.
--------------------------------------------------------------------
.
Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
.
3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact group@php.net.
.
4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from group@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"
.
5. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the terms
of that version. You may also choose to use such covered code
under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.
.
6. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP software, freely available from
<http://www.php.net/software/>".
.
THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
.
--------------------------------------------------------------------
.
This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.
.
The PHP Group can be contacted via Email at group@php.net.
.
For more information on the PHP Group and the PHP project,
please see <http://www.php.net>.
.
PHP includes the Zend Engine, freely available at
<http://www.zend.com>.
DFSG Assistant LLM REVIEW 3 blocker, 1 important, 5 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 2 hours ago.
Proposes a replacement debian/watch:
debian/watch in version 5 format
Proposes a replacement debian/copyright:
debian/copyright Format field
Report
DFSG NEW review for php-mongodb version 2.5.8-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: No
- Issues: 3 blocker, 1 important, 5 minor
- debian/watch: old format (version 3)
- debian/copyright: machine-readable, without the current Format URL
- Scan before the review: 13 found
Licensing
The source package is not DFSG-free: four files under src/libmongocrypt/src/unicode are under the SSPL-1.0, which is not a free licence, and they are compiled into the extension. debian/copyright is also inaccurate: its Files:* stanza calls the whole tree Apache-2.0, while compiled vendored code is under ISC/IBM, Zlib, Expat/MIT, BSD-1-Clause and BSD-3-Clause, and the autoconf-archive macros are GPL-2+/GPL-3+ with an exception that frees only the generated configure script. Holders in zlib and the Windows-only cURL code are also missing, though Policy 2.3 does not require those.
Packaging
The packaging is the conventional dh-php/PECL shape and its dependencies and substvars are correct, but it is dated: Standards-Version 4.5.1, debhelper compat 10, and it statically bundles libbson, libmongoc, libmongocrypt, utf8proc, jsonsl and zlib even though Debian ships matching libraries and actively Build-Conflicts against using them. Together with the licensing problems, the binary package is not distributable as it stands.
Issues
blocker licensing 1. SSPL-1.0 files in src/libmongocrypt/src/unicode are non-free and are compiled into php8.6-mongodb ◂
- Files:
mongodb-2.5.8/src/libmongocrypt/src/unicode/fold.c:3-13,mongodb-2.5.8/src/libmongocrypt/src/unicode/fold.h:3-13,mongodb-2.5.8/src/libmongocrypt/src/unicode/case-fold-map.c:3-13,mongodb-2.5.8/src/libmongocrypt/src/unicode/diacritic-fold-map.c:3-13,mongodb-2.5.8/config.m4:449,456,mongodb-2.5.8/src/libmongocrypt/src/mc-text-search-str-encode.c:23,debian/copyright:5-7 - Basis: checked, in the package or with a reference tool
- Evidence:
This program is free software: you can redistribute it and/or modify it under the terms of the Server Side Public License, version 1, as published by MongoDB, Inc.(all four files, line 5); config.m4:449 setsPHP_MONGODB_MONGOCRYPT_UNICODE_SOURCES="case-fold-map.c diacritic-fold-map.c fold.c"and config.m4:456 adds them to the extension; src/libmongocrypt/src/mc-text-search-str-encode.c:23#include "unicode/fold.h"; debian/copyright:5-7 gives themLicense: Apache-2.0. - Problem: The SSPL-1.0 is not a free licence: its section 13 conditions offering the software's functionality as a service on releasing the source of the whole service, a field-of-use restriction that fails DFSG 6 (and DFSG 3). The files are not inert data: they are compiled into the extension when client-side encryption is enabled, and fold.h is included by the compiled mc-text-search-str-encode.c. The source package therefore cannot be in main, and debian/copyright describes the files as Apache-2.0 on top of that. case-fold-map.c and diacritic-fold-map.c are additionally generated tables whose generator input is not in the package.
- Fix: Repack the upstream tarball to exclude src/libmongocrypt/src/unicode/* and patch out the text-search/Unicode-folding code that uses them, or obtain a relicensing of these files from MongoDB; record the removal in debian/copyright. The package cannot stay in main while these files are in the source package.
blocker licensing 2. Files:* claims Apache-2.0 for compiled vendored code under ISC, Zlib, Expat, BSD-1-Clause and BSD-3-Clause ◂
- Files:
debian/copyright:5-7,debian/copyright:18-28,debian/copyright:52-54,mongodb-2.5.8/src/libmongoc/src/common/src/common-b64.c:1-25,mongodb-2.5.8/src/libmongoc/src/common/src/common-md5.c:1-20,mongodb-2.5.8/src/libmongoc/src/libbson/src/jsonsl/jsonsl.c:1-4,mongodb-2.5.8/src/libmongoc/src/libbson/src/jsonsl/jsonsl.h:1-8,mongodb-2.5.8/src/libmongoc/src/uthash/uthash-2.3.0/utlist.h:1-20,mongodb-2.5.8/src/libmongoc/src/uthash/uthash-2.3.0/uthash.h:1-20,mongodb-2.5.8/src/libmongoc/src/utf8proc-2.11.3/utf8proc.c:1-22,mongodb-2.5.8/src/libmongoc/src/utf8proc-2.11.3/utf8proc.h:1-18,mongodb-2.5.8/src/libmongoc/src/utf8proc-2.11.3/utf8proc_data.c,mongodb-2.5.8/src/libmongocrypt/kms-message/src/sort.c:1-4,mongodb-2.5.8/src/libmongoc/src/kms-message/src/sort.c:1-4 - Basis: checked, in the package or with a reference tool
- Evidence:
SPDX-License-Identifier: BSD-3-ClauseandCopyright (c) 1992, 1993 The Regents of the University of California(sort.c:1-4);utf8proc is a free/open-source (MIT/expat licensed) C libraryandCopyright (c) 2014-2021 Steven G. Johnson, .../Copyright (c) 2009 Public Software Group e. V.(utf8proc.h:1-18);Copyright (C) 2012-2015 Mark Nunberg / See included LICENSE file(jsonsl.c:1-4, jsonsl.h:7-8);Copyright (C) 1999, 2000, 2002 Aladdin EnterprisesZlib text (common-md5.c);Copyright (c) 1996, 1998 by Internet Software Consortiumplus IBM (common-b64.c);Copyright (c) 2007-2021, Troy D. Hanson ... All rights reservedBSD-1 text (utlist.h, uthash.h). config.m4 compiles all of them: common sources at :364, jsonsl at :367/374, utf8proc at :369/421, kms sort.c at :450. - Problem: The stanzas that should cover these files no longer match: bson-md5.c, b64_ntop.h and mongoc-b64.c do not exist, so common-md5.c and common-b64.c fall through to
Files: *; jsonsl, utf8proc and both kms-message sort.c have no stanza at all; andFiles: */src/libmongoc/src/mongoc/utlist.hmatches only the Apache-2.0 forwarding wrapper, not src/libmongoc/src/uthash/uthash-2.3.0/utlist.h. Last-matching-stanza therefore describes compiled-in code as Apache-2.0, and the notices these licences require (Policy 2.3) are not recorded with the right holders. jsonsl's referenced LICENSE file is not in the package, so no jsonsl licence text is present at all. - Fix: Replace the stale stanzas with ones matching the tree: common-b64.c
ISC and Other-IBM(Internet Software Consortium, IBM); common-md5.cZlib(Aladdin Enterprises); jsonsl.c/.hExpat(Mark Nunberg); the two uthash-2.3.0 headersBSD-1-clause(Troy D. Hanson) and drop the mongoc/utlist.h stanza for the wrapper; utf8proc.c/.h/utf8proc_data.cExpat(Steven G. Johnson et al., Public Software Group e.V., with the Unicode-derived data noted); both kms-message sort.cBSD-3-clause(The Regents of the University of California).
blocker licensing 3. debian/copyright calls the autoconf-archive macros Apache-2.0 although ax_pthread.m4 is GPL-3+ and ax_prototype*.m4 and pkg.m4 are GPL-2+ ◂
- Files:
debian/copyright:5-7,mongodb-2.5.8/scripts/autotools/m4/ax_pthread.m4:58-83,mongodb-2.5.8/scripts/autotools/m4/ax_prototype.m4:87-112,mongodb-2.5.8/scripts/autotools/m4/ax_prototype_accept.m4:22-46,mongodb-2.5.8/scripts/autotools/m4/pkg.m4:5-24,mongodb-2.5.8/scripts/autotools/m4/ax_check_compile_flag.m4:27-34 - Basis: checked, in the package or with a reference tool
- Evidence: ax_pthread.m4:
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License ... either version 3 of the License, or (at your option) any later version; ax_prototype*.m4 and pkg.m4 the same witheither version 2; the exception is onlygives unlimited permission to copy, distribute and modify the configure scripts that are the output of Autoconf when processing the Macro(the .m4 file itself stays GPL). ax_check_compile_flag.m4 is the permissive one:Copying and distribution of this file ... are permitted in any medium without royalty .... - Problem: These files are matched only by
Files: *, so debian/copyright asserts Apache-2.0 for GPL-2+ and GPL-3+ code in the source package; the autoconf exception frees the generated configure script, not the macro files. The holders (Scott James Remnant, Dan Nicholson, Steven G. Johnson, Daniel Richard G., Marc Stevens, Loic Dachary, Guido U. Draheim, Maarten Bosmans) are unnamed. A wrong licence is as serious for build-only files as for compiled ones because the source package is distributed too. - Fix: Add Files stanzas for scripts/autotools/m4/*:
GPL-3+ with Autoconf exceptionfor ax_pthread.m4,GPL-2+ with Autoconf exceptionfor ax_prototype.m4, ax_prototype_accept.m4 and pkg.m4, and the all-permissive licence for ax_check_compile_flag.m4, naming each holder and including the exception text (or pointing to /usr/share/common-licenses/GPL-2 and GPL-3 for the licence bodies).
important licensing 4. debian/copyright does not declare the current copyright-format 1.0 URL ◂
- Files:
debian/copyright:1 - Basis: found by the review tooling's own checks
- Evidence:
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ - Problem: The first field must be exactly
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/(copyright-format 1.0, "Format" field). Anything else, including thehttp://form and the URLs of the drafts that preceded 1.0, does not declare the file to be in the current format, and a file written to a draft may also use field names and licence short names that 1.0 changed. - Fix: Replace the line as shown under Proposed changes, then check the rest of the file against copyright-format 1.0 (for example
Upstream-Name,Upstream-ContactandSourcein the header, notNameorMaintainer).
minor licensing 5. debian/copyright omits the zlib and cURL holders in files no binary package ships ◂
- Files:
mongodb-2.5.8/src/libmongoc/src/zlib-1.3.1/deflate.c:1-4,mongodb-2.5.8/src/libmongoc/src/zlib-1.3.1/zutil.c:1-4,mongodb-2.5.8/src/libmongoc/src/zlib-1.3.1/trees.c:1-4,mongodb-2.5.8/src/libmongoc/src/libmongoc/src/mongoc/mongoc-secure-channel.c:755-785,mongodb-2.5.8/src/libmongoc/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:25-44 - Basis: inferred from what was read, not seen directly
- Evidence:
Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler(deflate.c:2),Copyright (C) 1995-2017 Jean-loup Gailly(zutil.c:2),Jean-loup Gailly detect_data_type() function provided freely by Cosmin Truta, 2006(trees.c:2);Copyright (C) 2012 - 2015, Marc Hoersken,Copyright (C) 2012, Mark Salisbury,Copyright (C) 2012 - 2015, Daniel Stenberg, ..., et al.,Copyright (C) 2010, 2011, Hoi-Ho Chan(mongoc-secure-channel.c:755-785). - Problem: Policy 2.3 does not require these notices in debian/copyright: zlib-1.3.1 is not built (zlib1g-dev is a Build-Depends and CheckCompression.m4 uses the system zlib first), and the secure-channel files are Windows-only, not in config.m4's source lists. They are still in the source package, so the copyright file is incomplete for it, and zlib and cURL both require their notices to be kept.
- Fix: Add Files stanzas for src/libmongoc/src/zlib-1.3.1/* (Zlib; Jean-loup Gailly, Mark Adler, and Cosmin Truta for trees.c) and for mongoc-secure-channel.c and mongoc-stream-tls-secure-channel.c (the cURL licence text is in the files; Marc Hoersken, Mark Salisbury, Daniel Stenberg, Hoi-Ho Chan).
minor packaging 6. Standards-Version 4.5.1 is older than the current Policy 4.7.4.1 ◂
- Files:
debian/control:17 - Basis: checked, in the package or with a reference tool
- Evidence:
Standards-Version: 4.5.1; the reviewing system's Policy is 4.7.4.1. - Problem: The first two components (4.5) are behind the current Policy (4.7), so the package does not declare conformance with current Policy.
- Fix: Review Policy appendix A10 for 4.6/4.7 and bump Standards-Version to 4.7.4.
minor packaging 7. debhelper compat level 10 is obsolete ◂
- Files:
debian/compat:1,debian/control:9 - Basis: checked, in the package or with a reference tool
- Evidence:
debian/compat:10;Build-Depends: debhelper (>= 10~); the reviewing system has debhelper 14.5, which recommends compat 14. - Problem: Compat 10 is several generations behind current debhelper practice; nothing in this package requires it, and a sponsor would ask for the current level. It builds at present (debhelper 14.5 still supports v10), so this is a quality issue, not a failure.
- Fix: Depend on
debhelper-compat (= 13)(or 14) and delete debian/compat.
minor packaging 8. The extension statically bundles libbson, libmongoc, libmongocrypt, utf8proc, jsonsl and zlib although Debian ships them ◂
- Files:
debian/control:6-8,mongodb-2.5.8/config.m4:364-374,421,449-457 - Basis: checked, in the package or with a reference tool
- Evidence:
Build-Conflicts: libbson-dev, libmongoc-dev, libmongoc-priv-dev; config.m4 defaults--with-mongodb-system-libstono; apt-cache shows Debian has libmongoc-dev 2.5.9, libbson-dev, libmongocrypt-dev 1.21.1 and libutf8proc-dev. - Problem: The compiled extension contains vendored copies of libraries Debian packages and tracks for security (the changelog itself records CVEs in this stack), and Build-Conflicts prevents the supported system-library path even though Debian's versions satisfy config.m4's minimums (libbson/libmongoc >= 2.5.9, libmongocrypt >= 1.21.1). The vendored zlib is not even used because zlib1g-dev is present.
- Fix: Configure with
--with-mongodb-system-libs=yes, Build-Depend on libbson-dev, libmongoc-dev and libmongocrypt-dev, and drop the Build-Conflicts; or document why the bundled copies are required.
minor packaging 9. debian/watch is in the old version 3 format ◂
- Files:
debian/watch - Basis: found by the review tooling's own checks
- Evidence:
version=3 - Problem: Version 5 is the current format of
debian/watch. - Fix: Convert it to version 5; a mechanical conversion is under Proposed changes.
Verified ◂
- Read debian/copyright (DEP-5, 265 lines) in full, together with debian/control, control.in, rules, compat, changelog, gbp.conf, source/format, mongodb.ini, php-mongodb.php and source.lintian-overrides. There are no patches: no debian/patches directory and .pc/applied-patches is empty, so the tree is the orig tarball.
- Walked src/ directory by directory: libmongoc (libbson/src/bson, libbson/src/jsonsl, libmongoc/src/mongoc, common/src incl. mlib, kms-message, utf8proc-2.11.3, zlib-1.3.1, uthash/uthash-2.3.0), libmongocrypt (src incl. unicode and mc-mlib, kms-message), libmongocrypt-compat, contrib, BSON and MongoDB; read the licence headers of every third-party file named in this report and of the top-level LICENSE and THIRD_PARTY_NOTICES.
- The top-level LICENSE is Apache-2.0 and package.xml declares
Apache License; libbson, libmongoc, libmongocrypt and kms-message sources carry Apache-2.0 headers with MongoDB, Inc., whichFiles: *matches; bson-timegm.c is public domain as its stanza says. - The prescan's twelve SSPL wording hits are the headers of the four files named in the first issue; a grep for non-commercial, Commons Clause, Business Source, no-derivative and Good-not-Evil wording found nothing else.
- mongodb-2.5.8/tests/utils/PHONGO-FIXTURES.json.gz is gzipped JSON test data read at tests/utils/tools.php:517 through compress.zlib://; it is a test fixture, not installed in any binary package and not a licence problem.
- The PHP-3.01 stanza does match src/contrib/php_array_api.h (the
*/src/contrib/php_array_api.hpattern matches once the mongodb-2.5.8/ prefix is counted), so that file is correctly described; bson.c, phongo_classes.h and the other listed PHP paths fall to Files:* Apache, which is correct for them. - libssl-dev is not missing from Build-Depends: apt-cache shows php8.4-dev, which php-all-dev pulls in, Depends on libssl-dev; dh-php 5.23 and php-all-dev 2:102~ are present in the archive.
- Read the .dsc and listed the orig tarball: it contains mongodb-2.5.8/ and the top-level package.xml, and the four SSPL files are in the tarball, not created by a Debian patch.
- Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
-
The tarball's THIRD_PARTY_NOTICES points to src/libbson/THIRD_PARTY_NOTICES and src/libmongoc/THIRD_PARTY_NOTICES, which are not in the tarball, so any notices or holders they contain could not be checked.
-
Whether the Debian build passes --with-mongodb-client-side-encryption and which configure options dh-php's pkg-pecl.mk supplies could not be read (the helper is not installed on the reviewing system); the SSPL problem exists in the source package regardless, and the openssl detection in CheckSSL.m4 would enable encryption because php-dev pulls libssl-dev.
-
jsonsl's LICENSE file is absent, so its licence was identified as Expat/MIT from its header and upstream, not from licence text in the package.
-
The contents of mongodb-2.5.8/tests/utils/PHONGO-FIXTURES.json.gz were not decompressed (binary file).
-
uscan got no usable answer from the upstream site (unreachable, or refusing the request), so
debian/watchis untested:In watchfile debian/watch, reading webpage https://pecl.php.net/package/mongodb failed: 500 Internal Server Error -
Why the model asked for what a review has no use for. During this review it asked once for something outside the package and the reviewing system (another file of the sandbox, or a URL), or was given part of the review tooling's own configuration, and that was refused or withheld. A model does this when something it has read tells it to, so look in the package for text addressed to a reviewing program, and treat this report with suspicion. Refused:
read: "xd://read/sources" is not a file of the package or of the reviewing system.
Proposed: debian/watch in version 5 format ◂
debian/watch is in an old format. This is the conversion made by uscan --update-watchfile, which has not been run against the upstream site: some defaults differ in version 5, so test it with uscan --report before use.
Version: 5
Source: https://pecl.php.net/package/mongodb
Matching-Pattern: /get/mongodb-([\d\.p?]*).tgz
Update-Script: uupdate
Proposed: debian/copyright Format field ◂
Replace line 1 of debian/copyright with:
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.