DFSG NEW Queue

DFSG, Licensing & New Packages Team

php-amqp 2.2.0-2

Package Information

DescriptionAMQP extension for PHP

This extension can communicate with any AMQP spec 0-9-1 compatible server, such as RabbitMQ, OpenAMQP and Qpid, giving you the ability to create and delete exchanges and queues, as well as publish to any exchange and consume from any queue.

This is empty package that depends on default PHP version.

MaintainerDebian PHP PECL Maintainers <team+php-pecl@tracker.debian.org>
Changed ByOndřej Surý <ondrej@debian.org>
Sponsorondrej@debian.org
Distributionexperimental
Architectureany all
VCSgit: https://salsa.debian.org/php-team/pecl/php-amqp.git (browse)
Popcon Installs119
Binary NEWYes (new binary packages of a source already in sid)
Trackerhttps://tracker.debian.org/pkg/php-amqp
Uploaded2 hours ago

New Package Report

.changes◂
DateSat, 21 Nov 2026 10:04:19 +0100
Sourcephp-amqp
Version2.2.0-2
Changed-ByOndřej Surý <ondrej@debian.org>
Architecturesource all amd64
Distributionexperimental
Changelog◂
php-amqp (2.2.0-2) experimental; urgency=medium
 .
   * Add patch to fix FTBFS with PHP 8.6 (Courtesy of Remi Collet)
   * Build-Depend on php-all-dev (>= 2:102~) for PHP 8.6
   * Bump Build-Depends to dh-php >= 5.23~
.dsc◂
Sectionphp
Priorityoptional
Componentmain
Package-Listphp-amqp deb php optional arch=all
php-amqp-all-dev deb php optional arch=all
php8.6-amqp deb php optional arch=any
debian/copyright◂
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: amqp
Source: http://pecl.php.net/package/amqp

Files: *
Copyright: 2015 Lars Strojny
	   2015 Pieter de Zwart
License: PHP-3.01

