aboutsummaryrefslogtreecommitdiff
path: root/doc/faq/howdoi.html.part
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2022-02-08 19:59:31 +0100
committerAvatar Marvin Schmidt <marv@exherbo.org> 2022-02-09 14:09:43 +0100
commit8c29ae39f09fca57cbe04e5965c250b37f3ffae8 (patch)
tree4335f1a75f3c6bece304b9ef6398bdca618d42a5 /doc/faq/howdoi.html.part
parentcf94a7c927e4bad1f9c686630df87031f2df469f (diff)
downloadpaludis-master.tar.gz
paludis-master.tar.xz
build: Fix check for 'syntax' ruby gemHEADmaster
With `ruby` pointing to ruby3.1 and `syntax` only installed with `RUBY_ABIS: 3.0` configure succeeded, but the build failed trying to build the Ruby API docs: ``` <internal:/usr/x86_64-pc-linux-gnu/lib/ruby/3.1/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- syntax/convertors/html (LoadError) from <internal:/usr/x86_64-pc-linux-gnu/lib/ruby/3.1/rubygems/core_ext/kernel_require.rb>:85:in `require' from /var/tmp/paludis/build/sys-apps-paludis-scm/work/paludis-scm/doc/api/ruby/create_ruby_examples.rb:5:in `<main>' make[2]: *** [doc/api/ruby/CMakeFiles/ruby-docs.dir/build.make:77: doc/api/ruby/ruby] Error 1 ``` The configure check didn't catch this because: - it used `OUTPUT_VARIABLE` instead of `RESULT_VARIABLE` - it used the `-r` with a wrong argument The check wrongly invoked `ruby` with `-rubygems` instead of `-r rubygems`: ``` $ ruby3.0 -rubygems -e "require 'syntax/convertors/html'" <internal:/usr/x86_64-pc-linux-gnu/lib/ruby/3.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- ubygems (LoadError) Did you mean? rubygems from <internal:/usr/x86_64-pc-linux-gnu/lib/ruby/3.0/rubygems/core_ext/kernel_require.rb>:85:in `require' ``` Fix the ruby invocation and check if the exit code (`RESULT_VARIABLE`) is non-zero Fixes: a8c9e5d64 ("build: introduce cmake based build system")
Diffstat (limited to 'doc/faq/howdoi.html.part')
0 files changed, 0 insertions, 0 deletions