Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#16884 - [ruby] 1.9 header files broken (config.h)
Attached to Project:
Arch Linux
Opened by Anne Edit (Aedit) - Wednesday, 28 October 2009, 17:09 GMT
Last edited by Allan McRae (Allan) - Monday, 02 November 2009, 12:48 GMT
Opened by Anne Edit (Aedit) - Wednesday, 28 October 2009, 17:09 GMT
Last edited by Allan McRae (Allan) - Monday, 02 November 2009, 12:48 GMT
|
DetailsDescription:
The ruby header files in /usr/include/ruby-1.9.1 are not correct. An attempt to compile with #include <ruby.h> fails because ruby.h includes "ruby/ruby.h" which tries to include "ruby/config.h" which does not exist. The required file is actually in $ARCH-linux/ruby/ruby.config.h This can be solved with the following link: ln -s /usr/include/ruby-1.9.1/$ARCH-linux/ruby/config.h /usr/include/ruby-1.9.1/ruby/ What did the ruby devs actually intend here? I don't know. Additional info: * package version(s) 1.9.1_p243-2 * background info (which may or may not be useful) http://lists.kde.org/?l=kde-bindings&m=122962027118121&w=2 http://markmail.org/message/fhkltqprkmkw6jwt#query:link ruby/config.h+page:1+mid:dl6p6rxzgf45nnlg+state:results Steps to reproduce: compile anything with #include <ruby.h> |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 02 November 2009, 12:48 GMT
Reason for closing: Not a bug
Additional comments about closing: Upstream rejected
Monday, 02 November 2009, 12:48 GMT
Reason for closing: Not a bug
Additional comments about closing: Upstream rejected
I see it was worked around in the PKGBUILD for kdebindings-ruby like this
# fix build with ruby 1.9
# see http://bugs.archlinux.org/task/16175
find ../$pkgbase-$pkgver/ruby -name CMakeLists.txt \
-exec sed -i "s|\${RUBY_INCLUDE_PATH}|\${RUBY_INCLUDE_PATH} /usr/include/ruby-1.9.1/${CARCH}-linux|" {} \;
I came across the problem when updating amarok1 for ruby 1.9.
I guess it's a question of policy now, what to do about this.
1. Add a link in the ruby package.
2. Add an extra include directory to every PKGBUILD that depends on ruby header files.
3. Remain broken until ruby upstream make their header files self-consistent.
(1) and (2) both work, but (1) is easier and also makes Arch a consistent platform for
those who compile their own packages.
http://redmine.ruby-lang.org/issues/show/2317