Included needed header for isdigit()

Signed-off-by: Khem Raj <[email protected]>
---
 .../uw-imap/0001-Do-not-build-mtest.patch     | 38 +++++++++++++++++++
 ...02-tmail-Include-ctype.h-for-isdigit.patch | 26 +++++++++++++
 .../recipes-devtools/uw-imap/uw-imap_2007f.bb |  2 +
 3 files changed, 66 insertions(+)
 create mode 100644 
meta-oe/recipes-devtools/uw-imap/uw-imap/0001-Do-not-build-mtest.patch
 create mode 100644 
meta-oe/recipes-devtools/uw-imap/uw-imap/0002-tmail-Include-ctype.h-for-isdigit.patch

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 @@
+From f92becaf97be16a28013693cd99bac92c54074f2 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 7 Sep 2022 13:54:58 -0700
+Subject: [PATCH 1/2] Do not build mtest
+
+its a test utility which is not generally used. We need to disable it
+because it uses gets() function which is not available in glibc, if we
+want to use it then port it to use something like fgets
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ Makefile | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index cf6d405..1e2d0fb 100644
+--- a/Makefile
++++ b/Makefile
+@@ -669,7 +669,6 @@ an ua:
+       $(TOOLS)/$@ "$(LN)" src/ansilib c-client
+       $(TOOLS)/$@ "$(LN)" src/charset c-client
+       $(TOOLS)/$@ "$(LN)" src/osdep/$(SYSTEM) c-client
+-      $(TOOLS)/$@ "$(LN)" src/mtest mtest
+       $(TOOLS)/$@ "$(LN)" src/ipopd ipopd
+       $(TOOLS)/$@ "$(LN)" src/imapd imapd
+       $(TOOLS)/$@ "$(LN)" src/mailutil mailutil
+@@ -706,7 +705,6 @@ rebuildclean:
+ 
+ bundled:
+       @echo Building bundled tools...
+-      $(CD) mtest;$(MAKE)
+       $(CD) ipopd;$(MAKE)
+       $(CD) imapd;$(MAKE)
+       $(CD) mailutil;$(MAKE)
+-- 
+2.37.3
+
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 @@
+From fbd00d93cc07fa5da20414b355fffe628dcd37b3 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 7 Sep 2022 13:57:19 -0700
+Subject: [PATCH 2/2] tmail: Include ctype.h for isdigit
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/tmail/tmail.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/tmail/tmail.c b/src/tmail/tmail.c
+index ed5fc58..a9e3645 100644
+--- a/src/tmail/tmail.c
++++ b/src/tmail/tmail.c
+@@ -26,6 +26,7 @@
+  * Last Edited:       30 October 2008
+  */
+ 
++#include <ctype.h>            /* for isdigit */
+ #include <stdio.h>
+ #include <pwd.h>
+ #include <errno.h>
+-- 
+2.37.3
+
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 \
            file://imap-2007f-format-security.patch \
            file://0001-Support-OpenSSL-1.1.patch \
            file://0001-Define-prototype-for-safe_flock.patch \
+           file://0001-Do-not-build-mtest.patch \
+           file://0002-tmail-Include-ctype.h-for-isdigit.patch \
            "
 
 SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369"
-- 
2.37.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#98709): 
https://lists.openembedded.org/g/openembedded-devel/message/98709
Mute This Topic: https://lists.openembedded.org/mt/93537580/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to