0002-ruby-add-DGUESTFS_PRIVATE_FUNCTIONS-1-to-CFLAGS.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=175
This commit is contained in:
Olaf Hering 2013-01-02 18:06:10 +00:00 committed by Git OBS Bridge
parent 065556b434
commit 7e2206689e
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 3653dd53a449d2d34c498ac82d7cf7b5e69f554b Mon Sep 17 00:00:00 2001
From: Olaf Hering <olaf@aepfle.de>
Date: Wed, 2 Jan 2013 19:04:17 +0100
Subject: [PATCH 2/2] ruby: add -DGUESTFS_PRIVATE_FUNCTIONS=1 to CFLAGS
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
ruby/ext/guestfs/extconf.rb.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruby/ext/guestfs/extconf.rb.in b/ruby/ext/guestfs/extconf.rb.in
index 15259ea..808ff9e 100644
--- a/ruby/ext/guestfs/extconf.rb.in
+++ b/ruby/ext/guestfs/extconf.rb.in
@@ -30,7 +30,7 @@ unless have_library("guestfs", "guestfs_create", "guestfs.h")
end
$CFLAGS =
- "#{$CFLAGS} @CFLAGS@ -DGUESTFS_PRIVATE_FUNCTIONS=1 " <<
+ "#{$CFLAGS} @CFLAGS@ -DGUESTFS_PRIVATE_FUNCTIONS=1 -DGUESTFS_PRIVATE_FUNCTIONS=1" <<
"@WARN_CFLAGS@ @WERROR_CFLAGS@"
create_header
--
1.8.0.1

View File

@ -105,6 +105,7 @@ Group: System/Filesystems
Version: 1.20.1 Version: 1.20.1
Release: 0 Release: 0
Patch795503: 0001-daemon-copy-entire-lvm-directory.patch Patch795503: 0001-daemon-copy-entire-lvm-directory.patch
Patch0: 0002-ruby-add-DGUESTFS_PRIVATE_FUNCTIONS-1-to-CFLAGS.patch
Patch5: libguestfs-1.13.14-ruby.patch Patch5: libguestfs-1.13.14-ruby.patch
Patch1000: 1000-force-virtio_blk-in-old-guest-kernel.patch Patch1000: 1000-force-virtio_blk-in-old-guest-kernel.patch
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
@ -386,6 +387,7 @@ virtual machines.
%prep %prep
%setup -q -a 789653 %setup -q -a 789653
%patch795503 -p1 %patch795503 -p1
%patch0 -p1
%patch5 -p1 %patch5 -p1
%patch1000 -p1 %patch1000 -p1