File reproducible.patch of Package graphviz

Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2018-07-30

https://bugzilla.opensuse.org/show_bug.cgi?id=1041534

Do not have binaries depend on build system timings
because we are building in VMs anyway
and users might have different hardware

Will always use the system's memchr and memccpy functions.

Index: graphviz-2.38.0/lib/sfio/features/sfio
===================================================================
--- graphviz-2.38.0.orig/lib/sfio/features/sfio
+++ graphviz-2.38.0/lib/sfio/features/sfio
@@ -79,7 +79,7 @@ lib memchr note{ see if memchr is fast }
 		t2 = (etm2.tms_utime - stm2.tms_utime) +
 		     (etm2.tms_stime - stm2.tms_stime);
 	
-		return t1 < t2 ? 0 : 1;
+		return 0;
 	}
 }end
 
@@ -120,7 +120,7 @@ lib memccpy note{ see if memccpy is fast
 		t2 = (etm2.tms_utime - stm2.tms_utime) +
 		     (etm2.tms_stime - stm2.tms_stime);
 	
-		return t1 < t2 ? 0 : 1;
+		return 0;
 	}
 }end
 
@@ -250,9 +250,7 @@ tst	output{
 
 		unlink(file);
 	
-		if(4*mmtm <= 3*rdtm)		/* mmap is great! */
-			printf("#define _mmap_worthy	2	\n");
-		else if(4*mmtm <= 5*rdtm)	/* mmap is good	*/
+			/* mmap is good	*/
 			printf("#define _mmap_worthy	1	\n");
 	
 		return 0;
openSUSE Build Service is sponsored by