Fix FTBFS

This commit is contained in:
Jon Ciesla 2016-02-25 10:43:08 -05:00
parent 00cafc302d
commit a0f3113b4c
2 changed files with 17 additions and 1 deletions

11
gource-gcc6.patch Normal file
View File

@ -0,0 +1,11 @@
--- src/dirnode.cpp~ 2014-10-15 22:23:22.000000000 -0400
+++ src/dirnode.cpp 2016-02-25 10:11:26.838675629 -0500
@@ -582,7 +582,7 @@
//this->dir_radius_sqrt = sqrt(dir_radius); //dir_radius_sqrt is not used
// this->parent_radius = std::max(1.0, parent_circ / PI);
- this->parent_radius = std::max(1.0, sqrt(total_file_area) * gGourceDirPadding);
+ this->parent_radius = (1.0) > (sqrt(total_file_area) * gGourceDirPadding) ? (1.0) : (sqrt(total_file_area) * gGourceDirPadding);
}
float RDirNode::distanceToParent() const{

View File

@ -1,9 +1,10 @@
Summary: Software version control visualization
Name: gource
Version: 0.43
Release: 8%{?dist}
Release: 9%{?dist}
URL: http://gource.googlecode.com/
Source: https://github.com/acaudwell/Gource/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0: gource-gcc6.patch
License: GPLv3+
Group: Applications/Productivity
@ -34,6 +35,7 @@ files and directories.
%prep
%setup -q
%patch0 -p0
sed -i.cp -e 's|cp |cp -p |' Makefile.in
rm -r src/tinyxml
@ -54,6 +56,9 @@ rm -rf %{buildroot}/%{_datadir}/%{name}/fonts
%{_datadir}/gource/*
%changelog
* Thu Feb 25 2016 Jon Ciesla <limburgher@gmail.com> - 0.43-9
- Fix FTBFS.
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.43-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild