ruby 2 question

Mamoru TASAKA mtasaka at fedoraproject.org
Thu Mar 14 14:36:50 UTC 2013


Hello:

Orion Poplawski wrote, at 03/14/2013 07:58 AM +9:00:
> I get the following build (actually install) error building mysql-ruby:
>
> Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.D2sqcQ
> + umask 022
> + cd /builddir/build/BUILD
> + '[' /builddir/build/BUILDROOT/ruby-mysql-2.8.2-9.fc20.i386 '!=' / ']'
> + rm -rf /builddir/build/BUILDROOT/ruby-mysql-2.8.2-9.fc20.i386
> ++ dirname /builddir/build/BUILDROOT/ruby-mysql-2.8.2-9.fc20.i386
> + mkdir -p /builddir/build/BUILDROOT
> + mkdir /builddir/build/BUILDROOT/ruby-mysql-2.8.2-9.fc20.i386
> + cd mysql-ruby-2.8.2
> + rm -rf /builddir/build/BUILDROOT/ruby-mysql-2.8.2-9.fc20.i386
> + env DESTDIR=/builddir/build/BUILDROOT/ruby-mysql-2.8.2-9.fc20.i386 make install
> make: *** No rule to make target `/builddir/build/BUILDROOT/ruby-mysql-2.8.2-9.fc20.i386/usr/include/ruby.h', needed by `mysql.o'.  Stop.
>
>
> What the heck?  mysql-ruby does nothing but:
>
> mysql.c:#include <ruby.h>
>

Well, this is actually mkmf.rb creating somewhat broken Makefile (from ruby 2.0.0).
You can workaround this with something like

make install DESTDIR=%{buildroot} ruby_headers=

... but this is annoying. Orion, would you file a ticket? Vít, any idea?
(perhaps lib/mkmf.rb or tool/mkconfig.rb or so needs fixing)

Regards,
Mamoru





More information about the devel mailing list