[gdisk] Add patch to build with gcc 4.7
terjeros
terjeros at fedoraproject.org
Thu Jan 5 19:46:14 UTC 2012
commit fd850eb2677e8ea4a156a3e8295dbe6a0fb63065
Author: Terje Røsten <terje.rosten at ntnu.no>
Date: Thu Jan 5 20:48:20 2012 +0100
Add patch to build with gcc 4.7
gdisk.spec | 7 ++++++-
gptfdisk-0.8.1-gcc47.patch | 11 +++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/gdisk.spec b/gdisk.spec
index 69b20d6..034600c 100644
--- a/gdisk.spec
+++ b/gdisk.spec
@@ -1,11 +1,12 @@
Summary: An fdisk-like partitioning tool for GPT disks
Name: gdisk
Version: 0.8.1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2
URL: http://www.rodsbooks.com/gdisk/
Group: System Environment/Base
Source0: http://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz
+Patch0: gptfdisk-0.8.1-gcc47.patch
BuildRequires: popt-devel
BuildRequires: libicu-devel
BuildRequires: libuuid-devel
@@ -19,6 +20,7 @@ tables, and the ability to convert MBR disks to GPT format.
%prep
%setup -q -n gptfdisk-%{version}
+%patch0 -p1
chmod 0644 gdisk_test.sh
%build
@@ -47,6 +49,9 @@ done
%{_mandir}/man8/fixparts.8*
%changelog
+* Thu Jan 05 2012 Terje Rosten <terje.rosten at ntnu.no> - 0.8.1-3
+- Add patch to build with gcc 4.7
+
* Mon Oct 17 2011 Terje Rosten <terje.rosten at ntnu.no> - 0.8.1-2
- Add cgdisk and fixparts
diff --git a/gptfdisk-0.8.1-gcc47.patch b/gptfdisk-0.8.1-gcc47.patch
new file mode 100644
index 0000000..392ef4a
--- /dev/null
+++ b/gptfdisk-0.8.1-gcc47.patch
@@ -0,0 +1,11 @@
+--- gptfdisk-0.8.1/diskio-unix.cc~ 2011-10-01 23:52:33.000000000 +0200
++++ gptfdisk-0.8.1/diskio-unix.cc 2012-01-05 10:14:49.440260712 +0100
+@@ -19,6 +19,7 @@
+ #include <string.h>
+ #include <string>
+ #include <stdint.h>
++#include <unistd.h>
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <sys/stat.h>
+
More information about the scm-commits
mailing list