Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906691 - dev-php/pecl-uploadprogress-2.0.2 fails tests (MUSL-SYSTEM)
Summary: dev-php/pecl-uploadprogress-2.0.2 fails tests (MUSL-SYSTEM)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://github.com/php/pecl-php-uploa...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-18 17:27 UTC by Agostino Sarubbo
Modified: 2023-05-22 14:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,69.60 KB, text/plain)
2023-05-18 17:28 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-05-18 17:27:59 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-php/pecl-uploadprogress-2.0.2 fails tests (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-18 17:28:01 UTC
Created attachment 861906 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-05-18 17:28:01 UTC
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
Comment 3 Michael Orlitzky gentoo-dev 2023-05-21 00:33:33 UTC
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.
Comment 4 Larry the Git Cow gentoo-dev 2023-05-22 14:37:06 UTC
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(-)