diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-09-07 13:58:34 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-09-07 16:44:54 -0700 |
commit | 67caf9050d6ba5a20ae576a5924265e74816cb3d (patch) | |
tree | cab0a9780faa243707c4ee94c32d8b5e9e7a5f6c | |
parent | b70b98781c99bdaf02ebd030b824088f2ee61639 (diff) | |
download | meta-openembedded-67caf9050d6ba5a20ae576a5924265e74816cb3d.tar.gz |
uw-imap: Avoid programs using gets()
Included needed header for isdigit()
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 66 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Do-not-build-mtest.patch b/meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Do-not-build-mtest.patch new file mode 100644 index 0000000000..fd2f30cd14 --- /dev/null +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Do-not-build-mtest.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From f92becaf97be16a28013693cd99bac92c54074f2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 7 Sep 2022 13:54:58 -0700 | ||
4 | Subject: [PATCH 1/2] Do not build mtest | ||
5 | |||
6 | its a test utility which is not generally used. We need to disable it | ||
7 | because it uses gets() function which is not available in glibc, if we | ||
8 | want to use it then port it to use something like fgets | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Makefile | 2 -- | ||
14 | 1 file changed, 2 deletions(-) | ||
15 | |||
16 | diff --git a/Makefile b/Makefile | ||
17 | index cf6d405..1e2d0fb 100644 | ||
18 | --- a/Makefile | ||
19 | +++ b/Makefile | ||
20 | @@ -669,7 +669,6 @@ an ua: | ||
21 | $(TOOLS)/$@ "$(LN)" src/ansilib c-client | ||
22 | $(TOOLS)/$@ "$(LN)" src/charset c-client | ||
23 | $(TOOLS)/$@ "$(LN)" src/osdep/$(SYSTEM) c-client | ||
24 | - $(TOOLS)/$@ "$(LN)" src/mtest mtest | ||
25 | $(TOOLS)/$@ "$(LN)" src/ipopd ipopd | ||
26 | $(TOOLS)/$@ "$(LN)" src/imapd imapd | ||
27 | $(TOOLS)/$@ "$(LN)" src/mailutil mailutil | ||
28 | @@ -706,7 +705,6 @@ rebuildclean: | ||
29 | |||
30 | bundled: | ||
31 | @echo Building bundled tools... | ||
32 | - $(CD) mtest;$(MAKE) | ||
33 | $(CD) ipopd;$(MAKE) | ||
34 | $(CD) imapd;$(MAKE) | ||
35 | $(CD) mailutil;$(MAKE) | ||
36 | -- | ||
37 | 2.37.3 | ||
38 | |||
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap/0002-tmail-Include-ctype.h-for-isdigit.patch b/meta-oe/recipes-devtools/uw-imap/uw-imap/0002-tmail-Include-ctype.h-for-isdigit.patch new file mode 100644 index 0000000000..5778a00346 --- /dev/null +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap/0002-tmail-Include-ctype.h-for-isdigit.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From fbd00d93cc07fa5da20414b355fffe628dcd37b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 7 Sep 2022 13:57:19 -0700 | ||
4 | Subject: [PATCH 2/2] tmail: Include ctype.h for isdigit | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | src/tmail/tmail.c | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | diff --git a/src/tmail/tmail.c b/src/tmail/tmail.c | ||
13 | index ed5fc58..a9e3645 100644 | ||
14 | --- a/src/tmail/tmail.c | ||
15 | +++ b/src/tmail/tmail.c | ||
16 | @@ -26,6 +26,7 @@ | ||
17 | * Last Edited: 30 October 2008 | ||
18 | */ | ||
19 | |||
20 | +#include <ctype.h> /* for isdigit */ | ||
21 | #include <stdio.h> | ||
22 | #include <pwd.h> | ||
23 | #include <errno.h> | ||
24 | -- | ||
25 | 2.37.3 | ||
26 | |||
diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb index 3f2c9a2237..9fb12b26e4 100644 --- a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb | |||
@@ -12,6 +12,8 @@ SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \ | |||
12 | file://imap-2007f-format-security.patch \ | 12 | file://imap-2007f-format-security.patch \ |
13 | file://0001-Support-OpenSSL-1.1.patch \ | 13 | file://0001-Support-OpenSSL-1.1.patch \ |
14 | file://0001-Define-prototype-for-safe_flock.patch \ | 14 | file://0001-Define-prototype-for-safe_flock.patch \ |
15 | file://0001-Do-not-build-mtest.patch \ | ||
16 | file://0002-tmail-Include-ctype.h-for-isdigit.patch \ | ||
15 | " | 17 | " |
16 | 18 | ||
17 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" | 19 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" |