On 23/12/22 17:07, Cédric Boutillier wrote:
Hi!
There was something like this required sometime ago from the nokogiri
package to build ruby-nokogumbo. You can have a look at commit
a3939406c9a1b7ef2d07942ea01d693057f50f47
in nokogiri git repo, dating from 2021-10-22.
I hope it helps at least a bit.
adding the header file in /usr/include solved the #include "oj.h" problem.
execute_before_dh_auto_install:
for r in $$(ruby -rruby_debian_dev -e 'puts
RubyDebianDev::SUPPORTED_RUBY_VERSIONS.values'); do \
dh_install ext/oj/oj.h $$($$r -e 'puts
RbConfig::CONFIG["oldincludedir"]'); \
done
Should the header be in /usr/include/ or it should be under
/usr/include/x86_64-linux-gnu/ruby-3.1.0/ ?
i could not find any config key for
/usr/include/x86_64-linux-gnu/ruby-3.1.0/