Summary: | dev-php/pecl-uploadprogress-2.0.2 fails tests (MUSL-SYSTEM) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mjo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/php/pecl-php-uploadprogress/issues/17 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
2023-05-18 17:27:59 UTC
Created attachment 861906 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern: FAIL uploadprogress_get_contents - File contents not found [tests/uploadprogress_get_contents_variation002.phpt] FAIL uploadprogress_get_contents - Warns when function is disabled [tests/uploadprogress_get_contents_error001.phpt] FAIL uploadprogress_get_contents - Warns when maxlength is less than zero [tests/uploadprogress_get_contents_error003.phpt] FAIL uploadprogress_get_contents - When contents file cannot be read [tests/uploadprogress_get_contents_variation006.phpt] FAILED TEST SUMMARY This happens when php-8.x is built with USE=debug. I don't think the var_dump() calls in the failing tests are really that important. We can probably replace them with a wildcard to allow the tests to pass with or without USE=debug. I'll wait a little while for an upstream response and fix it that way if there is none. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=149dee72b9bfab759a40fdf116590033c4dbca34 commit 149dee72b9bfab759a40fdf116590033c4dbca34 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-05-22 14:30:09 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-05-22 14:36:50 +0000 dev-php/pecl-uploadprogress: fix tests with PHP's --enable-debug. A few of the tests for pecl-uploadprogress throw a fatal error if PHP was build with USE=debug. We skip the tests for now; a better long-term solution was proposed upstream (GH issue #17). In addition, the extension seems to work fine with php-8.2, so I've taken the opportunity to enable it. Closes: https://bugs.gentoo.org/906691 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> .../files/php-debug-testfix.patch | 74 ++++++++++++++++++++++ ....ebuild => pecl-uploadprogress-2.0.2-r1.ebuild} | 7 +- 2 files changed, 79 insertions(+), 2 deletions(-) |