Add patch to build with gcc 4.7

This commit is contained in:
Terje Rsten 2012-01-05 20:48:20 +01:00
parent 5c6d38fbea
commit fd850eb267
2 changed files with 17 additions and 1 deletions

View File

@ -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@ntnu.no> - 0.8.1-3
- Add patch to build with gcc 4.7
* Mon Oct 17 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-2
- Add cgdisk and fixparts

View File

@ -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>