RPM

AutoFu --with-ruby with ruby-1.9.2p0 isn't right

Bug #643909 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
In Progress
Low
Jeff Johnson

Bug Description

The AutoFu to build against ruby-1.9.2p0 isn't correct building rpm-5.3.4.

For starters, ruby-1.9.2p0 needs the ruby_bind_static patch is needed from here:
    http://redmine.ruby-lang.org/issues/show/2294

You will need to edit/install scripts/ruby-config someplace in PATH to
hint the --cppflags and --libs parameters to the RPM_CHECK_LIB m4 macro.

You will also need (if building from cvs) this patch:

Index: configure.ac
===================================================================
RCS file: /v/rpm/cvs/rpm/configure.ac,v
retrieving revision 2.432.2.17
diff -p -u -w -r2.432.2.17 configure.ac
--- configure.ac 20 Sep 2010 21:39:49 -0000
+++ configure.ac 19 Sep 2010 03:28:51 -0000 2.432.2.17
@@ -1486,7 +1486,7 @@ dnl # Ruby
 WITH_RUBY_SUBDIR=""
 RPM_CHECK_LIB(
     [Ruby], [ruby],
- [ruby], [ruby_init], [ruby.h],
+ [ruby-static], [ruby_init], [ruby.h],
     [no,external:none], [],
     [ AC_DEFINE(WITH_RUBYEMBED, 1, [Define to 1 if you want embedded Ruby])
       WITH_RUBY_SUBDIR=ruby

At that point this line in devtool.conf SHOULD build with embedded ruby-1.9.2p0:
    --with-ruby=/your/rubyprefix/here

Note that ruby-1.9.2p0 isn't really ready for use in rpm-5.3.4 yet ... expect difficulties.

Jeff Johnson (n3npq)
Changed in rpm:
status: New → In Progress
assignee: nobody → Jeff Johnson (n3npq)
importance: Undecided → Low
milestone: none → 5.3.5
tags: added: rpm-embed-ruby
Jeff Johnson (n3npq)
Changed in rpm:
milestone: 5.3.5 → 5.3.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.