php-yac 3.0.2-1
Package Information
| Description | YAC (Yet Another Cache) for PHP The Yet Another Cache (YAC) is a shared memory user data cache for PHP, which provides framework for caching user variables locally. This framework completes the missing parts of the Zend OpCache. 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-yac.git (browse) |
| Popcon Installs | 8 |
| Binary NEW | Yes (new binary packages of a source already in sid) |
| Tracker | https://tracker.debian.org/pkg/php-yac |
| Uploaded | 4 hours ago |
New Package Report
.changes
| Source | php-yac |
|---|---|
| Version | 3.0.2-1 |
| Changed-By | Ondřej Surý <ondrej@debian.org> |
| Architecture | source all amd64 |
| Distribution | experimental |
| Date | Sat, 21 Nov 2026 10:04:40 +0100 |
Changelog
php-yac (3.0.2-1) experimental; urgency=medium . * New upstream version 3.0.2 * 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-yac deb php optional arch=all php-yac-all-dev deb php optional arch=all php8.6-yac deb php optional arch=any |
debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: yac
Upstream-Contact: Xinchen Hui <laruence@php.net>
Source: http://pecl.php.net/package/yac
Files: *
Copyright: 2013-2016 The PHP Group
License: PHP-3.01
Files: compressor/fastlz/*
Copyright: 2005-2007 Ariya Hidayat (ariya@kde.org)
License: Expat
Files: debian/*
Copyright: 2016 Ondřej Surý <ondrej@debian.org>
License: Expat
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>.
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, 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 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-yac version 3.0.2-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 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
The code is free — yac itself is PHP-3.01 and the bundled compressor is BSD-2-Clause — but debian/copyright is inaccurate: it licenses everything under Files: * as PHP-3.01, which mislicenses lz4.c and lz4.h, omits their holder Yann Collet and never reproduces the BSD-2-Clause notice (the only permissive text in the file is Expat/MIT, a different notice). The Files: compressor/fastlz/* stanza is a leftover from before upstream switched to LZ4 and no longer matches any file, while the LZ4 directory is not described at all. Since lz4.c is compiled into php8.6-yac by default, this is a blocker under Policy 2.3.
Packaging
Packaging follows the Debian PHP team's dh-php/pcd-pecl pattern and is sound: source format 3.0 (quilt), no patches, correct Vcs-* fields, a changelog that matches the experimental target needed by php-all-dev 2:102~, and build dependencies that exist (dh-php 5.23 in unstable, php-all-dev 2:102~ in experimental). Remaining points are minor: Standards-Version 4.5.1 against Policy 4.7.4.1, a bundled copy of LZ4 although Debian ships liblz4-dev and upstream supports --with-system-lz4, and no autopkgtest while build-time test failures are suppressed.
Issues
blocker licensing 1. debian/copyright licenses the bundled LZ4 files as PHP-3.01 and omits Yann Collet and the BSD-2-Clause notice ◂
- Files:
debian/copyright:6-8 (Files: *),debian/copyright:10-12 (Files: compressor/fastlz/*),yac-3.0.2/compressor/lz4/lz4.c:3-5,yac-3.0.2/compressor/lz4/lz4.h:4-6,yac-3.0.2/config.m4:227-234 - Basis: checked, in the package or with a reference tool
- Evidence: lz4.c:
Copyright (C) 2011-2023, Yann Collet.andBSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php); debian/copyright:Files: */Copyright: 2013-2016 The PHP Group/License: PHP-3.01; config.m4:YAC_FILES="$YAC_FILES compressor/lz4/lz4.c"when$PHP_SYSTEM_LZ4isno(the default) - Problem: lz4.c and lz4.h are third-party code by Yann Collet under BSD-2-Clause, not PHP Group code under PHP-3.01. lz4.c is in YAC_FILES by default, so it is compiled into php8.6-yac and Policy 2.3 requires its copyright notice and licence in debian/copyright. The holder is not named, the licence is wrong, and the full BSD-2-Clause text is not present (the
Expatparagraph is the MIT text, a different notice). TheFiles: compressor/fastlz/*stanza matches nothing: upstream replaced FastLZ with LZ4 in 2.4.0 (package.xml:Switch compression from FastLZ to LZ4), and the pattern lacks theyac-3.0.2/prefix of the PECL tree in any case. - Fix: Replace the fastlz stanza with
Files: yac-3.0.2/compressor/lz4/*,Copyright: 2011-2023 Yann Collet,License: BSD-2-Clause, and add a stand-aloneLicense: BSD-2-Clauseparagraph containing the notice as it appears in lz4.h.
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 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 packaging 3. Standards-Version 4.5.1 is older than the current Policy 4.7.4.1 ◂
- Files:
debian/control:9 - Basis: checked, in the package or with a reference tool
- Evidence:
Standards-Version: 4.5.1; the policy tool reports Debian Policy version 4.7.4.1 - Problem: The declared standards version is two minor series behind the Policy in force (4.5 against 4.7), so the package has not been checked against the changes listed in the upgrading checklist.
- Fix: Bump to
Standards-Version: 4.7.4.1after reviewing Policy appendix A10 for changes since 4.5.1.
minor packaging 4. php-yac embeds LZ4 1.10.0 although Debian ships liblz4-dev and upstream has --with-system-lz4 ◂
- Files:
debian/rules:3,yac-3.0.2/config.m4:10-11,yac-3.0.2/config.m4:227-234,yac-3.0.2/compressor/lz4/lz4.h:131-133 - Basis: checked, in the package or with a reference tool
- Evidence: config.m4:
PHP_ARG_WITH([system-lz4], ... [no], [no])andYAC_FILES="$YAC_FILES compressor/lz4/lz4.c"; lz4.h:LZ4_VERSION_MAJOR 1/LZ4_VERSION_MINOR 10/LZ4_VERSION_RELEASE 0; apt-cache: liblz4-dev 1.11.1-2 - Problem: The package compiles a private copy of a library that Debian already ships. Updates and security fixes to liblz4 do not reach php8.6-yac, and the tree duplicates code for no reason when upstream provides a supported switch.
- Fix: Add
liblz4-devto Build-Depends and pass--with-system-lz4through the dh-php build, dropping the bundled copy from the installed build.
minor packaging 5. No autopkgtest, and debian/rules disables build-time test-failure reporting ◂
- Files:
debian/rules:2,debian/changelog (2.0.2+0.9.2-6: "Don't fail on failed tests"),yac-3.0.2/tests/ - Basis: inferred from what was read, not seen directly
- Evidence:
export REPORT_EXIT_STATUS:=0; there is no debian/tests/control; upstream ships 70 .phpt tests under yac-3.0.2/tests/ - Problem: Nothing in the package makes the extension's test suite fail anything: the build exports REPORT_EXIT_STATUS:=0 (the changelog records this as "Don't fail on failed tests") and no autopkgtest runs the module. A regression in the extension would not be caught by the archive.
- Fix: Remove the REPORT_EXIT_STATUS:=0 export so
make testfailures fail the build, or add debian/tests/control that loads yac and runs the shipped .phpt suite under autopkgtest.
minor packaging 6. 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 in full (DEP-5, 105 lines) and every file in debian/ (control, control.in, rules, changelog, compat, gbp.conf, php-yac.php, yac.ini, source.lintian-overrides, source/format).
- Inventoried every upstream file: 81 files under yac-3.0.2/ — LICENSE, CREDITS, config.m4, config.w32, yac.c, php_yac.h, two arginfo headers, serializer/ (2), storage/ (3 + allocator/ 2 + allocators/ 3 + crc/ 3), compressor/lz4/ (LICENSE, lz4.c, lz4.h) and 70 .phpt tests plus CONFLICTS.
- Prescan holder "The PHP Group": yac.c:5, php_yac.h:5, yac_serializer.c:5, yac_serializer.h:5, yac_storage.c/h:5, yac_atomic.h:5, yac_allocator.c/h:5, createfilemapping.c:5, mmap.c:5, shm.c:5, yac_crc32.c/h:5 and yac_crc32_tab.h:5 all carry
Copyright (c) 2013-2013 The PHP Groupand refer to PHP licence 3.01; Files: * names The PHP Group, so the similar-name match is the same holder. - Prescan holder "Yann Collet": lz4.c:3 and lz4.h:4 are BSD-2-Clause by Yann Collet; reported as the blocker above, not as PHP Group code.
- compressor/lz4/LICENSE is upstream LZ4's repository-level notice (
libdirectory BSD-2-Clause, all other files GPL-2.0-or-later "unless explicitly stated otherwise"); the only files beside it are lz4.c and lz4.h, whose own headers explicitly declare BSD-2-Clause, so no GPL-2.0-or-later code is compiled or shipped. - yac_storage.c:106 credits MurmurHash64A to Austin Appleby as public domain; public domain has no notice-retention obligation, so no entry is required in debian/copyright.
- No images, fonts, sounds, archives or PDFs in the tree; no LICENSE/COPYING/NOTICE/AUTHORS file exists besides the two LICENSE files above.
- yac_arginfo.h and yac_legacy_arginfo.h say "edit yac.stub.php instead", but the stub is not part of the PECL release (absent from package.xml's contents list, lines 29-125). They are plain C compiled directly and shipped by upstream as src, not built artifacts in the source package.
- package.xml:256 records the FastLZ→LZ4 switch in 2.4.0, which explains why the fastlz stanza matches no file.
- Build dependencies exist: dh-php 5.23 in unstable, php-all-dev 2:102~ in experimental, liblz4-dev 1.11.1 in the package lists (apt-cache).
- Source format 3.0 (quilt), no debian/patches, no maintainer scripts, changelog at 3.0.2-1 targeting experimental (consistent with php-all-dev 2:102~), Vcs-* fields point at salsa and are consistent.
- debhelper compat is 10 (debian/compat, debhelper (>= 10~)); old but still a level debhelper 14.5 supports, and every relationship substvar used in debian/control is declared, so nothing is reported.
- uscan found the packaged version as the newest upstream release (upstream
3.0.2, packaged3.0.2).
Not confirmed ◂
- debian/control declares php-yac (all), php-yac-all-dev and php8.6-yac, while debian/control.in declares only php-yac (any). dh-php is not installed on the reviewing system, so /usr/share/dh-php/pkg-pecl.mk could not be read to tell whether debian/control is regenerated from control.in at build time; the mismatch is therefore not reported.
- The extension's .phpt suite was not executed (read-only review); the effect of REPORT_EXIT_STATUS:=0 was inferred from debian/rules and the changelog entry rather than observed.
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/yac
Matching-Pattern: .*/yac-(\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.