Project

General

Profile

Actions

Bug #6667

closed

Package config does not include a reference to the /usr/include/x86_64-linux

Added by mcpierce (Darryl Pierce) almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Backport:
[ruby-core:45955]

Description

(this bug description is taken from the Fedora ticket about this issue: https://bugzilla.redhat.com/show_bug.cgi?id=830234)

Description of problem:

There needs to be a reference in the package config file to the architecture-specific directory; i.e., /usr/include/x86_64-linux on 64bit systsems.

When trying to build using cmake, for example, the discovery portion only finds the reference to /usr/include. However, there are header files in /usr/include/x86_64-linux that are necessary but which are not being pointed to by the config file.

Version-Release number of selected component (if applicable):

mcpierce@mcpierce-laptop:~ $ rpm -q ruby-devel
ruby-devel-1.9.3.194-10.1.fc17.x86_64

How reproducible:

100%

Steps to Reproduce:

  1. Create a cmake project that depends on Ruby.
  2. Use the cmake command to generate Makefiles.
  3. Use make to build.

Actual results:

The following results, which are due to pkgconfig not telling cmake about the platform-specific header location:

Scanning dependencies of target cqpid_ruby
[ 93%] Building CXX object bindings/qpid/ruby/CMakeFiles/cqpid_ruby.dir/rubyRUBY_wrap.o
In file included from /usr/include/ruby.h:32:0,
from /home/mcpierce/Programming/Qpid/cmake/bindings/qpid/ruby/rubyRUBY_wrap.cxx:856:
/usr/include/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
compilation terminated.
make[2]: *** [bindings/qpid/ruby/CMakeFiles/cqpid_ruby.dir/rubyRUBY_wrap.o] Error 1
make[1]: *** [bindings/qpid/ruby/CMakeFiles/cqpid_ruby.dir/all] Error 2
make: *** [all] Error 2

Expected results:

Compilation to complete successfully.

Additional info:

Updated by kosaki (Motohiro KOSAKI) almost 12 years ago

  • Status changed from Open to Rejected

A header location is decided by distros, not ruby project. Include path is decided from CMake, not ruby project. I don't think we can help you.

Updated by mcpierce (Darryl Pierce) almost 12 years ago

The problem turns out to have been in our Cmake build environment and not in the way it interacted with Ruby.

Updated by vo.x (Vit Ondruch) almost 12 years ago

kosaki (Motohiro KOSAKI) wrote:

A header location is decided by distros, not ruby project. Include path is decided from CMake, not ruby project. I don't think we can help you.

Of course for distribution, there is possible to use --with-rubyhdrdir configuration option to specify header location, but the arch specific header location is not in hands of distribution. This is "hardcoded" by Ruby. So why not publish it in packageconfig?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0