[DRE-maint] Bug#1103325: racc: FTBFS with the nocheck build profile

Santiago Vila sanvila at debian.org
Tue Sep 30 20:23:29 BST 2025


tags 1103325 patch
thanks

Hi. My knowledge of ruby is extremely limited (almost empty I would say).

Can you please tell me if the attached patch makes any sense?

[ The problem seems to be that lib/racc/parser-text.rb is only generated
when the tests are run, so we have to generate the file no matter what ].

Thanks.
-------------- next part --------------
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,9 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies
 %.html: %.rdoc
 	ruby -Ku /usr/bin/rd2 $< -o `echo $< | sed -e 's/\.rdoc$$//'`
 
+execute_after_dh_auto_build:
+	rake srcs
+
 override_dh_install: $(docs_html)
 	dh_install
 	cp -v lib/racc/parser-text.rb debian/racc/usr/lib/ruby/vendor_ruby/racc/


More information about the Pkg-ruby-extras-maintainers mailing list