Sync from SUSE:SLFO:Main procmail revision 6babc1a7027daa8c0dbcb5cd4081d077
This commit is contained in:
parent
94bd9561c0
commit
acec15f07f
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 29 14:34:26 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Use %patch -P N instead of deprecated %patchN.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 3 08:06:34 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Update reproducible.patch to drop more benchmarking (boo#1041534)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 9 09:09:55 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
@ -52,16 +52,16 @@ for p in ../procmail-%{version}-patches/* ; do
|
||||
echo Patch $p
|
||||
patch -s -p1 --fuzz=0 < $p
|
||||
done
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6
|
||||
%patch8 -p1
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch -P 0
|
||||
%patch -P 1
|
||||
%patch -P 2
|
||||
%patch -P 3
|
||||
%patch -P 4
|
||||
%patch -P 5
|
||||
%patch -P 6
|
||||
%patch -P 8 -p1
|
||||
%patch -P 10 -p1
|
||||
%patch -P 11 -p1
|
||||
sed -ri '\@^/\*@,\@\*/@{ s@^(/\*[^*]*)(/\*)@\1\*/ \2@; }' config.h
|
||||
sed -ri '\@^/\*@,\@\*/@{ s@^(/\*[^*]*)(/\*)@\1\*/ \2@; }' src/includes.h
|
||||
sed -ri '\@^#.*[[:blank:]]+/\*[^/]*$@M,\@\*/$@{ s@(^[[:blank:]]+)/\*@\1 @;}' src/includes.h
|
||||
|
@ -1,16 +1,38 @@
|
||||
Index: procmail-3.22/src/autoconf
|
||||
===================================================================
|
||||
---
|
||||
src/autoconf | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
https://bugzilla.opensuse.org/show_bug.cgi?id=1041534
|
||||
|
||||
--- a/src/autoconf
|
||||
+++ b/src/autoconf 2023-08-09 08:57:47.506347981 +0000
|
||||
@@ -1251,7 +1251,7 @@ int main(argc,argv)int argc;const char*a
|
||||
/* Your system's strstr() is %.2f times %sER than my C-routine */\n",
|
||||
syscnt>=iter?(double)syscnt/iter:(double)iter/syscnt,
|
||||
syscnt>=iter?"SLOW":"FAST");
|
||||
Avoid benchmarking the build machine
|
||||
to determine compilation results
|
||||
|
||||
Index: procmail-3.24/src/autoconf
|
||||
===================================================================
|
||||
--- procmail-3.24.orig/src/autoconf
|
||||
+++ procmail-3.24/src/autoconf
|
||||
@@ -951,6 +951,7 @@ void*realloc(),*malloc();
|
||||
#endif
|
||||
int main()
|
||||
{ char*p=malloc(1),*q=0;
|
||||
+#if 0
|
||||
size_t len,last,max=BLKSIZ*64; /* 1M on non-SMALLHEAP systems */
|
||||
int count=0;
|
||||
for(last=len=INITIAL;len<=max+INITIAL;len+=BLKSIZ)
|
||||
@@ -968,6 +969,7 @@ int main()
|
||||
{ puts("#define INEFFICIENTrealloc");
|
||||
exit(1);
|
||||
}
|
||||
+#endif
|
||||
exit(0);
|
||||
}
|
||||
HERE
|
||||
@@ -1248,10 +1250,9 @@ int main(argc,argv)int argc;const char*a
|
||||
if(!iter)
|
||||
iter=1;
|
||||
printf("\
|
||||
-/* Your system's strstr() is %.2f times %sER than my C-routine */\n",
|
||||
- syscnt>=iter?(double)syscnt/iter:(double)iter/syscnt,
|
||||
- syscnt>=iter?"SLOW":"FAST");
|
||||
- if(syscnt>iter+iter/16) /* if at least 1.0625 times slower */
|
||||
+/* Your system's strstr() is %sER than my C-routine */\n",
|
||||
+ "FAST");
|
||||
+ if(0) /* always use system strstr to have reproducible binaries */
|
||||
printf("\
|
||||
#define SLOWstrstr\t\t\t /* using my substitute instead */\n");
|
||||
|
Loading…
Reference in New Issue
Block a user