Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typelib: also install ext/typelib.hh header
These headers are installed to the RUBY_EXTENSIONS_INSTALL_DIR (e.g. lib/ruby/1.9.1/x86_64-linux) instead of include/. Are these headers actually required by other packages or are they internal? Signed-off-by: Johannes Meyer <[email protected]>
- Loading branch information
598eed9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... Why did you install it ? typelib.hh is private. typelib_ruby.hh is public.
598eed9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why I added it, probably only because I thought it might have been forgotten. Reverted in e6a4902.
Is there any reason to install the header to
${RUBY_EXTENSIONS_INSTALL_DIR}
(which translates tolib/ruby/1.9.1/x86_64-linux/
on my Ubuntu Trusty system) instead of somewhere belowinclude/
? Will it ever be found there? Thetypelib.pc.in
only exposes${prefix}/include
as includedir.598eed9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typelib_ruby.pc.in exposes the other one. This header is only used to expose the functionality of the ruby bindings (i.e. in another ruby extension).
Installing the headers with the ruby extension was the convention for sure, and seem to still be the convention as far as I can see (see for instance the ruby-narray package)
598eed9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes, you're right. I must have overlooked the additional pc file for the ruby bindings.
Thanks for clarification.