From d452806999fe094074a93ba9b445dc576a9ccc5d05eb3467ace2de7013d7daa2 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 31 Aug 2012 19:39:27 +0000 Subject: [PATCH] reenable ruby bindings, apply patch to fix failure in 11.4 and 12.1 happens to work in sles11sp2 and 12.2 for some reason OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=44 --- libguestfs-1.13.14-ruby.patch | 21 ++++++++++++++------- libguestfs.spec | 3 ++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/libguestfs-1.13.14-ruby.patch b/libguestfs-1.13.14-ruby.patch index d491bef..8b4e7f6 100644 --- a/libguestfs-1.13.14-ruby.patch +++ b/libguestfs-1.13.14-ruby.patch @@ -1,15 +1,22 @@ -Index: ruby/Makefile.am +[ 478s] ERROR: RPATH "/usr/src/packages/BUILD/libguestfs-1.19.36/src/.libs" on /usr/src/packages/BUILDROOT/libguestfs-1.19.36-0.x86_64/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/_guestfs.so is not allowed +[ 478s] ERROR: RPATH "/usr/src/packages/BUILD/libguestfs-1.19.36/src/.libs" on /usr/src/packages/BUILDROOT/libguestfs-1.19.36-0.x86_64/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/_guestfs.so is not allowed + +--- + ruby/Makefile.am | 4 ++++ + 1 file changed, 4 insertions(+) + +Index: libguestfs-1.19.36/ruby/Makefile.am =================================================================== ---- ruby/Makefile.am.orig -+++ ruby/Makefile.am -@@ -53,6 +53,10 @@ TESTS_ENVIRONMENT = \ +--- libguestfs-1.19.36.orig/ruby/Makefile.am ++++ libguestfs-1.19.36/ruby/Makefile.am +@@ -53,6 +53,10 @@ TESTS_ENVIRONMENT = $(top_builddir)/run all: $(generator_built) - rake build + $(RAKE) build + sed -i 's|-Wl,-R\ -Wl,\$$(libdir)||' $(top_builddir)/ruby/ext/guestfs/Makefile + sed -i 's|-Wl,-R\$$(libdir)||' $(top_builddir)/ruby/ext/guestfs/Makefile + sed -i 's|-Wl,-R[^[:blank:]]*/src/.libs||' $(top_builddir)/ruby/ext/guestfs/Makefile + make -C $(top_builddir)/ruby/ext/guestfs clean all - rake rdoc + $(RAKE) rdoc - RUBY_SITELIB := $(shell ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") + RUBY_SITELIB := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']") diff --git a/libguestfs.spec b/libguestfs.spec index 1664632..bdd0438 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -20,7 +20,7 @@ %define with_ocaml 1 %define with_python 1 %define with_perl 1 -%define with_ruby 0 +%define with_ruby 1 %define with_fuse 1 # # All modifications and additions to the file contributed by third parties @@ -290,6 +290,7 @@ virtual machines. %setup -q %patch1 -p1 %patch2 -p1 +%patch5 -p1 %patch101 -p1 %build