https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-php/pecl-imagick-3.7.0-r1 fails tests (PYTHON-3.12-SYSTEM). Discovered on: amd64 (internal ref: python-3.12_tinderbox) NOTE: (PYTHON-3.12-SYSTEM) in the summary means that the bug was found on a machine that runs python-3.12 but this bug MAY or MAY NOT BE related to the new python version
Created attachment 866948 [details] build.log build log and emerge --info
Error(s) that match a know pattern: FAIL Imagick::setResourceLimit test [tests/014-setresourcelimit.phpt] FAIL ImagickKernel::fromMatrix test [tests/145_imagickkernel_coverage.phpt] FAIL Pixel Iterator tests [tests/020-pixeliterator.phpt] FAIL Test Imagick, Imagick::evaluateImages [tests/258_Imagick_evaluateImages_basic.phpt] FAIL Test Imagick, Imagick::evaluateImages [tests/259_Imagick_colorPoints_basic.phpt] FAIL Test Imagick, annotateImage [tests/034_Imagick_annotateImage_basic.phpt] FAIL Test Imagick, convolveImage [tests/047_Imagick_convolveImage_7.phpt] FAIL Test Imagick, getPixelIterator [tests/083_Imagick_getPixelIterator_basic.phpt] FAIL Test Imagick, getPixelRegionIterator [tests/084_Imagick_getPixelRegionIterator_basic.phpt] FAIL Test Imagick, identifyImage [tests/236_Imagick_identify_basic.phpt] FAIL Test Imagick, medianFilterImage [tests/289_Imagick_setImageMask_basic.phpt] FAIL Test Imagick, mergeImageLayers [tests/092_Imagick_mergeImageLayers_basic.phpt] FAIL Test Imagick, polaroidImage [tests/327_Imagick_polaroidImage_basic.phpt] FAIL Test Imagick, polaroidWithTextAndMethod [tests/328_Imagick_polaroidImageWithTextAndMethod_basic.phpt] FAIL Test Imagick, setDepth [tests/325_Imagick_setDepth.phpt] FAIL Test Imagick, setImageMask basic [tests/286_Imagick_setMask_basic.phpt] FAIL Test Imagick, setRegistry and getRegistry [tests/150_Imagick_setregistry.phpt] FAIL Test Imagick, subImageMatch [tests/151_Imagick_subImageMatch_basic.phpt] FAIL Test Imagick::optimizeimagelayers and Imagick::optimizeimagetransparency [tests/278_Imagick_optimaze_gif.phpt] FAIL Test ImagickDraw, composite [tests/177_ImagickDraw_composite_basic.phpt] FAIL Test ImagickDraw, getFontResolution [tests/266_ImagickDraw_getFontResolution_basic.phpt] FAIL Test ImagickDraw, getTextDirection [tests/264_ImagickDraw_getTextDirection_basic.phpt] FAIL Test ImagickDraw, setFontFamily [tests/207_ImagickDraw_setFontFamily_basic.phpt] FAIL Test ImagickDraw, setFontSize [tests/206_ImagickDraw_setFontSize_basic.phpt] FAIL Test ImagickDraw, setFontStretch [tests/208_ImagickDraw_setFontStretch_basic.phpt] FAIL Test ImagickDraw, setFontStyle [tests/210_ImagickDraw_setFontStyle_basic.phpt] FAIL Test ImagickDraw, setFontWeight [tests/209_ImagickDraw_setFontWeight_basic.phpt] FAIL Test ImagickDraw, setGravity [tests/212_ImagickDraw_setGravity_basic.phpt] FAIL Test ImagickDraw, setTextAlignment [tests/222_ImagickDraw_setTextAlignment_basic.phpt] FAIL Test ImagickDraw, setTextAntialias [tests/223_ImagickDraw_setTextAntialias_basic.phpt] FAIL Test ImagickDraw, setTextDecoration [tests/225_ImagickDraw_setTextDecoration_basic.phpt] FAIL Test ImagickDraw, setTextUnderColor [tests/224_ImagickDraw_setTextUnderColor_basic.phpt] FAIL Test ImagickDraw:: setTextInterlineSpacing [tests/279_ImagickDraw_setTextInterlineSpacing.phpt] FAIL Test ImagickPixelIterator, clear [tests/248_ImagickPixelIterator_clear_basic.phpt] FAIL Test ImagickPixelIterator, construct [tests/247_ImagickPixelIterator_construct_basic.phpt] FAIL Test ImagickPixelIterator, construct [tests/252_ImagickPixelIterator_construct_basic.phpt] FAIL Test ImagickPixelIterator, getNextIteratorRow [tests/249_ImagickPixelIterator_getNextIteratorRow_basic.phpt] FAIL Test ImagickPixelIterator, resetIterator [tests/250_ImagickPixelIterator_resetIterator_basic.phpt] FAIL Test Tutorial, fxAnalyzeImage [tests/229_Tutorial_fxAnalyzeImage_case1.phpt] FAIL Test Tutorial, psychedelicFont [tests/241_Tutorial_psychedelicFont_basic.phpt] FAIL Test Tutorial, psychedelicFontGif [tests/244_Tutorial_psychedelicFontGif_basic.phpt] FAIL Test autoGammaImage [tests/263_autoGammaImage.phpt] FAIL Test autoOrient [tests/262_autoOrient.phpt] FAIL Test iterating over images works [tests/292_index_iterator.phpt] FAIL Test localContrastImage [tests/260_localContrastImage.phpt] FAIL Test pseudo formats [tests/246_antialias_image.phpt] FAILED TEST SUMMARY
Caused by USE=debug for dev-lang/php. Unless there turns out to be an easy solution I'll probably just add a !debug USE dep.
Just curious: Is there a way to create something like a slot dependency an use flags? Because all PHP extensions break, if you change the "threads" or the "debug" use flag. And with the current ebuilds its up to the user to detect this breakage. For slots there is the `:=` operaator. Something like that does not exist for flags, does it?
(In reply to Ferdinand Kuhl from comment #4) > Just curious: > > Is there a way to create something like a slot dependency an use flags? > For slots there is the `:=` operaator. Something like that does not exist > for flags, does it? Yep: https://devmanual.gentoo.org/general-concepts/dependencies/#built-with-use-dependencies > Because all PHP extensions break, if you change the "threads" or the "debug" > use flag. And with the current ebuilds its up to the user to detect this > breakage. We have the ability to block php[threads] and php[debug] when building extensions (see above), so if nobody has done it, that means we think it should work (or often: nobody has tried it yet). Please file bugs for any extensions that don't work so we can fix them. Aside: a long time ago, building php with --enable-debug or --enable-zts unofficially meant that you were on your own. But today, upstream PHP includes debug and zts builds in their CI and both should pass the test suite. That doesn't mean that PECL extension authors have received that memo, but debug/zts are no longer second class citizens guaranteed to break.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3ad40add0455c18f4429b1c5f97c35737aab357 commit a3ad40add0455c18f4429b1c5f97c35737aab357 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-31 01:09:22 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-31 01:09:22 +0000 dev-php/pecl-imagick: require USE="-debug" for dev-lang/php Upstream knows about the issue but there hasn't been any movement on it and the incompatibility breaks the test suite, so let's work around it. Closes: https://bugs.gentoo.org/911661 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> dev-php/pecl-imagick/pecl-imagick-3.7.0-r2.ebuild | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+)