Project

General

Profile

Actions

Backport #6052

closed

please add vendorarchdir and vendorlibdir to ruby.pc

Added by ellson (John Ellson) about 12 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
[ruby-core:42766]

Description

(originally reported in: https://bugzilla.redhat.com/show_bug.cgi?id=789532
this issue separates the issue of vendorarchdir from the ruby-1.9.pc -> ruby.pc renaming issue).

[John Ellson]
The current ruby-1.9.pc doesn't provide a value for "vendorarchdir"
and so is insufficient for packages like graphviz to build ruby extensions
without still resorting to ruby's (ever changing) RbConfig (nee: Config)
mechanism.

[Bohuslav "Slavek" Kabrda]

  • Defining vendorarchdir and vendorlibdir is not a problem but how would it
    solve the problem with graphviz? And how would you propose to use these -
    passing them as additional Cflags?

[John Ellson]
No, not Cflags. The value is need for installation, not compilation.

Assuming ruby.pc contains a line like:
vendorarchdir=${libdir}/ruby/vendor_ruby

configure.ac would extract it by using something like:
PKG_CHECK_MODULES(RUBY, [ruby >= 1.9],[
RUBY_INSTALL_DIR=pkg-config --variable vendorarchdir ruby
AC_SUBST([RUBY_INSTALL_DIR])
],[
#deal with pre 1.9 ruby's
])


Related issues 1 (0 open1 closed)

Related to Backport193 - Backport #6051: Rename ruby-1.9.pc to ruby.pcClosed02/21/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0