Review: php-pq 2.2.3-9
Package Information
| Description | PostgreSQL client library (libpq) binding for PHP This is a modern binding to the mature libpq, the official PostgreSQL C-client library. Highlights: - Nearly 100% support for asynchronous usage. - Extended type support by pg_type. - Fetching simple multi-dimensional array maps. - Working Gateway implementation. 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-pq.git (browse) |
| Popcon Installs | 31 |
| Binary NEW | Yes (new binary packages of a source already in sid) |
| Tracker | https://tracker.debian.org/pkg/php-pq |
| Uploaded | 1 hour ago |
New Package Report
.changes
| Version | 2.2.3-9 |
|---|---|
| Changed-By | Ondřej Surý <ondrej@debian.org> |
| Architecture | source all amd64 |
| Distribution | experimental |
| Date | Fri, 27 Nov 2026 15:58:14 +0100 |
| Source | php-pq |
Changelog
php-pq (2.2.3-9) experimental; urgency=medium . * Depend on php-all-dev from experimental
.dsc
| Section | php |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | php-pq deb php optional arch=all php-pq-all-dev deb php optional arch=all php8.6-pq deb php optional arch=any |
debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pq
Source: http://pecl.php.net/package/pq
Files: *
Copyright: 2013 Michael Wallner
2013 Chris Wright
2013 Remi Collet
License: BSD-2-Clause
Files: debian/*
Copyright: 2015 Ondřej Surý <ondrej@debian.org>
License: Expat
License: BSD-2-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.
.
THIS SOFTWARE IS PROVIDED BY [COPYRIGHT HOLDER] 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 [COPYRIGHT HOLDER] 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: 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.
DFSG Assistant LLM REVIEW 0 blocker, 1 important, 4 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 0 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-pq version 2.2.3-9
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: Yes
- Issues: 0 blocker, 1 important, 4 minor
- debian/watch: old format (version 3)
- debian/copyright: machine-readable, without the current Format URL
- Scan before the review: nothing found
Licensing
Upstream is BSD-2-Clause throughout: every one of the 33 C/H files and the top-level headers carry Copyright (c) 2013, Michael Wallner <mike@php.net>, and pq-2.2.3/LICENSE is the same 2-clause BSD text; debian/copyright names Michael Wallner in Files: * (it also credits Chris Wright and Remi Collet, who appear as developers in package.xml/THANKS but have no notices in the tree). The debian/ files are Expat, with the full text included. No non-free terms, no embedded third-party code, no binaries. The only defects are a placeholder left in the BSD-2-Clause text and a generated header whose generator is not shipped; neither makes the licensing non-free or the copyright file misleading.
Packaging
Standard Debian PHP-team packaging: 3.0 (quilt), dh with dh-php's pkg-pecl.mk, correct binary split (php-pq and php-pq-all-dev arch:all metapackages, php8.6-pq arch:any), Vcs-* set, changelog sane for experimental, and the single patch carries DEP-3 headers and only modifies existing upstream files. debhelper compat 10 is a supported choice and is not reported. Only minor items: Standards-Version 4.5.1 is behind current Policy 4.7.4.1, a generated header has no generator in the tarball, and a placeholder remains in the BSD licence text.
Issues
important licensing 1. 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 2. BSD-2-Clause text in debian/copyright leaves [COPYRIGHT HOLDER] unsubstituted ◂
- Files:
debian/copyright - Basis: checked, in the package or with a reference tool
- Evidence:
THIS SOFTWARE IS PROVIDED BY [COPYRIGHT HOLDER] AND CONTRIBUTORS "AS IS" AND/IN NO EVENT SHALL [COPYRIGHT HOLDER] OR CONTRIBUTORS BE LIABLE FOR - Problem: copyright-format 1.0 section 6.7 requires the License field to contain the full text of the licence. Upstream's pq-2.2.3/LICENSE reads
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS, so the stanza ships a template with an unfilled placeholder rather than the licence as granted. The Copyright field itself is accurate, so this does not change the terms. - Fix: Replace both
[COPYRIGHT HOLDER]occurrences withTHE COPYRIGHT HOLDERS(as in pq-2.2.3/LICENSE) or withMichael Wallner.
minor packaging 3. php_pq_type.h is generated but its generator scripts/php_pq_type-pg11.php is not in the source ◂
- Files:
pq-2.2.3/php_pq_type.h:1,pq-2.2.3/scripts/gen_pq_type.sh:3 - Basis: checked, in the package or with a reference tool
- Evidence: php_pq_type.h:
/* Generated file. See scripts/gen_pq_type-pq11.php */; gen_pq_type.sh:$CWD/php_pq_type-pg11.php >$CWD/../php_pq_type.h - Problem: The shipped header (included by src/php_pq_misc.c, php_pq_params.c, php_pqres.c and php_pqtypes.c, so compiled into php8.6-pq) cannot be regenerated: neither scripts/php_pq_type-pg11.php nor scripts/gen_pq_type-pq11.php exists anywhere in the tarball, and package.xml does not list one. Updating the type table therefore requires hand-editing an 805-line generated file.
- Fix: Ask upstream to ship the generating script (the git version of the file named in the header) in the PECL release, or add it to the Debian source so the header has its preferred form for modification.
minor packaging 4. Standards-Version 4.5.1 is older than current Policy 4.7.4.1 ◂
- Files:
debian/control:8 - Basis: checked, in the package or with a reference tool
- Evidence:
Standards-Version: 4.5.1(Policy tool reports the installed Policy as 4.7.4.1) - Problem: Debian Policy section 5.6.11 asks packages to be current with the version of Policy they were checked against; 4.5.1 predates several 4.6/4.7 changes.
- Fix: Review the 4.6.x/4.7.x upgrading-checklist entries (Policy A10) and raise the field to 4.7.4.
minor packaging 5. 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 all of debian/ (control, control.in, changelog, compat, copyright, gbp.conf, rules, source/format, patches/series and the patch's header plus its diff file list, pq.ini, php-pq.php, one per-version postinst) and the .dsc; debian/control matches the .dsc's Binary/Architecture/Build-Depends.
- Prescan holder entries: php_pq.h, src/php_pq_callback.c, src/php_pq_callback.h and the other 29 C/H files all carry
Copyright (c) 2013, Michael Wallner <mike@php.net>, which Files: * names; no other holder or licence notice appears anywhere in pq-2.2.3/ (grep for Copyright/(C)/©/SPDX/Licensed under/permission/GNU/Apache/MPL/public domain/All rights reserved over the whole tree). - LICENSE is BSD-2-Clause matching the Files: * short name; AUTHORS/THANKS/CREDITS/README.md/package.xml agree on Michael Wallner as author and BSD-2-Clause as the licence; debian/* is Expat with full text.
- tests/.phpt and tests/.inc, scripts/*, config.m4, config9.m4 and php_pq_type.h have no separate notices and fall under Files: *.
- The single patch has DEP-3 From/Date/Subject, modifies only existing upstream files (no
--- /dev/nullhunk), and is therefore covered by Files: debian/*; the tree shows it applied (php_pq.h has the added zend_result typedef). - No binary, image, font or built artefacts in the tree; php_pq_type.h is plain generated C text.
- Build-Depends all resolve: apt-cache finds libpq-dev/php-all-dev/dh-php, and reports php8.6-raphf 2.0.2-5 and php-raphf-all-dev 2.0.2-5 in experimental (the lists themselves are older).
- debhelper compat 10 with
debhelper (>= 10~)in debian/compat form is supported, and the ${misc:Depends}/${shlibs:Depends}/${pecl:}/${php:} substvars are present, so no compat-related issue was raised. - uscan found the packaged version as the newest upstream release (upstream
2.2.3, packaged2.2.3).
Not confirmed ◂
- dh-php is not installed on the reviewing system, so /usr/share/dh-php/pkg-pecl.mk could not be read; how debian/control.in is expanded to debian/control (and whether the per-version php7.0-pq ... php8.4-pq.postinst files are live templates for other suites) could not be verified.
- debian/control.in differs from debian/control: it lacks the
php8.6-raphfbuild-dependency and has only the genericphp-pqpackage. If control is regenerated from control.in, the php8.6-raphf dependency would be dropped; nothing in the package shows the regeneration step, so this is not reported as a fault. - The package's tests need a live PostgreSQL server (tests/_skipif.inc skips without PQ_DSN); they were not run and no autopkgtest is shipped, which was not treated as a fault.
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/pq
Matching-Pattern: /get/pq-([\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
The uploader rejected this upload in response to the review.
Review Information
rejected — allocated to dfsg-uploader 0 hours ago, started 0 hours ago, completed 0 hours ago.
Final Comment
The uploader rejected this upload in response to the automated (LLM) review of it, so that they can fix the problems it found and upload again.