Topic: php-pecl-imagick rebuild failed

Hello,

I need recompile php-pecl-imagick by CentOS 6. I tried php-pecl-imagick-3.4.3-5.remi.src.rpm, but i got always error by imagick tests (i have latest ImageMagick version on server /ImageMagick6-libs-6.9.9.26-1.el6.remi.x86_64, ImageMagick6-6.9.9.26-1.el6.remi.x86_64 and ImageMagick6-devel-6.9.9.26-1.el6.remi.x86_64/)

Errors:

"
TEST 255/268 [tests/268_ImagickDraw_getDensity_basic.phpt]
========DIFF========
001+ Fatal error: Uncaught ImagickException: non-conforming drawing primitive definition `density' @ error/draw.c/DrawImage/3276 in /root/rpmbuild/BUILD/php71-php-pecl-imagick-3.4.3/NTS/tests/268_ImagickDraw_getDensity_basic.php:33
001- Ok
002+ Stack trace:
003+ #0 /root/rpmbuild/BUILD/php71-php-pecl-imagick-3.4.3/NTS/tests/268_ImagickDraw_getDensity_basic.php(33): Imagick->drawimage(Object(ImagickDraw))
004+ #1 {main}
005+   thrown in /root/rpmbuild/BUILD/php71-php-pecl-imagick-3.4.3/NTS/tests/268_ImagickDraw_getDensity_basic.php on line 33
========DONE========
XFAIL Test ImagickDraw, getDensity [tests/268_ImagickDraw_getDensity_basic.phpt]   XFAIL REASON: Expected behaviour is not known :-p

...

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test ImagickDraw, getDensity [tests/268_ImagickDraw_getDensity_basic.phpt]  XFAIL REASON: Expected behaviour is not known :-p
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test Imagick, setRegistry and getRegistry [tests/150_Imagick_setregistry.phpt]
Test Tutorial, fxAnalyzeImage [tests/229_Tutorial_fxAnalyzeImage_case1.phpt]

"

I tried with latest php-pecl-imagick source package (php-pecl-imagick-3.4.3-7.remi.src.rpm), but i got same error ("Test ImagickDraw, getDensity [tests/268_ImagickDraw_getDensity_basic.phpt]  XFAIL REASON: Expected behaviour is not known :-p")
Only "Failed Test Summary" contains one problem:
"Test Imagick, setRegistry and getRegistry [tests/150_Imagick_setregistry.phpt]"

History: i updated ImageMagick packages to latest today. Early server had old remi version (6.9.8.4-1) And i could rebuild pecl-imagick with this old ImageMagick version.
So i think, the problem is with this new ImageMagick version.

Please see this problem!

Thank you!

Regards,
Tamas Szabo

Re: php-pecl-imagick rebuild failed

Thanks for the notice, track upstream as https://github.com/mkoppanen/imagick/issues/220

BTW, don't known why you need to rebuild, package is available for all PHP versions... so...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

3 (edited by kacsa 2017-12-14 11:58:25)

Re: php-pecl-imagick rebuild failed

Please add the following to issue too: "Test ImagickDraw, getDensity [tests/268_ImagickDraw_getDensity_basic.phpt]  XFAIL REASON: Expected behaviour is not known :-p"
This is the main problem (this stop rebuild process)

Remi, you are right, package is available for all php versions. But i think, any user use this getdensity function, will get error from php script.

Of course there is reason for why we recompiling pecl-imagick extension.

Thanks for your fast help!

Re: php-pecl-imagick rebuild failed

> Please add the following to issue too: "Test ImagickDraw, getDensity [tests/268_ImagickDraw_getDensity_basic.phpt]  XFAIL REASON: Expected behaviour is not known :-p"

XFAIL means "eXpected FAIL", so don't stop the build.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi