components/procmail/patches/07-use-libc-strstr.patch
changeset 5682 94c0ca64c022
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
       
     1 Avoid procmail's benchmark-based selection between private strstr and libc
       
     2 strstr which can change based on "benchmark" performance during build.
       
     3 
       
     4 A bug should be filed upstream to suggest that this check be removed or that
       
     5 some way to override it be provided for reproducible builds.
       
     6 diff -ru procmail-3.22/src/autoconf procmail-3.22/src/autoconf
       
     7 --- procmail-3.22/src/autoconf	2016-02-17 11:40:24.573974151 -0800
       
     8 +++ procmail-3.22/src/autoconf	2016-02-17 11:39:46.707737313 -0800
       
     9 @@ -1228,7 +1228,7 @@
       
    10  	 syscnt>=iter?"SLOW":"FAST");
       
    11  	if(syscnt>iter+iter/16)		  /* if at least 1.0625 times slower */
       
    12  	   printf("\
       
    13 -#define SLOWstrstr\t\t\t      /* using my substitute instead */\n");
       
    14 +/* #define SLOWstrstr */\t\t\t      /* NOT using my substitute instead */\n");
       
    15        }
       
    16       else
       
    17  	printf("/* Insufficient memory to perform the benchmark! */\n");