Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737876 - dev-php/pecl-imagick fails test 274_imagick_setImageAlpha.phpt
Summary: dev-php/pecl-imagick fails test 274_imagick_setImageAlpha.phpt
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/Imagick/imagick/is...
Whiteboard:
Keywords:
: 796593 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-18 11:05 UTC by Agostino Sarubbo
Modified: 2021-06-18 14:20 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,96.78 KB, text/plain)
2020-08-18 11:05 UTC, Agostino Sarubbo
Details
1-autoconf.out (1-autoconf.out,112 bytes, text/plain)
2020-08-18 11:05 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 2020-08-18 11:05:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-php/pecl-imagick-3.4.4 fails tests.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-18 11:05:39 UTC
Created attachment 655304 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-08-18 11:05:40 UTC
Created attachment 655306 [details]
1-autoconf.out

1-autoconf.out
Comment 3 Larry the Git Cow gentoo-dev 2020-08-18 18:38:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e35823ea6575479a06a39fbb3b8c222955d81bd

commit 7e35823ea6575479a06a39fbb3b8c222955d81bd
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-08-18 18:34:59 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-08-18 18:38:24 +0000

    dev-php/pecl-imagick: require imagemagick[svg]
    
    Test 243_Tutorial_svgExample_basic requires SVG support.
    
    Bug: https://bugs.gentoo.org/737876
    Package-Manager: Portage-3.0.3, Repoman-3.0.0
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-php/pecl-imagick/pecl-imagick-3.4.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-18 18:39:23 UTC
Test failure is

> ---- EXPECTED OUTPUT
> Ok
> ---- ACTUAL OUTPUT
> Pixel values appear incorrect for pixelType 3:array(4) {
>   [0]=>
>   float(0.50196081399918)
>   [1]=>
>   float(0)
>   [2]=>
>   float(0.50196081399918)
>   [3]=>
>   float(0.50000762939453)
> }
> Pixel values appear incorrect for pixelType 2:array(4) {
>   [0]=>
>   float(0.50196078431373)
>   [1]=>
>   float(0)
>   [2]=>
>   float(0.50196078431373)
>   [3]=>
>   float(0.50000762951095)
> }
> Ok
> ---- FAILED
> 

Reported upstream.
Comment 5 Michael Orlitzky gentoo-dev 2020-08-18 19:52:25 UTC
(In reply to Thomas Deutschmann from comment #4)
> 
> Reported upstream.

Thanks. There have been a lot of test-related commits since v3.4.4, but none that obviously address the remaining failure. Maybe we'll get lucky.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-18 10:29:27 UTC
Could you please test again with >pecl-imagick-3.5.0? It's passing for me for PHP 7.4 and 8.0.
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-18 12:16:15 UTC
*** Bug 796593 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-18 12:16:43 UTC
OK, still happening for ago but I cannot reproduce.
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-18 12:17:42 UTC
Please post `emerge --info media-gfx/imagemagick`.
Comment 10 Agostino Sarubbo gentoo-dev 2021-06-18 12:50:33 UTC
(In reply to Thomas Deutschmann from comment #9)
> Please post `emerge --info media-gfx/imagemagick`.

This info is already in the build log provided in bug 	796593
Comment 11 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-18 13:56:13 UTC
We need USE=hdri to make the test pass.
Comment 12 Larry the Git Cow gentoo-dev 2021-06-18 14:20:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf11adaf0c684f0c8a911a15b44b2867844247f

commit 6bf11adaf0c684f0c8a911a15b44b2867844247f
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-06-18 13:57:32 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-06-18 14:20:04 +0000

    dev-php/pecl-imagick: fix tests
    
    media-gfx/imagemagick[hdri] is required to pass test
    274_imagick_setImageAlpha.phpt.
    
    Closes: https://bugs.gentoo.org/737876
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-php/pecl-imagick/pecl-imagick-3.4.4.ebuild | 4 ++--
 dev-php/pecl-imagick/pecl-imagick-3.5.0.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)