[med-svn] r22340 - trunk/packages/rostlab/proftmb/trunk/debian/patches

Gert Wollny gert-guest at moszumanska.debian.org
Mon Jul 4 12:36:18 UTC 2016


Author: gert-guest
Date: 2016-07-04 12:36:17 +0000 (Mon, 04 Jul 2016)
New Revision: 22340

Added:
   trunk/packages/rostlab/proftmb/trunk/debian/patches/gcc-6.patch
Modified:
   trunk/packages/rostlab/proftmb/trunk/debian/patches/series
Log:
Add patch to fix compilation with gcc-6

Added: trunk/packages/rostlab/proftmb/trunk/debian/patches/gcc-6.patch
===================================================================
--- trunk/packages/rostlab/proftmb/trunk/debian/patches/gcc-6.patch	                        (rev 0)
+++ trunk/packages/rostlab/proftmb/trunk/debian/patches/gcc-6.patch	2016-07-04 12:36:17 UTC (rev 22340)
@@ -0,0 +1,24 @@
+Description: Fix compilation with gcc-6
+Author: Gert Wollny <gw.fossdev at gmail.com>
+Forwarded: No
+Debian-Bug: https://bugs.debian.org/811830
+
+--- a/src/proftmb.cpp
++++ b/src/proftmb.cpp
+@@ -163,14 +163,14 @@
+ 		if( *OutPretty ) FileName << OutPretty; else FileName << "/dev/null";
+ 	} else FileName<<OutPrefix<<"_proftmb_pretty.txt";
+ 	ofstream TS(FileName.str().c_str());
+-	if (!TS) { cerr<<"Couldn't open Output file "<<FileName<<": "<< strerror(errno) <<endl; return 1; }
++	if (!TS) { cerr<<"Couldn't open Output file "<<FileName.str()<<": "<< strerror(errno) <<endl; return 1; }
+ 
+ 	FileName.str("");
+ 	if( OutTab ) {
+ 		if( *OutTab ) FileName << OutTab; else FileName << "/dev/null";
+ 	} else FileName<<OutPrefix<<"_proftmb_tabular.txt";
+ 	ofstream TStab(FileName.str().c_str());
+-	if (!TStab) { cerr<<"Couldn't open Output file "<<FileName<<": "<< strerror(errno) <<endl; return 1; }
++	if (!TStab) { cerr<<"Couldn't open Output file "<<FileName.str()<<": "<< strerror(errno) <<endl; return 1; }
+ 
+ 	FileName.str("");
+ 	char Datfile[1000] = "/dev/null"; Datfile[9] = 0; Datfile[999] = 0;

Modified: trunk/packages/rostlab/proftmb/trunk/debian/patches/series
===================================================================
--- trunk/packages/rostlab/proftmb/trunk/debian/patches/series	2016-07-04 12:32:56 UTC (rev 22339)
+++ trunk/packages/rostlab/proftmb/trunk/debian/patches/series	2016-07-04 12:36:17 UTC (rev 22340)
@@ -1 +1,2 @@
 avoid-dnl-in-makefiles.diff
+gcc-6.patch




More information about the debian-med-commit mailing list