[fastx_toolkit] Fix compilation with GCC 4.7
verdurin
verdurin at fedoraproject.org
Mon Jan 9 11:12:46 UTC 2012
commit ab12ea2989515ff7b9e9383abbfac76ace7b7007
Author: Adam Huffman <bloch at verdurin.com>
Date: Mon Jan 9 11:12:34 2012 +0000
Fix compilation with GCC 4.7
fastx_toolkit-gcc47.patch | 10 ++++++++++
fastx_toolkit.spec | 13 +++++++++----
2 files changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/fastx_toolkit-gcc47.patch b/fastx_toolkit-gcc47.patch
new file mode 100644
index 0000000..2fda463
--- /dev/null
+++ b/fastx_toolkit-gcc47.patch
@@ -0,0 +1,10 @@
+--- fastx_toolkit-0.0.13/src/libfastx/sequence_alignment.h 2010-01-29 22:32:21.000000000 +0000
++++ fastx_toolkit-0.0.13.new/src/libfastx/sequence_alignment.h 2012-01-09 11:09:36.142686410 +0000
+@@ -19,6 +19,7 @@
+ #define __SEQUENCE_ALIGNMENT_HEADER__
+
+ #include <err.h>
++#include <unistd.h>
+
+ struct SequenceAlignmentResults
+ {
diff --git a/fastx_toolkit.spec b/fastx_toolkit.spec
index 01b8ef3..2ba08bb 100644
--- a/fastx_toolkit.spec
+++ b/fastx_toolkit.spec
@@ -1,12 +1,13 @@
Name: fastx_toolkit
Version: 0.0.13
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Tools to process short-reads FASTA/FASTQ files
Group: Applications/Engineering
License: AGPLv3+
-URL: http://hannonlab.cshl.edu/fastx_toolkit/index.html
-Source0: http://hannonlab.cshl.edu/fastx_toolkit/fastx_toolkit-0.0.13.tar.bz2
+URL: http://hannonlab.cshl.edu/%{name}/index.html
+Source0: http://hannonlab.cshl.edu/%{name}/%{name}-0.0.13.tar.bz2
+Patch0: %{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libgtextutils-devel
@@ -49,7 +50,8 @@ annotations, profiling metagenomic samples and much more.
%prep
%setup -q
-
+#Patch to fix compilation with GCC 4.7
+%patch0 -p1 -b .%{name}-gcc47.patch
%build
%configure
@@ -83,6 +85,9 @@ rm -rf %{buildroot}
%{_datadir}/%{name}
%changelog
+* Mon Jan 9 2012 Adam Huffman <verdurin at fedoraproject.org> - 0.0.13-5
+- fix compilation with GCC 4.7
+
* Fri May 27 2011 Adam Huffman <bloch at verdurin.com> - 0.0.13-4
- fix ownership of /usr/share/fastx_toolkit
More information about the scm-commits
mailing list