[alure] Fix for gcc 4.7

Bruno Wolff III bruno at fedoraproject.org
Tue Jan 31 05:33:24 UTC 2012


commit 3545ee1b85ee1157d7878487b8fe60cd4dfc1f3f
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Mon Jan 30 23:31:42 2012 -0600

    Fix for gcc 4.7
    
    unistd.h isn't included in some places that it was in previous versions
    of gcc.

 alure-gcc47.patch |   11 +++++++++++
 alure.spec        |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/alure-gcc47.patch b/alure-gcc47.patch
new file mode 100644
index 0000000..175b2c1
--- /dev/null
+++ b/alure-gcc47.patch
@@ -0,0 +1,11 @@
+--- include/main.h.orig	2012-01-30 23:27:53.230334632 -0600
++++ include/main.h	2012-01-30 23:28:26.241530184 -0600
+@@ -4,6 +4,8 @@
+ #include "AL/alure.h"
+ #include "alext.h"
+ 
++#include <unistd.h>
++
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
diff --git a/alure.spec b/alure.spec
index 2634654..de53aac 100644
--- a/alure.spec
+++ b/alure.spec
@@ -1,12 +1,13 @@
 Name:           alure
 Version:        1.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Audio Library Tools REloaded
 Group:          System Environment/Libraries
 # ALURE code is LGPLv2+; note -devel subpackage has its own license tag
 License:        LGPLv2+ 
 URL:            http://kcat.strangesoft.net/alure.html
 Source0:        http://kcat.strangesoft.net/%{name}-releases/%{name}-%{version}.tar.bz2
+Patch0:         alure-gcc47.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  cmake, libvorbis-devel, libsndfile-devel, openal-soft-devel, flac-devel, dumb-devel, fluidsynth-devel
 
@@ -33,6 +34,7 @@ developing applications that use %{name}.
 
 %prep
 %setup -q 
+%patch0
 
 
 %build
@@ -74,6 +76,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon Jan 30 2012 Bruno Wolff III <bruno at wolff.to> - 1.2-3
+- Fix for gcc 4.7
+
 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list