Files: debian/*
Copyright: 2015 Ondřej Surý
License: Expat

License: PHP-3.01
 --------------------------------------------------------------------
                   The PHP License, version 3.01
 Copyright (c) 1999 - 2011 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.

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 1 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 1 hour 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-amqp version 2.2.0-2

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: No
  • Packaging is of good quality: Yes
  • Issues: 1 blocker, 1 important, 5 minor
  • debian/watch: old format (version 3)
  • debian/copyright: machine-readable, without the current Format URL
  • Scan before the review: 1 found

Licensing

The whole tree is under PHP-3.01 (the LICENSE file, the identical header of all 28 .c/.h files, and package.xml's PHP License), and the copyright file reproduces that licence and the Expat text in full; PHP-3.01 forbids neither modification nor redistribution, and Debian ships PHP itself in main. But debian/copyright's Files: * stanza names only Lars Strojny and Pieter de Zwart (2015), while the notices actually in the compiled sources belong to The PHP Group (1997-2007, 1999-2012 in LICENSE) and Alexandre Kalendarev (2009-2010); those sources are built into amqp.so, so Policy 2.3 requires them and the file is inaccurate. The debian/* stanza also fails to name the author of both quilt patches, Remi Collet.

Packaging

The packaging is a standard, working dh-php PECL package: source format 3.0 (quilt), two DEP-3 patches with From/Date/Subject, sane multi-version binary split, Vcs-* and team maintenance, and every build dependency exists in the archive. What is left is small: Standards-Version is two minor releases behind, the librabbitmq-dev minimum is below what configure accepts, and an unreferenced debian/control.in contradicts the shipped control file.

Issues

blocker licensing 1. Files: * does not name The PHP Group or Alexandre Kalendarev, whose notices are in every compiled source ◂
  • Files: debian/copyright (Files: * stanza), amqp-2.2.0/LICENSE:3, amqp-2.2.0/amqp.c:5, amqp-2.2.0/amqp.c:15, amqp-2.2.0/config.m4:164
  • Basis: checked, in the package or with a reference tool
  • Evidence: Every .c/.h has | Copyright (c) 1997-2007 The PHP Group | and | Author: Alexandre Kalendarev akalend@mail.ru Copyright (c) 2009-2010 |; LICENSE:3 says Copyright (c) 1999 - 2012 The PHP Group. All rights reserved.; the copyright file declares only Copyright: 2015 Lars Strojny / 2015 Pieter de Zwart for Files: *.
  • Problem: PHP-3.01 clause 2 requires the copyright notice to be reproduced in binary distributions. The .c files listed in AMQP_SOURCES (config.m4:164) are compiled into amqp.so and shipped by php8.6-amqp, where no plain-text notice survives, so Policy 2.3 requires these holders in debian/copyright. Naming only two 2015 holders makes the file an inaccurate record of the copyright of the shipped code.
  • Fix: Add The PHP Group (1997-2007 per the source headers, 1999-2012 per LICENSE) and Alexandre Kalendarev (2009-2010) to the Copyright field of the Files: * stanza, or give the C sources their own stanza naming all three holders alongside Lars Strojny and Pieter de Zwart.
important licensing 2. 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 the http:// 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-Contact and Source in the header, not Name or Maintainer).
minor licensing 3. Files: debian/* names only Ondřej Surý, not Remi Collet, who wrote both quilt patches ◂
  • Files: debian/copyright (Files: debian/* stanza), debian/patches/0001-fix-build-with-PHP-8.6.0alpha2.patch:1, debian/patches/0002-move-from-boolean-to-int-in-compatibility-macro.patch:1
  • Basis: checked, in the package or with a reference tool
  • Evidence: Both patch headers begin From: Remi Collet <remi@remirepo.net> (dates 2026-07-16/17); the stanza says Files: debian/* / Copyright: 2015 Ondřej Surý with License: Expat.
  • Problem: The patches contain Remi Collet's original changes (plus modified upstream code), so the debian/* stanza does not describe who holds copyright in all the files it covers. Policy 2.3 does not require this: debian/patches is build input only and is not shipped in any binary package, so this is incompleteness of the copyright file rather than a distribution requirement.
  • Fix: Add Remi Collet (2026) to the debian/* Copyright field, or add a stanza for debian/patches/* naming him and the upstream holders of the code the patches touch.
minor packaging 4. Standards-Version 4.5.1 is older than the current Policy 4.7.4.1 ◂
  • Files: debian/control:11
  • 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 declared Policy version is two minor releases behind (4.5 against 4.7). Nothing in the package indicates a change is needed, but the field should name a current Policy version.
  • Fix: Bump Standards-Version to 4.7.4.
minor packaging 5. Build-Depends allows librabbitmq-dev 0.7.0 but configure rejects anything below 0.8.0 ◂
  • Files: debian/control:9, amqp-2.2.0/config.m4:49-50
  • Basis: checked, in the package or with a reference tool
  • Evidence: debian/control: librabbitmq-dev (>= 0.7.0); config.m4: if ! $PKG_CONFIG librabbitmq --atleast-version 0.8.0 ; then / AC_MSG_ERROR([librabbitmq must be version 0.8.0 or greater]), and the non-pkg-config path checks the same 0.8.0 minimum.
  • Problem: The declared minimum is lower than the version upstream's configure requires, so the dependency is wrong: a build with librabbitmq 0.7.x would fail at configure. The archive currently has 0.18.1, so the error is latent rather than seen.
  • Fix: Raise the dependency to librabbitmq-dev (>= 0.8.0).
minor packaging 6. debian/control.in is stale and contradicts the shipped debian/control ◂
  • Files: debian/control.in:16-17, debian/control
  • Basis: checked, in the package or with a reference tool
  • Evidence: control.in contains only Package: php-amqp with Architecture: any; debian/control builds php-amqp (Architecture: all), php-amqp-all-dev (all) and php8.6-amqp (any), and the dsc's Package-List agrees with control. Nothing in debian/ references control.in; rules only includes /usr/share/dh-php/pkg-pecl.mk.
  • Problem: dpkg-buildpackage uses debian/control, so control.in does not describe what is built. If it is the template from which control is regenerated (the changelog has entries such as 'Regenerate d/control for PHP 8.2'), a regeneration would drop php-amqp-all-dev and php8.6-amqp and set the dummy package to Architecture: any; if nothing reads it, it is stale dead weight. I could not read dh-php's pkg-pecl.mk to rule out that it reads the file.
  • Fix: Bring debian/control.in in line with debian/control, or delete it if it is no longer used.
minor packaging 7. 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, control, control.in, changelog, compat, rules, gbp.conf, amqp.ini, php-amqp.php, source/format, source.lintian-overrides, both patches and patches/series in full; debian/watch is checked separately.
  • Licence inventory: LICENSE is PHP-3.01 and all 28 .c/.h files carry the same PHP 3.01 header; stubs/.php, tests/.phpt, config.m4, config.w32, package.xml and benchmark.php carry no separate notice and are covered by LICENSE and package.xml's PHP License. A grep for GPL/LGPL/Apache/MPL/BSD/MIT/public-domain wording found nothing else, there is no subdirectory LICENSE/COPYING, and no vendored third-party code (librabbitmq is linked from librabbitmq-dev, not embedded).
  • The full PHP-3.01 and Expat texts are included in debian/copyright, which is required because neither is in /usr/share/common-licenses. PHP-3.01 permits modification and redistribution; its name clauses do not restrict distribution, and Debian itself ships PHP in main (apt-cache: php8.4-common, Section: php), so the licence is not reported as a DFSG problem.
  • Prescan file amqp-2.2.0/tests/amqpexchange_publish_with_null.phpt: the bytes the scan could not classify are the NUL characters inside the serialized private/protected property names in the --EXPECT-- block (s:8:"\0Foo\0bar", s:6:"\0*\0baz"). It is test data of the upstream test suite, not a built or binary artifact.
  • No built files, minified code, archives or PDFs in the tree: the orig tarball is package.xml plus amqp-2.2.0/ sources, and the stubs/*.php are the arginfo inputs, not generated output. The two patches modify only existing files (no --- /dev/null hunks), so they create no files.
  • Build dependencies exist: php-all-dev 2:102~ (experimental), dh-php 5.23 (unstable) and librabbitmq-dev 0.18.1; config.m4 uses librabbitmq's pkg-config file.
  • At compat 10, dh_gencontrol supplies only misc:Depends/misc:Pre-Depends itself (verified in /usr/bin/dh_gencontrol); the ${pecl:*} and ${shlibs:Depends} substvars that dh-php does not set for the arch:all packages expand to empty with a dpkg-gencontrol warning rather than failing (verified in Dpkg::Substvars).
  • uscan found the packaged version as the newest upstream release (upstream 2.2.0, packaged 2.2.0).
Not confirmed ◂
  • dh-php is not installed on the reviewing system (/usr/share/dh-php and the php sequence are absent), so I could not read pkg-pecl.mk: whether it reads debian/control.in, how it installs amqp.ini, and which ${pecl:*}/${shlibs:Depends} substvars it defines for the arch:all packages remain unverified.
  • No build or test was run. The tests skip themselves unless PHP_AMQP_HOST is set, and rules exports REPORT_EXIT_STATUS:=0, so a build would not exercise them even if it ran them.
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/amqp
Matching-Pattern: .*/amqp-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
Uversionmangle: s/(\d)RC(\d*)$/$1rc$2/;s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
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.

Back to Dashboard | View all reviews for this package