Accepting request 109809 from Base:System
- Add gptfdisk-gcc47.patch: Fix build with gcc 4.7. OBS-URL: https://build.opensuse.org/request/show/109809 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gptfdisk?expand=0&rev=2
This commit is contained in:
parent
1918932fc8
commit
9c9f9288bc
12
gptfdisk-gcc47.patch
Normal file
12
gptfdisk-gcc47.patch
Normal file
@ -0,0 +1,12 @@
|
||||
Index: gptfdisk-0.8.2/diskio-unix.cc
|
||||
===================================================================
|
||||
--- gptfdisk-0.8.2.orig/diskio-unix.cc
|
||||
+++ gptfdisk-0.8.2/diskio-unix.cc
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#include "linux/hdreg.h"
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 17 15:12:31 UTC 2012 - dimstar@opensuse.org
|
||||
|
||||
- Add gptfdisk-gcc47.patch: Fix build with gcc 4.7.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 22 00:00:00 UTC 2012 - rodsmith@rodsbooks.com
|
||||
|
||||
|
@ -22,10 +22,15 @@ License: GPL-2.0
|
||||
Group: Applications/System
|
||||
Url: http://rodsbooks.com/gdisk
|
||||
Source: http://rodsbooks.com/gdisk/gptfdisk-0.8.2.tar.gz
|
||||
Patch0: gptfdisk-gcc47.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
BuildRequires: e2fsprogs-devel gcc-c++ libicu-devel libuuid-devel
|
||||
BuildRequires: ncurses-devel popt-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: pkgconfig(icu-io)
|
||||
BuildRequires: pkgconfig(icu-uc)
|
||||
BuildRequires: pkgconfig(popt)
|
||||
BuildRequires: pkgconfig(uuid)
|
||||
|
||||
%description
|
||||
Partitioning software for GPT disks and to repair MBR disks. The
|
||||
@ -57,6 +62,7 @@ provides a few additional partition manipulation features.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
CFLAGS="%optflags" CXXFLAGS="%optflags" make %{?_smp_mflags}
|
||||
|
Loading…
Reference in New Issue
Block a user