On Thu, Mar 07, 2013 at 10:42:50PM +0100, Hilko Bengen wrote:
* Richard W.M. Jones:
> On Thu, Mar 07, 2013 at 07:59:24PM +0100, Hilko Bengen wrote:
>> Here are three patches that fix issues with out-of-tree building and
>> one that uses Ruby's own autoconf stuff for determining how Ruby
>> bindings should be built.
>
> Thanks for posting these, and if Debian are maintaining any
> out-of-tree patches that you think should go upstream, please post
> them any time you like!
Not sure. Some things still need to be installed to /usr/lib instead of
/usr/lib/<triple>, even with Debian's multiarch approach. In Debian,
Ruby packages are installed to the vendor_ruby path.
Is there anything I can do upstream to help with this?
> 2/4 gives me this failure:
>
> _guestfs.c: In function 'rb_hash_lookup':
> _guestfs.c:76:30: error: 'struct RHash' has no member named 'tbl'
> _guestfs.c:76:19: error: passing argument 3 of 'st_lookup' discards
> volatile' qualifier from pointer target type [-Werror]
> In file included from /usr/include/ruby/intern.h:34:0,
> from /usr/include/ruby/ruby.h:1382,
> from /usr/include/ruby.h:32,
> from _guestfs.c:31:
> /usr/include/ruby/st.h:114:5: note: expected 'st_data_t *' but
> argument is of type 'volatile VALUE *'
> cc1: all warnings being treated as errors
> make[3]: *** [_guestfs.o] Error 1
Fantastic. What version of Ruby is this? 1.9.3?
Indeed, it's 1.9.3:
ruby-1.9.3.392-29.fc18.x86_64
Debian is on 1.9.1 IIRC?
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org