Table of Contents
Problem
$ cd chat/weechat $ bmake install clean clean-depends In file included from /path/to/local/pkgsrc/chat/weechat/work/.buildlink/include/ruby-2.6.0/ruby.h:33, from /path/to/local/pkgsrc/chat/weechat/work/weechat-3.1/src/plugins/ruby/weechat-ruby.c:25: /path/to/local/pkgsrc/chat/weechat/work/.buildlink/include/ruby-2.6.0/ruby/ruby.h:24:10: fatal error: ruby/config.h: No such file or directory #include "ruby/config.h" ^~~~~~~~~~~~~~~ compilation terminated. *** Error code 1 $ ruby --version ruby 2.6.8p205 (2021-07-07 revision 67951) [x86_64-linux]
I tried on both trunk and pkgsrc-2021Q2 but it cannot compile and would show messages like above.
Workaround
$ cd chat/weechat $ bmake PKG_OPTIONS.weechat="lua perl python wide-curses -ruby" install clean clean-depends
$ bmake show-options Any of the following general options may be selected: lua Enable Lua support. perl Enable Perl support. python Enable Python support. ruby Enable Ruby support. wide-curses Enable wide curses support. These options are enabled by default: lua perl python ruby wide-curses These options are currently enabled: lua perl python ruby wide-curses You can select which build options to use by setting PKG_DEFAULT_OPTIONS or PKG_OPTIONS.weechat.