procmail: Upgrade to 3.24
PATCH 1/1 procmail: Upgrade to 3.24
Drop patches to support newer toolchains added overtime Add consolidated patch to support cross compiling Use github for SRC_URI
Signed-off-by Khem Raj <[email protected]>
---
.../0001-fix-too-many-arguments-issue.patch | 88 ---
.../procmail/0001-fix-uname-declaration.patch | 27 -
.../procmail/procmail/CVE-2014-3618.patch | 29 -
.../procmail/procmail/CVE-2017-16844.patch | 20 -
.../from-debian-to-fix-compile-errors.patch | 608 ------------------
.../from-debian-to-fix-man-file.patch | 85 ---
.../from-debian-to-modify-parameters.patch | 129 ----
.../procmail/procmail/gcc14.patch | 127 ----
.../man-file-mailstat.1-from-debian.patch | 62 --
.../procmail-3.24-consolidated_fixes-1.patch | 253 ++++++++
.../{procmail_3.22.bb => procmail_3.24.bb} | 30 +-
11 files changed, 264 insertions(+), 1194 deletions(-)
delete mode 100644 meta-oe/recipes-support/procmail/procmail/0001-fix-too-many-arguments-issue.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/0001-fix-uname-declaration.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/CVE-2014-3618.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/CVE-2017-16844.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/from-debian-to-fix-compile-errors.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/from-debian-to-fix-man-file.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/from-debian-to-modify-parameters.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/gcc14.patch
delete mode 100644 meta-oe/recipes-support/procmail/procmail/man-file-mailstat.1-from-debian.patch
create mode 100644 meta-oe/recipes-support/procmail/procmail/procmail-3.24-consolidated_fixes-1.patch
rename meta-oe/recipes-support/procmail/{procmail_3.22.bb => procmail_3.24.bb} (50%)meta-oe/recipes-support/procmail/procmail/0001-fix-too-many-arguments-issue.patch deleted +0 -88
@@ -1,88 +0,0 @@ -From 6f00795de8623347580c4366cb517a6653f73ca4 Mon Sep 17 00:00:00 2001 -From: Liu Yiding <[email protected]> -Date: Mon, 9 Jun 2025 08:01:39 +0000 -Subject: [PATCH] fix too many arguments issue - -fix issue like: -| procmail.c:76:12: error: too many arguments to function 'auth_finduid'; expected 0, have 2 -| 76 | if(tpass=auth_finduid(uid,0)) /* save by copying */ -| | ^~~~~~~~~~~~ ~~~ -| In file included from procmail.c:36: -| authenticate.h:15:3: note: declared here -| 15 | *auth_finduid Q((const uid_t uid,const int sock)); -| -- -| procmail.c:212:9: error: too many arguments to function 'checkprivFrom_'; expected 0, have 3 -| 212 | checkprivFrom_(euid,passinvk?auth_username(passinvk):0,override); -| | ^~~~~~~~~~~~~~ ~~~~ -| In file included from procmail.c:41: -| from.h:9:2: note: declared here -| 9 | checkprivFrom_ Q((uid_t euid,const char*logname,int override)); -| -- -| procmail.c:213:9: error: too many arguments to function 'doumask'; expected 0, have 1 -| 213 | doumask(INIT_UMASK); /* allowed to set the From_ line? */ -| | ^~~~~~~ -| In file included from procmail.c:23: -| robust.h:12:2: note: declared here -| 12 | doumask Q((const mode_t mask)); - -Upstream-Status: Submitted [https://github.com/BuGlessRB/procmail/pull/11] -Signed-off-by: Liu Yiding <[email protected]> ---- - src/authenticate.h | 2 +- - src/exopen.c | 2 +- - src/includes.h | 2 +- - src/misc.h | 1 + - 4 files changed, 4 insertions(+), 3 deletions(-) - -diff --git a/src/authenticate.h b/src/authenticate.h -index be9d88d..31e665a 100644 ---- a/src/authenticate.h -+++ b/src/authenticate.h -@@ -7,7 +7,7 @@ typedef struct auth_identity auth_identity; - - #ifndef P - #define P(x) x --#define Q(x) () -+#define Q(x) x - #endif - - /*const*/auth_identity -diff --git a/src/exopen.c b/src/exopen.c -index c7647e5..46e3467 100644 ---- a/src/exopen.c -+++ b/src/exopen.c -@@ -51,7 +51,7 @@ static const char*safehost P((void)) /* return a hostname safe for filenames */ - return sname; - } - --int unique(full,p,len,mode,verbos,flags)char*const full;char*p; -+int unique(full,p,len,mode,verbos,flags)const char*const full;char*p; - const size_t len;const mode_t mode;const int verbos,flags; - { static const char s2c[]=".,+%";static int serial=STRLEN(s2c); - static time_t t;char*dot,*end,*host;struct stat filebuf; -diff --git a/src/includes.h b/src/includes.h -index 7d6b41f..134805b 100644 ---- a/src/includes.h -+++ b/src/includes.h -@@ -530,7 +530,7 @@ extern void*memmove(); - * problems caused by one of those types being shorter than int and thereby - * being passed differently under ANSI rules. - */ --#define Q(args) () -+#define Q(args) args - - #ifdef oBRAIN_DAMAGE - #undef oBRAIN_DAMAGE -diff --git a/src/misc.h b/src/misc.h -index 4f62ebc..659dfcb 100644 ---- a/src/misc.h -+++ b/src/misc.h -@@ -1,4 +1,5 @@ - /*$Id: misc.h,v 1.56 2001/06/30 01:14:19 guenther Exp $*/ -+#include "authenticate.h" - - struct dyna_array{int filled,tspace;char*vals;}; - union offori{off_t o;int i;}; --- -2.43.0 -
meta-oe/recipes-support/procmail/procmail/0001-fix-uname-declaration.patch deleted +0 -27
@@ -1,27 +0,0 @@ -From a9e57d4048c94f6bc2533ccc41e6c35d4416571a Mon Sep 17 00:00:00 2001 -From: Liu Yiding <[email protected]> -Date: Mon, 9 Jun 2025 06:44:06 +0000 -Subject: [PATCH] fix uname declaration - -Upstream-Status: Submitted [https://github.com/BuGlessRB/procmail/pull/11] -Signed-off-by: Liu Yiding <[email protected]> ---- - src/includes.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/includes.h b/src/includes.h -index 4466907..7d6b41f 100644 ---- a/src/includes.h -+++ b/src/includes.h -@@ -331,7 +331,7 @@ extern int errno; - - #ifndef NOuname - #ifndef P /* SINIX V5.23 has the wrong prototype for uname() */ --extern int uname(); /* so we fix it :-) */ -+extern int uname(struct utsname *); - #define Uname(name) ((int(*)(struct utsname*))uname)(name) - #else - #define Uname(name) uname(name) /* no fix needed */ --- -2.43.0 -
meta-oe/recipes-support/procmail/procmail/CVE-2014-3618.patch deleted +0 -29
@@ -1,29 +0,0 @@ -Description: Fix heap-overflow in formail - CVE-2014-3618: Heap-overflow in formail when processing - specially-crafted email headers. -Origin: http://www.openwall.com/lists/oss-security/2014/09/03/8 -Bug-Debian: https://bugs.debian.org/704675 -Bug-Debian: https://bugs.debian.org/760443 -Forwarded: not-needed -Last-Update: 2014-09-04 - -CVE: CVE-2014-3618 -Upstream-Status: Inactive-Upstream [lastrelease: 2001] -Signed-off-by: Peter Marko <[email protected]> - ---- a/src/formisc.c -+++ b/src/formisc.c -@@ -84,12 +84,11 @@ normal: *target++= *start++; - case '"':*target++=delim='"';start++; - } - ;{ int i; -- do -+ while(*start) - if((i= *target++= *start++)==delim) /* corresponding delimiter? */ - break; - else if(i=='\\'&&*start) /* skip quoted character */ - *target++= *start++; -- while(*start); /* anything? */ - } - hitspc=2; - }
meta-oe/recipes-support/procmail/procmail/CVE-2017-16844.patch deleted +0 -20
@@ -1,20 +0,0 @@ -From: Santiago Vila <[email protected]> -Subject: Fix heap-based buffer overflow in loadbuf() -Bug-Debian: http://bugs.debian.org/876511 -X-Debian-version: 3.22-26 - -CVE: CVE-2017-16844 -Upstream-Status: Inactive-Upstream [lastrelease: 2001] -Signed-off-by: Peter Marko <[email protected]> - ---- a/src/formisc.c -+++ b/src/formisc.c -@@ -103,7 +103,7 @@ - } - /* append to buf */ - void loadbuf(text,len)const char*const text;const size_t len; --{ if(buffilled+len>buflen) /* buf can't hold the text */ -+{ while(buffilled+len>buflen) /* buf can't hold the text */ - buf=realloc(buf,buflen+=Bsize); - tmemmove(buf+buffilled,text,len);buffilled+=len; - }
meta-oe/recipes-support/procmail/procmail/from-debian-to-fix-compile-errors.patch deleted +0 -608
608 lines not on this page · raw message
meta-oe/recipes-support/procmail/procmail/from-debian-to-fix-man-file.patch deleted +0 -85
85 lines not on this page · raw message
meta-oe/recipes-support/procmail/procmail/from-debian-to-modify-parameters.patch deleted +0 -129
129 lines not on this page · raw message
meta-oe/recipes-support/procmail/procmail/gcc14.patch deleted +0 -127
127 lines not on this page · raw message
meta-oe/recipes-support/procmail/procmail/man-file-mailstat.1-from-debian.patch deleted +0 -62
62 lines not on this page · raw message
meta-oe/recipes-support/procmail/procmail/procmail-3.24-consolidated_fixes-1.patch new file +253 -0
253 lines not on this page · raw message
meta-oe/recipes-support/procmail/procmail_3.24.bb renamed from meta-oe/recipes-support/procmail/procmail_3.22.bb +11 -19
@@ -8,46 +8,38 @@ forward certain incoming mail automatically to someone." HOMEPAGE = "http://www.procmail.org/" SECTION = "Applications/System" -SRC_URI = "http://www.ring.gr.jp/archives/net/mail/${BPN}/${BP}.tar.gz \ - file://from-debian-to-fix-compile-errors.patch \ - file://from-debian-to-modify-parameters.patch \ - file://from-debian-to-fix-man-file.patch \ - file://man-file-mailstat.1-from-debian.patch \ - file://CVE-2014-3618.patch \ - file://CVE-2017-16844.patch \ - file://gcc14.patch \ - file://0001-fix-uname-declaration.patch \ - file://0001-fix-too-many-arguments-issue.patch \ -" -SRC_URI[sha256sum] = "087c75b34dd33d8b9df5afe9e42801c9395f4bf373a784d9bc97153b0062e117" +SRCREV = "07e769f07102767242edf835e995db6646bba373" +SRC_URI = "git://github.com/BuGlessRB/procmail;protocol=https;branch=master;tag=v${PV} \ + file://procmail-3.24-consolidated_fixes-1.patch \ + " LICENSE = "GPL-2.0-only & Artistic-1.0" LIC_FILES_CHKSUM = "file://COPYING;md5=a71e50e197a992c862379e576e669757 \ file://Artistic;md5=505e00d03c3428cde21b17b2a386590e" -DEPENDS = "libnet" +DEPENDS = "libnet libnsl2" + inherit autotools-brokensep do_configure() { find examples -type f | xargs chmod 644 - export CC="${BUILD_CC}" + export CC="${BUILD_CC} -std=gnu17 -Wno-implicit-function-declaration" export LD="${BUILD_LD}" export CFLAGS="${BUILD_CFLAGS}" export AR="${BUILD_AR}" export AS="${BUILD_AS}" - make TARGET_CFLAGS="$TARGET_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS0="${BUILD_LDFLAGS}" autoconf.h + oe_runmake TARGET_CFLAGS="$TARGET_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS0="${BUILD_LDFLAGS}" LOCKINGTEST=100 autoconf.h } do_compile() { - oe_runmake -i CFLAGS="$TARGET_CFLAGS -Wno-comments -Wno-implicit-int -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS0="${LDFLAGS}" + oe_runmake -i CFLAGS="$TARGET_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 LOCKINGTEST=/tmp" LDFLAGS0="${LDFLAGS}" LOCKINGTEST=100 } do_install() { install -d ${D}${bindir} install -d ${D}${mandir}/man1 install -d ${D}${mandir}/man5 - oe_runmake -i BASENAME=${D}/usr MANDIR=${D}${mandir} install - install -m 0644 debian/mailstat.1 ${D}${mandir}/man1 + oe_runmake -i BASENAME=${D}/usr MANDIR=${D}${mandir} LOCKINGTEST=100 LDFLAGS0="${LDFLAGS}" install } -CVE_STATUS[CVE-1999-0475] = "fixed-version: No action required. The current version (3.22) is not affected by the CVE." +CVE_STATUS[CVE-1999-0475] = "fixed-version: No action required. The current version (3.24) is not affected by the CVE."