>>> Test phase: dev-perl/GD-2.660.0 * Removing un-needed t/z_kwalitee.t * Removing un-needed t/z_manifest.t * Removing un-needed t/z_pod-spell-mistakes.t * Removing un-needed t/z_pod.t * Fixing Manifest * Test::Harness Jobs=3 make -j3 test TEST_VERBOSE=0 "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- GD.bs blib/arch/auto/GD/GD.bs 644 PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Polyline.t .. ok ===( 2;0 0/? 0/? 1/12 )=======================================Can't locate object method "newFromJpeg" via package "GD::Image" at t/transp.t line 24. # Looks like your test exited with 25 just after 4. t/transp.t .... Dubious, test returned 25 (wstat 6400, 0x1900) Failed 8/12 subtests ===( 6;0 1/13 0/1 )============================================# Testing gd 2.2.5 using gd2 support. t/HSV.t ....... ok t/GD.t ........ 4/13 libgd was not built with FreeType font support libgd was not built with FreeType font support libgd was not built with FreeType font support # gd: 2.2.5, files: ./test_data/images/t7/7-00.gd2 ./test_data/images/t7/7-01.gd2 # ignore corrupt png error messages... t/GD.t ........ ok Test Summary Report ------------------- t/transp.t (Wstat: 6400 Tests: 4 Failed: 0) Non-zero exit status: 25 Parse errors: Bad plan. You planned 12 tests but ran 4. Install: [ebuild N ~] dev-perl/GD-2.660.0 USE="-animgif -examples -fcgi -gif -jpeg -png -truetype -xpm" 0 KiB [ebuild N ] media-libs/gd-2.2.5:2/3 USE="zlib -fontconfig -jpeg -png -static-libs -tiff -truetype -webp -xpm" 0 KiB [ebuild N ] dev-perl/ExtUtils-PkgConfig-1.160.0 0 KiB [ebuild N #] virtual/perl-ExtUtils-Constant-0.250.0 0 KiB Test: * threephase 3/3 test > No conf fixes for =dev-perl/GD-2.660.0 -> emerge -t1 --quiet-build=y --quiet-repo-display --nospinner --autounmask=y --autounmask-keep-masks=y --autounmask-unrestricted-atoms=n --autounmask-continue --unordered-display --verbose --backtrack=10 --jobs=1 --quiet-build=n --jobs=1 =dev-perl/GD-2.660.0 These are the packages that would be merged: Calculating dependencies ... done! [ebuild R ~] dev-perl/GD-2.660.0 USE="-animgif -examples -fcgi -gif -jpeg -png -truetype -xpm" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB
So, basically, it turns out our USE flags do nothing, and --options passed to configure are ignored, it just does its own thing, _AND_ doesn't even factor for the features actually installed.
Proposed adjustment by dropping stable where needed, and dropping package.use.stable.{mask,force} where possible to avoid installing GD on stable systems, as it currently working (at all) is mostly dumb luck. https://github.com/gentoo/gentoo/pull/12424
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5fb1deca49ffb33d5c98544f2647b997be6ba9f commit e5fb1deca49ffb33d5c98544f2647b997be6ba9f Author: Kent Fredric <kentnl@gentoo.org> AuthorDate: 2019-07-11 07:31:31 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2019-07-31 04:35:43 +0000 dev-perl/GD: Drop stable keywords (and rdeps stable kw) re bug #661634 This module has some seriously diabolical behaviour if you actually attempt to configure anything, if you attempt to configure media-libs/gd in any regard, dev-perl/GD cannot be expected to give usable results, as neither the configuration passed from the ebuild, or the configuration indicated by media-libs/gd, are actually used for compiling dev-perl/GD Bug: https://bugs.gentoo.org/661634 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric <kentnl@gentoo.org> app-admin/reportmagic/reportmagic-2.21.ebuild | 2 +- dev-perl/Ace/Ace-1.920.0-r3.ebuild | 2 +- dev-perl/Chart/Chart-2.4.10.ebuild | 2 +- dev-perl/GD-Barcode/GD-Barcode-1.150.0-r1.ebuild | 2 +- dev-perl/GD-Graph3d/GD-Graph3d-0.630.0-r1.ebuild | 2 +- dev-perl/GD-SVG/GD-SVG-0.330.0-r1.ebuild | 2 +- dev-perl/GD/GD-2.560.0-r1.ebuild | 2 +- dev-perl/GDGraph/GDGraph-1.490.0.ebuild | 2 +- dev-perl/GDTextUtil/GDTextUtil-0.860.0-r1.ebuild | 2 +- dev-perl/Template-GD/Template-GD-2.660.0-r1.ebuild | 2 +- dev-util/lcov/lcov-1.11.ebuild | 2 +- dev-util/lcov/lcov-1.9-r1.ebuild | 2 +- media-gfx/springgraph/springgraph-88.ebuild | 2 +- net-analyzer/squid-graph/squid-graph-3.2-r1.ebuild | 2 +- profiles/base/package.use.stable.force | 6 ++++++ profiles/base/package.use.stable.mask | 16 ++++++++++++++++ www-apps/dspam-web/dspam-web-3.10.1.ebuild | 2 +- 17 files changed, 37 insertions(+), 15 deletions(-)
Same with 2.730.0 on sparc.
https://github.com/lstein/Perl-GD/commit/b994ad356e14e224a7e1bf43ccabf4263c929613 seems like it may have fixed the JPEG case but not the GIF one I hit.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d64978d1cee9c2d894b12e03e602d00772508dce commit d64978d1cee9c2d894b12e03e602d00772508dce Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2021-06-03 19:12:18 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2021-06-03 19:13:06 +0000 dev-perl/GD: Force-enable gif,jpeg,png Closes: https://bugs.gentoo.org/623542 Closes: https://bugs.gentoo.org/635830 Closes: https://bugs.gentoo.org/661634 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> dev-perl/GD/GD-2.730.0-r1.ebuild | 75 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+)