Remove patches which are upstream.

This commit is contained in:
Richard W.M. Jones 2015-01-23 09:33:30 +00:00
parent c6db2d645c
commit 8a0b3320e3
3 changed files with 2 additions and 65 deletions

View File

@ -1,29 +0,0 @@
From 4f3c288a1bac741fbcc9a8cd790d30618093a03e Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sun, 18 Jan 2015 07:38:58 +0000
Subject: [PATCH] lua: Define luaL_checkint which was deprecated in lua 5.3.
---
generator/lua.ml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/generator/lua.ml b/generator/lua.ml
index c1fa6f0..f2aa8c7 100644
--- a/generator/lua.ml
+++ b/generator/lua.ml
@@ -54,6 +54,12 @@ let generate_lua_c () =
#endif
#endif
+#if LUA_VERSION_NUM >= 503
+#ifndef luaL_checkint
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
+#endif
+#endif
+
#include <guestfs.h>
#include \"guestfs-internal-frontend.h\"
--
2.2.1

View File

@ -1,25 +0,0 @@
From 5ab3a75e1dba7cacd45ff9a094bf27c517edd117 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sat, 17 Jan 2015 14:24:35 +0000
Subject: [PATCH] tests/lvm: Allow test-lvm-mapping.pl to be skipped.
---
tests/lvm/test-lvm-mapping.pl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/lvm/test-lvm-mapping.pl b/tests/lvm/test-lvm-mapping.pl
index 79a5bdd..2509231 100755
--- a/tests/lvm/test-lvm-mapping.pl
+++ b/tests/lvm/test-lvm-mapping.pl
@@ -22,6 +22,8 @@ use warnings;
use Sys::Guestfs;
+exit 77 if $ENV{SKIP_TEST_LVM_MAPPING_PL};
+
my $g = Sys::Guestfs->new ();
$g->add_drive_scratch (256 * 1024 * 1024);
--
2.1.0

View File

@ -25,19 +25,13 @@ Summary: Access and modify virtual machine disk images
Name: libguestfs
Epoch: 1
Version: 1.29.22
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
# Source and patches.
URL: http://libguestfs.org/
Source0: http://libguestfs.org/download/1.29-development/%{name}-%{version}.tar.gz
# Upstream patch to allow LVM test to be skipped in check section.
Patch1: 0001-tests-lvm-Allow-test-lvm-mapping.pl-to-be-skipped.patch
# Upstream patch which fixes LUA 5.3 (beta) in Rawhide.
Patch2: 0001-lua-Define-luaL_checkint-which-was-deprecated-in-lua.patch
# Basic build requirements:
BuildRequires: perl(Pod::Simple)
BuildRequires: perl(Pod::Man)
@ -736,9 +730,6 @@ for %{name}.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
if [ "$(getenforce | tr '[A-Z]' '[a-z]')" != "disabled" ]; then
# For sVirt to work, the local temporary directory we use in the
# tests must be labelled the same way as /tmp.
@ -1240,7 +1231,7 @@ popd
%changelog
* Thu Jan 22 2015 Richard W.M. Jones <rjones@redhat.com> - 1:1.29.22-1
* Thu Jan 22 2015 Richard W.M. Jones <rjones@redhat.com> - 1:1.29.22-2
- New upstream version 1.29.22.
- BR ounit (will be required for building >= 1.29.23).
- Disable FUSE tests because of a bug in Rawhide.