[DRE-maint] Bug#996363: ruby-rbpdf: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: Error: test: Image get image file test(RbpdfHttpTest): NoMethodError: undefined method `shutdown' for nil:NilClass
Antonio Terceiro
terceiro at debian.org
Wed Oct 13 13:59:55 BST 2021
Source: ruby-rbpdf
Version: 1.20.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0
Hi,
We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-rbpdf was found to fail to build in that situation.
To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.
Relevant part (hopefully):
> Error: test: Image get image file test(RbpdfHttpTest): NoMethodError: undefined method `shutdown' for nil:NilClass
> /<<PKGBUILDDIR>>/test/rbpdf_http_test.rb:73:in `teardown'
> ===============================================================================
> : (0.076125)
> RbpdfPageTest:
> test: Basic Page content test: .: (0.016013)
> test: circle content: .: (0.002147)
> test: viewerpreferences test: .: (0.009738)
> test: write English and Persian Sunday content test: .: (0.040401)
> test: write Persian Sunday content test: .: (0.018405)
> test: write content RTL test: .: (0.014958)
> test: write content back slash test: .: (0.010998)
> test: write content test: .: (0.002775)
> RbpdfTest:
> test: Bidi: .: (0.003737)
> test: Bidi English and Persian test: .: (0.016793)
> test: Bidi Japanese test: .: (0.002068)
> test: Bidi Persian Monday forcertl test: .: (0.026487)
> test: Bidi Persian Monday test: .: (0.002678)
> test: Bidi Persian Sunday forcertl test: .: (0.002213)
> test: Bidi Persian Sunday test: .: (0.020082)
> test: Bidi Persian and English test: .: (0.002842)
> test: Bidi arabic test: .: (0.002191)
> test: Bidi ascii colon test: .: (0.015445)
> test: Bidi ascii numeric space test: .: (0.002643)
> test: Bidi ascii space test: .: (0.002923)
> test: Bidi date test: .: (0.018149)
> test: Bidi subset font test: .: (0.001524)
> test: Cell link with Close and output PDF document test: .: (0.024133)
> test: Dom Basic test[Simple Text]: .: (0.010209)
> test: Dom Basic test[Back Slash Text]: .: (0.001992)
> test: Dom Basic test[Simple Tag]: .: (0.010288)
> test: Dom Basic test[pre Tag]: .: (0.011303)
> test: Dom Basic test[pre code Tag]: .: (0.002410)
> test: Dom Basic test[pre code span Tag]: .: (0.010691)
> test: Dom Basic test[Error Tag (doble colse tag)]: .: (0.001804)
> test: Dom Basic test[Attribute]: .: (0.010585)
> test: Dom Basic test[Table border]: .: (0.002507)
> test: Dom Basic test[Table td Width]: .: (0.014737)
> test: Dom Basic test[Dom open angled bracket "<"]: .: (0.014486)
> test: Dom Basic test[Dom self close tag]: .: (0.017457)
> test: Dom HTMLTagHandler Basic test: .: (0.015236)
> test: Dom HTMLTagHandler DIR test[LTR]: .: (0.016512)
> test: Dom HTMLTagHandler DIR test[RTL]: .: (0.016407)
> test: Dom HTMLTagHandler img y position with height attribute test: E, [2021-10-05T00:14:46.580331 #990090] ERROR -- : pdf: Image: error: RBPDF error: Image file is not found. : /public/ng.png
> .: (0.004269)
> test: Dom HTMLTagHandler img y position without height attribute test:E, [2021-10-05T00:14:46.601847 #990090] ERROR -- : pdf: Image: error: RBPDF error: Image file is not found. : /public/ng.png
> .: (0.021489)
> test: Dom pre tag test: .: (0.054893)
> test: Dom self close tag test: .: (0.005654)
> test: Examples test[001 : Default Header and Footer]: .: (1.407423)
> test: Examples test[002 : Removing Header and Footer]:.: (0.052677)
> test: Examples test[003 : Custom Header and Footer]: .: (0.106227)
> test: Examples test[004 : Cell stretching]: .: (0.102724)
> test: Examples test[005 : Multicell]: .: (0.432354)
> test: Examples test[006 : write_html and RTL support]:E, [2021-10-05T00:14:49.246850 #990090] ERROR -- : pdf: Image: error: RBPDF error: Image file is not found. : /<<PKGBUILDDIR>>/example/rails/app/controllers/../../public/tiger.ai
> .: (4.710111)
> test: Examples test[007 : Two independent columns with write_htmlcell()]: .: (2.698085)
> test: Examples test[008 : Include external UTF-8 text file]: .: (1.142124)
> test: Examples test[009 : Test Image]: E, [2021-10-05T00:14:57.344796 #990090] ERROR -- : pdf: Image: error: RBPDF error: No RMagick: Non-PNG file is not supported.: /<<PKGBUILDDIR>>/example/rails/app/controllers/../../public/image_demo.jpg
> .: (0.047993)
> test: Examples test[011 : Colored Table]: .: (0.138701)
> test: Examples test[012 : Graphic Functions]: .: (0.101378)
> test: Examples test[015 : Bookmarks (Table of Content)]: .: (0.135357)
> test: Examples test[017 : Two independent columns with MultiCell]: .: (0.921524)
> test: Examples test[018 : RTL document with Persian language]:.: (2.757390)
> test: Examples test[020 : Two columns composed by MultiCell of different]: .: (1.606778)
> test: Examples test[021 : write_html text flow]: .: (0.740134)
> test: Examples test[022 : CMYK colors]: .: (0.050279)
> test: Examples test[023 : Page Groups]: .: (0.246299)
> test: Examples test[024 : Object Visibility]: .: (0.084596)
> test: Examples test[025 : Object Transparency]: .: (0.074541)
> test: Examples test[026 : Text Rendering Modes and Text Clipping]: .: (0.111458)
> test: Examples test[028 : Changing page formats]: .: (0.096257)
> test: Examples test[029 : Set PDF viewer display preferences.]: .: (0.143719)
> test: Examples test[031 : Pie Chart]: .: (0.065362)
> test: Examples test[033 : Mixed font types]: .: (1.150049)
> test: Examples test[034 : Clipping]: E, [2021-10-05T00:15:05.840580 #990090] ERROR -- : pdf: Image: error: RBPDF error: No RMagick: Non-PNG file is not supported.: /<<PKGBUILDDIR>>/example/rails/app/controllers/../../public/image_demo.jpg
> .: (0.065578)
> test: Examples test[035 : Line styles with cells and multicells]: /<<PKGBUILDDIR>>/debian/ruby-rbpdf/usr/share/rubygems-integration/all/gems/rbpdf-1.20.1/lib/rbpdf.rb:8858: warning: deprecated Object#=~ is called on Integer; it always returns nil
> .: (0.018303)
> test: Examples test[036 : Annotations]: .: (0.020173)
> test: Examples test[038 : CID-0 CJK unembedded font]: .: (0.102677)
> test: Examples test[039 : HTML justification]: E, [2021-10-05T00:15:06.014779 #990090] ERROR -- : pdf: Image: error: RBPDF error: Image file is not found. : /<<PKGBUILDDIR>>/example/rails/app/controllers/../../public/tiger.ai
> E, [2021-10-05T00:15:06.093459 #990090] ERROR -- : pdf: Image: error: RBPDF error: Image file is not found. : /<<PKGBUILDDIR>>/example/rails/app/controllers/../../public/tiger.ai
> .: (0.300238)
> test: Examples test[040 : Booklet mode (double-sided pages)]: .: (0.023069)
> test: Examples test[041 : Annotation - FileAttachment]: .: (0.018670)
> test: Examples test[042 : Test Image with alpha channel]: E, [2021-10-05T00:15:06.388677 #990090] ERROR -- : pdf: Image: error: RBPDF error: No RMagick/MiniMagick : Alpha channel not supported: /<<PKGBUILDDIR>>/example/rails/app/controllers/../../public/png_test_alpha.png
> .: (0.056691)
> test: Examples test[043 : Disk caching]: .: (0.034077)
> test: Examples test[044 : Move, copy and delete pages]: .: (0.036459)
> test: Examples test[045 : Bookmarks and Table of Content]: .: (0.256398)
> test: Examples test[047 : Transactions]: .: (0.027298)
> test: Examples test[048 : HTML tables and table headers]: .: (0.564114)
> test: Examples test[055 : Display all characters available on core fonts.]: .: (5.997598)
> test: Examples test[057 : Cell vertical alignments]: .: (0.024216)
> test: Examples test[059 : Table Of Content using HTML templates.]: .: (0.239228)
> test: Examples test[060 : Advanced page settings.]: .: (0.018935)
> test: Examples test[061 : XHTML + CSS]: .: (0.083768)
> test: HTML Image test: .: (0.000107)
> test: HTML Image test without RMagick: E, [2021-10-05T00:15:13.698588 #990090] ERROR -- : pdf: Image: error: RBPDF error: Image file is not found. : /<<PKGBUILDDIR>>/test/ng.png
> .: (0.021240)
> test: Image basic ascii filename test: .: (0.003133)
> test: Image basic filename error test: .: (0.001943)
> test: Image basic func extension test: .: (0.001585)
> test: Image basic func mime type test: .: (0.001760)
> test: Image basic test: .: (0.002769)
> test: Image fitonpage test 1: .: (0.002989)
> test: Image fitonpage test 2: .: (0.002814)
> test: Image test[PNG]: .: (0.002575)
> test: Image test[PNG alpha]: .: (0.000081)
> test: Image test[GIF]: .: (0.000064)
> test: Image test[GIF alpha]: .: (0.000063)
> test: Image test[JPEG]: .: (0.000206)
> test: ImagePngAlpha test[PNG alpha]: .: (0.000071)
> test: Magick::ImageList delete GIF alpha channel test:.: (0.000065)
> test: Page Box A4 test 1: .: (0.001590)
> test: Page Box A4 test 2: .: (0.001884)
> test: Page Box A4 test 3: .: (0.001893)
> test: RTL test: .: (0.001632)
> test: Transaction mult_cell self test with diskcache: .: (0.021157)
> test: Transaction mult_cell test with diskcache: .: (0.016304)
> test: Transaction multi_cell test without diskcache: .: (0.009353)
> test: Transaction test with diskcache: .: (0.017651)
> test: Transaction write test without diskcache: .: (0.008799)
> test: UTF8StringToArray cache_utf8_string_to_array test: .: (0.001653)
> test: UniArrSubString test: .: (0.001664)
> test: add_page: .: (0.004526)
> test: add_page potision: .: (0.003895)
> test: add_page set_page Over Error: .: (0.003566)
> test: add_page set_page Under Error: .: (0.002733)
> test: anchor with id: .: (0.004403)
> test: anchor with overtical offset: .: (0.006509)
> test: anchor with text inside: .: (0.004567)
> test: bookmark test: .: (0.005702)
> test: deletePage test: .: (0.004353)
> test: empty anchor: .: (0.003547)
> test: getCellCode back slash text test: .: (0.006109)
> test: getCellCode basic test: .: (0.005488)
> test: getCellCode link page test: .: (0.007746)
> test: getCellCode link url test: .: (0.006690)
> test: getCellCode text align test: .: (0.006204)
> test: getCellCode text test: .: (0.006002)
> test: getHtmlDomArray encoding test: .: (0.002442)
> test: getSpaceString test: .: (0.002403)
> test: getStringHeight test[Basic]: .: (0.009741)
> test: getStringHeight test[Line Break]: .: (0.016061)
> test: getStringHeight test[Multi Line]: .: (0.010411)
> test: getStringHeight test[Minimum Width]: .: (0.019824)
> test: getStringHeight test[Minimum Width with font]: .: (0.012892)
> test: getStringHeight test[Minimum Bidi]: .: (0.052101)
> test: getStringHeight test[Minimum Bidi with font]: .: (0.029837)
> test: get_break_margin test: .: (0.002997)
> test: get_html_unit_to_units test: .: (0.002157)
> test: get_page_dimensions test: .: (0.003831)
> test: get_string_width encoding test: .: (0.001982)
> test: html func addHTMLVertSpace add line test: .: (0.002724)
> test: html func addHTMLVertSpace empty lines test: .: (0.002271)
> test: html func addHTMLVertSpace height of the break test 1: .: (0.002722)
> test: html func addHTMLVertSpace height of the break test 2: .: (0.002719)
> test: html func sanitize open angled bracket '<' test:.: (0.003076)
> test: html func sanitize test 1: .: (0.003347)
> test: html func sanitize test 2: .: (0.005641)
> test: image getimagesize test[PNG]: .: (0.002719)
> test: image getimagesize test[PNG monotone]: .: (0.002689)
> test: image getimagesize test[GIF]: .: (0.000084)
> test: image getimagesize test[GIF alpha]: .: (0.000067)
> test: image getimagesize test[JPEG RGB]: .: (0.000063)
> test: image getimagesize test[JPEG monotone RGB]: .: (0.000062)
> test: image getimagesize test[JPEG monotone Gray]: .: (0.000063)
> test: imageToPNG delete test[PNG alpha]: .: (0.000067)
> test: imageToPNG delete test[GIF]: .: (0.000062)
> test: imageToPNG delete test[GIF alpha]: .: (0.000066)
> test: image_alpha_mask DeviceGray test: .: (0.000079)
> test: maps when anchor after link: .: (0.033784)
> test: maps when anchor before link: .: (0.033297)
> test: on the second page: .: (0.030710)
> test: removeSHY encoding test: .: (0.002187)
> test: revstrpos offset test 1: .: (0.001576)
> test: revstrpos offset test 2: .: (0.001470)
> test: revstrpos test: .: (0.001517)
> test: set_line_style Basic test: .: (0.001522)
> test: set_x potision: .: (0.001619)
> test: set_y potision: .: (0.001519)
> test: start_page_group test: .: (0.003644)
> test: write Basic test: .: (0.016809)
> test: write Bidi arabic set_rtl test: .: (0.003915)
> test: write Bidi arabic set_temp_rtl test: .: (0.003531)
> test: write Bidi arabic test: .: (0.003637)
> test: write Break test multi line 1: .: (0.005978)
> test: write Break test multi line 2: .: (0.007824)
> test: write Break test single line 1: .: (0.021759)
> test: write Break test single line 2: .: (0.021427)
> test: write encoding test: .: (0.003474)
> test: write endline x test 1: .: (0.003283)
> test: write endline x test 2: .: (0.002503)
> test: write endline x test 3: .: (0.002491)
> test: write firstline test: .: (0.004009)
> test: write_html_cell test[Basic]: .: (0.004107)
> test: write_html_cell test[Page Break no border]: .: (0.005016)
> test: write_html_cell test[Page Break border]: .: (0.004842)
> test: write_html_cell test[pre tag y position]: .: (0.006786)
>
> Finished in 53.322102269 seconds.
> -------------------------------------------------------------------------------
> 247 tests, 1644 assertions, 0 failures, 2 errors, 0 pendings, 0 omissions, 0 notifications
> 99.5951% passed
> -------------------------------------------------------------------------------
> 4.63 tests/s, 30.83 assertions/s
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/rbpdf_bidi_test.rb" "test/rbpdf_bookmark_test.rb" "test/rbpdf_cell_test.rb" "test/rbpdf_content_test.rb" "test/rbpdf_css_test.rb" "test/rbpdf_dom_test.rb" "test/rbpdf_examples_test.rb" "test/rbpdf_font_func_test.rb" "test/rbpdf_font_style_test.rb" "test/rbpdf_font_test.rb" "test/rbpdf_format_test.rb" "test/rbpdf_func_test.rb" "test/rbpdf_html_anchor_test.rb" "test/rbpdf_html_func_test.rb" "test/rbpdf_html_test.rb" "test/rbpdf_htmlcell_test.rb" "test/rbpdf_http_test.rb" "test/rbpdf_image_rmagick_test.rb" "test/rbpdf_image_test.rb" "test/rbpdf_test.rb" "test/rbpdf_transaction_test.rb" "test/rbpdf_viewerpreferences_test.rb" "test/rbpdf_write_test.rb" "test/test_helper.rb" -v]
>
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed:
The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-rbpdf/ruby-rbpdf_1.20.1-1+rebuild1633392699_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211013/b82055fb/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list