Raku / ecosystem-unbitrot

Which modules are not installable?
https://perl6.github.io/ecosystem-unbitrot/
GNU General Public License v3.0
5 stars 4 forks source link

HTML::Canvas #412

Closed AlexDaniel closed 5 years ago

AlexDaniel commented 5 years ago

Module HTML::Canvas cannot be installed (AlwaysFail), perhaps it has some failing tests.

If you can't self-assign yourself or attach a label, please let us know on #perl6 channel on freenode or just leave a comment here. We will try to give you privileges as fast as possible.

Output:

===> Searching for: HTML::Canvas
===> Found: HTML::Canvas:ver<0.0.5>:auth<github:p6-css>:api<2dcontext-20151119> [via Zef::Repository::Ecosystems<cpan>]
===> Fetching [OK]: HTML::Canvas:ver<0.0.5>:auth<github:p6-css>:api<2dcontext-20151119> to /home/alex/Blin/data/zef-data/tmp/1549584007.3408.8372/HTML-Canvas-0.0.5.tar.gz
===> Extraction [OK]: HTML::Canvas to /home/alex/Blin/data/zef-data/store/HTML-Canvas-0.0.5.tar.gz
===> Testing: HTML::Canvas:ver<0.0.5>:auth<github:p6-css>:api<2dcontext-20151119>
t/00-readme.t ............... ok
t/01-basic.t ................ ok
t/cairo-transforms.t ........ ok
t/images.t .................. ok
Unable to parse the pattern

stopped on image 1: unable to resolve font-name: courier:weight=bold
  in block  at t/render-pdf-test-sheets.t line 38
# Failed test 'completion of image 1'
# at t/render-pdf-test-sheets.t line 48
Unable to parse the pattern

stopped on image 2: unable to resolve font-name: arial:weight=bold
  in block  at t/render-pdf-test-sheets.t line 38
# Failed test 'completion of image 2'
# at t/render-pdf-test-sheets.t line 48
Unable to parse the pattern

stopped on image 8: unable to resolve font-name: courier:weight=bold
  in block  at t/render-pdf-test-sheets.t line 38
# Failed test 'completion of image 8'
# at t/render-pdf-test-sheets.t line 48
# Looks like you failed 3 tests of 13
t/render-pdf-test-sheets.t .. 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/13 subtests 
t/render-png-basic.t ........ ok
t/transforms.t .............. ok

Test Summary Report
-------------------
t/render-pdf-test-sheets.t (Wstat: 768 Tests: 13 Failed: 3)
  Failed tests:  1, 3, 9
  Non-zero exit status: 3
Files=7, Tests=54, 29 wallclock secs ( 0.05 usr  0.01 sys + 39.58 cusr  3.73 csys = 43.37 CPU)
Result: FAIL
===> Testing [FAIL]: HTML::Canvas:ver<0.0.5>:auth<github:p6-css>:api<2dcontext-20151119>
Failed to get passing tests, but continuing with --force-test
===> Installing: HTML::Canvas:ver<0.0.5>:auth<github:p6-css>:api<2dcontext-20151119>
===> Install [OK] for HTML::Canvas:ver<0.0.5>:auth<github:p6-css>:api<2dcontext-20151119>

Ping @p6-css

Previous ticket: #199

dwarring commented 5 years ago

Unable to find some fonts, which is causing test failures.

AlexDaniel commented 5 years ago

@dwarring is there something I should install to make it pass?

dwarring commented 5 years ago

@AlexDaniel you could try gsfonts.

dwarring commented 5 years ago

Sorry, on my Debian system it's actually finding fonts from fonts-dejavu-core:

% fc-match -f '%{file}\n' ariel:weight=bold
/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
% dpkg-query -S /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
fonts-dejavu-core: /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf

so that package might be the one that's needed.

AlexDaniel commented 5 years ago

Ah-ha, OK, I'll try that, if it works the issue will be closed. I added native dependency label because there's no better label… Thanks!

dwarring commented 5 years ago

Btw, HTML::Canvas is using the font-font method from CSS::Properties::Font which just run an fc-match shell-command as above.

dwarring commented 5 years ago

I'll also update the README. Seems the module needs some fonts to be installed.

dwarring commented 5 years ago

dang! arial, not ariel: % fc-match -f '%{file}\n' arial:weight=bold. Which finds a font from a different package: font-liberation.

% fc-match -f '%{file}\n' arial:weight=bold
/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf
% dpkg-query -S /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf
fonts-liberation: /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf

As long as fc-match can find both 'courier:weight=bold' and 'arial:weight=bold'

dwarring commented 5 years ago

I've add a monospace font to the module's resources, which is used as a fallback when fc-match fails to find a font. Should ease automated testing and initial install of this module.

Readme also updated.

Uploaded to CPAN as HTML::Canvas 0.0.6

AlexDaniel commented 5 years ago

@dwarring thank you!