diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2015-09-03 18:34:11 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-04 16:23:53 +0100 |
commit | 1f5e747f8cc8ee8647a25670cb4819f927b3638c (patch) | |
tree | 9418f520c0ff49551b8fa2d3ceda3ee8f5e11b64 /meta/recipes-extended/mailx/files | |
parent | d025e78cc176ff22834352dde783021cbb84cb8b (diff) | |
download | poky-1f5e747f8cc8ee8647a25670cb4819f927b3638c.tar.gz |
mailx: update to 12.5-5
This means adding new patches from Debian[1] and tweaking build options
that were previously set by patching Makefile.
[1] ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/
(From OE-Core rev: 296346145bf61e3ee01ce4e1f4ccf7efe5057980)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mailx/files')
9 files changed, 501 insertions, 0 deletions
diff --git a/meta/recipes-extended/mailx/files/0001-Don-t-reuse-weak-symbol-optopt-to-fix-FTBFS-on-mips.patch b/meta/recipes-extended/mailx/files/0001-Don-t-reuse-weak-symbol-optopt-to-fix-FTBFS-on-mips.patch new file mode 100644 index 0000000000..126f50539d --- /dev/null +++ b/meta/recipes-extended/mailx/files/0001-Don-t-reuse-weak-symbol-optopt-to-fix-FTBFS-on-mips.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From: Luk Claes <luk@debian.org> | ||
2 | Date: Sat, 4 Jul 2009 10:54:53 +0200 | ||
3 | Subject: Don't reuse weak symbol optopt to fix FTBFS on mips* | ||
4 | |||
5 | This patch is taken from | ||
6 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
7 | |||
8 | Upstream-status: Inappropriate [upstream is dead] | ||
9 | --- | ||
10 | getopt.c | 10 +++++----- | ||
11 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
12 | |||
13 | diff --git a/getopt.c b/getopt.c | ||
14 | index 83ce628..82e983c 100644 | ||
15 | --- a/getopt.c | ||
16 | +++ b/getopt.c | ||
17 | @@ -43,7 +43,7 @@ typedef int ssize_t; | ||
18 | char *optarg; | ||
19 | int optind = 1; | ||
20 | int opterr = 1; | ||
21 | -int optopt; | ||
22 | +int optoptc; | ||
23 | |||
24 | static void | ||
25 | error(const char *s, int c) | ||
26 | @@ -69,7 +69,7 @@ error(const char *s, int c) | ||
27 | *bp++ = *s++; | ||
28 | while (*msg) | ||
29 | *bp++ = *msg++; | ||
30 | - *bp++ = optopt; | ||
31 | + *bp++ = optoptc; | ||
32 | *bp++ = '\n'; | ||
33 | write(2, buf, bp - buf); | ||
34 | ac_free(buf); | ||
35 | @@ -101,13 +101,13 @@ getopt(int argc, char *const argv[], const char *optstring) | ||
36 | } | ||
37 | curp = &argv[optind][1]; | ||
38 | } | ||
39 | - optopt = curp[0] & 0377; | ||
40 | + optoptc = curp[0] & 0377; | ||
41 | while (optstring[0]) { | ||
42 | if (optstring[0] == ':') { | ||
43 | optstring++; | ||
44 | continue; | ||
45 | } | ||
46 | - if ((optstring[0] & 0377) == optopt) { | ||
47 | + if ((optstring[0] & 0377) == optoptc) { | ||
48 | if (optstring[1] == ':') { | ||
49 | if (curp[1] != '\0') { | ||
50 | optarg = (char *)&curp[1]; | ||
51 | @@ -127,7 +127,7 @@ getopt(int argc, char *const argv[], const char *optstring) | ||
52 | optind++; | ||
53 | optarg = 0; | ||
54 | } | ||
55 | - return optopt; | ||
56 | + return optoptc; | ||
57 | } | ||
58 | optstring++; | ||
59 | } | ||
diff --git a/meta/recipes-extended/mailx/files/0002-Patched-out-SSL2-support-since-it-is-no-longer-suppo.patch b/meta/recipes-extended/mailx/files/0002-Patched-out-SSL2-support-since-it-is-no-longer-suppo.patch new file mode 100644 index 0000000000..f70f8fc622 --- /dev/null +++ b/meta/recipes-extended/mailx/files/0002-Patched-out-SSL2-support-since-it-is-no-longer-suppo.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From: Hilko Bengen <bengen@debian.org> | ||
2 | Date: Wed, 27 Apr 2011 00:18:42 +0200 | ||
3 | Subject: Patched out SSL2 support since it is no longer supported by OpenSSL. | ||
4 | |||
5 | This patch is taken from | ||
6 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
7 | |||
8 | Upstream-status: Inappropriate [upstream is dead] | ||
9 | --- | ||
10 | mailx.1 | 2 +- | ||
11 | openssl.c | 4 +--- | ||
12 | 2 files changed, 2 insertions(+), 4 deletions(-) | ||
13 | |||
14 | diff --git a/mailx.1 b/mailx.1 | ||
15 | index 417ea04..a02e430 100644 | ||
16 | --- a/mailx.1 | ||
17 | +++ b/mailx.1 | ||
18 | @@ -3575,7 +3575,7 @@ Only applicable if SSL/TLS support is built using OpenSSL. | ||
19 | .TP | ||
20 | .B ssl-method | ||
21 | Selects a SSL/TLS protocol version; | ||
22 | -valid values are `ssl2', `ssl3', and `tls1'. | ||
23 | +valid values are `ssl3', and `tls1'. | ||
24 | If unset, the method is selected automatically, | ||
25 | if possible. | ||
26 | .TP | ||
27 | diff --git a/openssl.c b/openssl.c | ||
28 | index b4e33fc..44fe4e5 100644 | ||
29 | --- a/openssl.c | ||
30 | +++ b/openssl.c | ||
31 | @@ -216,9 +216,7 @@ ssl_select_method(const char *uhp) | ||
32 | |||
33 | cp = ssl_method_string(uhp); | ||
34 | if (cp != NULL) { | ||
35 | - if (equal(cp, "ssl2")) | ||
36 | - method = SSLv2_client_method(); | ||
37 | - else if (equal(cp, "ssl3")) | ||
38 | + if (equal(cp, "ssl3")) | ||
39 | method = SSLv3_client_method(); | ||
40 | else if (equal(cp, "tls1")) | ||
41 | method = TLSv1_client_method(); | ||
diff --git a/meta/recipes-extended/mailx/files/0003-Fixed-Lintian-warning-warning-macro-N-not-defined.patch b/meta/recipes-extended/mailx/files/0003-Fixed-Lintian-warning-warning-macro-N-not-defined.patch new file mode 100644 index 0000000000..0ee133ac63 --- /dev/null +++ b/meta/recipes-extended/mailx/files/0003-Fixed-Lintian-warning-warning-macro-N-not-defined.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From: Hilko Bengen <bengen@debian.org> | ||
2 | Date: Sat, 14 Apr 2012 20:22:43 +0200 | ||
3 | Subject: Fixed Lintian warning (warning: macro `N' not defined) | ||
4 | |||
5 | This patch is taken from | ||
6 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
7 | |||
8 | Upstream-status: Inappropriate [upstream is dead] | ||
9 | --- | ||
10 | mailx.1 | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/mailx.1 b/mailx.1 | ||
14 | index a02e430..b0723bd 100644 | ||
15 | --- a/mailx.1 | ||
16 | +++ b/mailx.1 | ||
17 | @@ -3781,7 +3781,7 @@ you could examine the first message by giving the command: | ||
18 | .sp | ||
19 | .fi | ||
20 | which might cause | ||
21 | -.N mailx | ||
22 | +.I mailx | ||
23 | to respond with, for example: | ||
24 | .nf | ||
25 | .sp | ||
diff --git a/meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch b/meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch new file mode 100644 index 0000000000..fdce13f202 --- /dev/null +++ b/meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch | |||
@@ -0,0 +1,70 @@ | |||
1 | From 9984ae5cb0ea0d61df1612b06952a61323c083d9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Florian Weimer <fweimer@redhat.com> | ||
3 | Date: Mon, 17 Nov 2014 11:13:38 +0100 | ||
4 | Subject: [PATCH 1/4] outof: Introduce expandaddr flag | ||
5 | |||
6 | Document that address expansion is disabled unless the expandaddr | ||
7 | binary option is set. | ||
8 | |||
9 | This has been assigned CVE-2014-7844 for BSD mailx, but it is not | ||
10 | a vulnerability in Heirloom mailx because this feature was documented. | ||
11 | |||
12 | This patch is taken from | ||
13 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
14 | |||
15 | Upstream-status: Inappropriate [upstream is dead] | ||
16 | --- | ||
17 | mailx.1 | 14 ++++++++++++++ | ||
18 | names.c | 3 +++ | ||
19 | 2 files changed, 17 insertions(+) | ||
20 | |||
21 | diff --git a/mailx.1 b/mailx.1 | ||
22 | index 70a7859..22a171b 100644 | ||
23 | --- a/mailx.1 | ||
24 | +++ b/mailx.1 | ||
25 | @@ -656,6 +656,14 @@ but any reply returned to the machine | ||
26 | will have the system wide alias expanded | ||
27 | as all mail goes through sendmail. | ||
28 | .SS "Recipient address specifications" | ||
29 | +If the | ||
30 | +.I expandaddr | ||
31 | +option is not set (the default), recipient addresses must be names of | ||
32 | +local mailboxes or Internet mail addresses. | ||
33 | +.PP | ||
34 | +If the | ||
35 | +.I expandaddr | ||
36 | +option is set, the following rules apply: | ||
37 | When an address is used to name a recipient | ||
38 | (in any of To, Cc, or Bcc), | ||
39 | names of local mail folders | ||
40 | @@ -2391,6 +2399,12 @@ and exits immediately. | ||
41 | If this option is set, | ||
42 | \fImailx\fR starts even with an empty mailbox. | ||
43 | .TP | ||
44 | +.B expandaddr | ||
45 | +Causes | ||
46 | +.I mailx | ||
47 | +to expand message recipient addresses, as explained in the section, | ||
48 | +Recipient address specifications. | ||
49 | +.TP | ||
50 | .B flipr | ||
51 | Exchanges the | ||
52 | .I Respond | ||
53 | diff --git a/names.c b/names.c | ||
54 | index 66e976b..c69560f 100644 | ||
55 | --- a/names.c | ||
56 | +++ b/names.c | ||
57 | @@ -268,6 +268,9 @@ outof(struct name *names, FILE *fo, struct header *hp) | ||
58 | FILE *fout, *fin; | ||
59 | int ispipe; | ||
60 | |||
61 | + if (value("expandaddr") == NULL) | ||
62 | + return names; | ||
63 | + | ||
64 | top = names; | ||
65 | np = names; | ||
66 | time(&now); | ||
67 | -- | ||
68 | 1.9.3 | ||
69 | |||
70 | |||
diff --git a/meta/recipes-extended/mailx/files/0012-unpack-Disable-option-processing-for-email-addresses.patch b/meta/recipes-extended/mailx/files/0012-unpack-Disable-option-processing-for-email-addresses.patch new file mode 100644 index 0000000000..b51472f046 --- /dev/null +++ b/meta/recipes-extended/mailx/files/0012-unpack-Disable-option-processing-for-email-addresses.patch | |||
@@ -0,0 +1,79 @@ | |||
1 | From e34e2ac67b80497080ebecccec40c3b61456167d Mon Sep 17 00:00:00 2001 | ||
2 | From: Florian Weimer <fweimer@redhat.com> | ||
3 | Date: Mon, 17 Nov 2014 11:14:06 +0100 | ||
4 | Subject: [PATCH 2/4] unpack: Disable option processing for email addresses | ||
5 | when calling sendmail | ||
6 | |||
7 | This patch is taken from | ||
8 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
9 | |||
10 | Upstream-status: Inappropriate [upstream is dead] | ||
11 | --- | ||
12 | extern.h | 2 +- | ||
13 | names.c | 8 ++++++-- | ||
14 | sendout.c | 2 +- | ||
15 | 3 files changed, 8 insertions(+), 4 deletions(-) | ||
16 | |||
17 | diff --git a/extern.h b/extern.h | ||
18 | index 6b85ba0..8873fe8 100644 | ||
19 | --- a/extern.h | ||
20 | +++ b/extern.h | ||
21 | @@ -396,7 +396,7 @@ struct name *outof(struct name *names, FILE *fo, struct header *hp); | ||
22 | int is_fileaddr(char *name); | ||
23 | struct name *usermap(struct name *names); | ||
24 | struct name *cat(struct name *n1, struct name *n2); | ||
25 | -char **unpack(struct name *np); | ||
26 | +char **unpack(struct name *smopts, struct name *np); | ||
27 | struct name *elide(struct name *names); | ||
28 | int count(struct name *np); | ||
29 | struct name *delete_alternates(struct name *np); | ||
30 | diff --git a/names.c b/names.c | ||
31 | index c69560f..45bbaed 100644 | ||
32 | --- a/names.c | ||
33 | +++ b/names.c | ||
34 | @@ -549,7 +549,7 @@ cat(struct name *n1, struct name *n2) | ||
35 | * Return an error if the name list won't fit. | ||
36 | */ | ||
37 | char ** | ||
38 | -unpack(struct name *np) | ||
39 | +unpack(struct name *smopts, struct name *np) | ||
40 | { | ||
41 | char **ap, **top; | ||
42 | struct name *n; | ||
43 | @@ -564,7 +564,7 @@ unpack(struct name *np) | ||
44 | * the terminating 0 pointer. Additional spots may be needed | ||
45 | * to pass along -f to the host mailer. | ||
46 | */ | ||
47 | - extra = 2; | ||
48 | + extra = 3 + count(smopts); | ||
49 | extra++; | ||
50 | metoo = value("metoo") != NULL; | ||
51 | if (metoo) | ||
52 | @@ -581,6 +581,10 @@ unpack(struct name *np) | ||
53 | *ap++ = "-m"; | ||
54 | if (verbose) | ||
55 | *ap++ = "-v"; | ||
56 | + for (; smopts != NULL; smopts = smopts->n_flink) | ||
57 | + if ((smopts->n_type & GDEL) == 0) | ||
58 | + *ap++ = smopts->n_name; | ||
59 | + *ap++ = "--"; | ||
60 | for (; n != NULL; n = n->n_flink) | ||
61 | if ((n->n_type & GDEL) == 0) | ||
62 | *ap++ = n->n_name; | ||
63 | diff --git a/sendout.c b/sendout.c | ||
64 | index 7b7f2eb..c52f15d 100644 | ||
65 | --- a/sendout.c | ||
66 | +++ b/sendout.c | ||
67 | @@ -835,7 +835,7 @@ start_mta(struct name *to, struct name *mailargs, FILE *input, | ||
68 | #endif /* HAVE_SOCKETS */ | ||
69 | |||
70 | if ((smtp = value("smtp")) == NULL) { | ||
71 | - args = unpack(cat(mailargs, to)); | ||
72 | + args = unpack(mailargs, to); | ||
73 | if (debug || value("debug")) { | ||
74 | printf(catgets(catd, CATSET, 181, | ||
75 | "Sendmail arguments:")); | ||
76 | -- | ||
77 | 1.9.3 | ||
78 | |||
79 | |||
diff --git a/meta/recipes-extended/mailx/files/0013-fio.c-Unconditionally-require-wordexp-support.patch b/meta/recipes-extended/mailx/files/0013-fio.c-Unconditionally-require-wordexp-support.patch new file mode 100644 index 0000000000..5bf3cdd54f --- /dev/null +++ b/meta/recipes-extended/mailx/files/0013-fio.c-Unconditionally-require-wordexp-support.patch | |||
@@ -0,0 +1,113 @@ | |||
1 | From 2bae8ecf04ec2ba6bb9f0af5b80485dd0edb427d Mon Sep 17 00:00:00 2001 | ||
2 | From: Florian Weimer <fweimer@redhat.com> | ||
3 | Date: Mon, 17 Nov 2014 12:48:25 +0100 | ||
4 | Subject: [PATCH 3/4] fio.c: Unconditionally require wordexp support | ||
5 | |||
6 | This patch is taken from | ||
7 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
8 | |||
9 | Upstream-status: Inappropriate [upstream is dead] | ||
10 | --- | ||
11 | fio.c | 67 +++++-------------------------------------------------------------- | ||
12 | 1 file changed, 5 insertions(+), 62 deletions(-) | ||
13 | |||
14 | diff --git a/fio.c b/fio.c | ||
15 | index 65e8f10..1529236 100644 | ||
16 | --- a/fio.c | ||
17 | +++ b/fio.c | ||
18 | @@ -43,12 +43,15 @@ static char sccsid[] = "@(#)fio.c 2.76 (gritter) 9/16/09"; | ||
19 | #endif /* not lint */ | ||
20 | |||
21 | #include "rcv.h" | ||
22 | + | ||
23 | +#ifndef HAVE_WORDEXP | ||
24 | +#error wordexp support is required | ||
25 | +#endif | ||
26 | + | ||
27 | #include <sys/stat.h> | ||
28 | #include <sys/file.h> | ||
29 | #include <sys/wait.h> | ||
30 | -#ifdef HAVE_WORDEXP | ||
31 | #include <wordexp.h> | ||
32 | -#endif /* HAVE_WORDEXP */ | ||
33 | #include <unistd.h> | ||
34 | |||
35 | #if defined (USE_NSS) | ||
36 | @@ -481,7 +484,6 @@ next: | ||
37 | static char * | ||
38 | globname(char *name) | ||
39 | { | ||
40 | -#ifdef HAVE_WORDEXP | ||
41 | wordexp_t we; | ||
42 | char *cp; | ||
43 | sigset_t nset; | ||
44 | @@ -527,65 +529,6 @@ globname(char *name) | ||
45 | } | ||
46 | wordfree(&we); | ||
47 | return cp; | ||
48 | -#else /* !HAVE_WORDEXP */ | ||
49 | - char xname[PATHSIZE]; | ||
50 | - char cmdbuf[PATHSIZE]; /* also used for file names */ | ||
51 | - int pid, l; | ||
52 | - char *cp, *shell; | ||
53 | - int pivec[2]; | ||
54 | - extern int wait_status; | ||
55 | - struct stat sbuf; | ||
56 | - | ||
57 | - if (pipe(pivec) < 0) { | ||
58 | - perror("pipe"); | ||
59 | - return name; | ||
60 | - } | ||
61 | - snprintf(cmdbuf, sizeof cmdbuf, "echo %s", name); | ||
62 | - if ((shell = value("SHELL")) == NULL) | ||
63 | - shell = SHELL; | ||
64 | - pid = start_command(shell, 0, -1, pivec[1], "-c", cmdbuf, NULL); | ||
65 | - if (pid < 0) { | ||
66 | - close(pivec[0]); | ||
67 | - close(pivec[1]); | ||
68 | - return NULL; | ||
69 | - } | ||
70 | - close(pivec[1]); | ||
71 | -again: | ||
72 | - l = read(pivec[0], xname, sizeof xname); | ||
73 | - if (l < 0) { | ||
74 | - if (errno == EINTR) | ||
75 | - goto again; | ||
76 | - perror("read"); | ||
77 | - close(pivec[0]); | ||
78 | - return NULL; | ||
79 | - } | ||
80 | - close(pivec[0]); | ||
81 | - if (wait_child(pid) < 0 && WTERMSIG(wait_status) != SIGPIPE) { | ||
82 | - fprintf(stderr, catgets(catd, CATSET, 81, | ||
83 | - "\"%s\": Expansion failed.\n"), name); | ||
84 | - return NULL; | ||
85 | - } | ||
86 | - if (l == 0) { | ||
87 | - fprintf(stderr, catgets(catd, CATSET, 82, | ||
88 | - "\"%s\": No match.\n"), name); | ||
89 | - return NULL; | ||
90 | - } | ||
91 | - if (l == sizeof xname) { | ||
92 | - fprintf(stderr, catgets(catd, CATSET, 83, | ||
93 | - "\"%s\": Expansion buffer overflow.\n"), name); | ||
94 | - return NULL; | ||
95 | - } | ||
96 | - xname[l] = 0; | ||
97 | - for (cp = &xname[l-1]; *cp == '\n' && cp > xname; cp--) | ||
98 | - ; | ||
99 | - cp[1] = '\0'; | ||
100 | - if (strchr(xname, ' ') && stat(xname, &sbuf) < 0) { | ||
101 | - fprintf(stderr, catgets(catd, CATSET, 84, | ||
102 | - "\"%s\": Ambiguous.\n"), name); | ||
103 | - return NULL; | ||
104 | - } | ||
105 | - return savestr(xname); | ||
106 | -#endif /* !HAVE_WORDEXP */ | ||
107 | } | ||
108 | |||
109 | /* | ||
110 | -- | ||
111 | 1.9.3 | ||
112 | |||
113 | |||
diff --git a/meta/recipes-extended/mailx/files/0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch b/meta/recipes-extended/mailx/files/0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch new file mode 100644 index 0000000000..6f162ea680 --- /dev/null +++ b/meta/recipes-extended/mailx/files/0014-globname-Invoke-wordexp-with-WRDE_NOCMD.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 73fefa0c1ac70043ec84f2d8b8f9f683213f168d Mon Sep 17 00:00:00 2001 | ||
2 | From: Florian Weimer <fweimer@redhat.com> | ||
3 | Date: Mon, 17 Nov 2014 13:11:32 +0100 | ||
4 | Subject: [PATCH 4/4] globname: Invoke wordexp with WRDE_NOCMD (CVE-2004-2771) | ||
5 | |||
6 | This patch is taken from | ||
7 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
8 | |||
9 | Upstream-status: Inappropriate [upstream is dead] | ||
10 | --- | ||
11 | fio.c | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/fio.c b/fio.c | ||
15 | index 1529236..774a204 100644 | ||
16 | --- a/fio.c | ||
17 | +++ b/fio.c | ||
18 | @@ -497,7 +497,7 @@ globname(char *name) | ||
19 | sigemptyset(&nset); | ||
20 | sigaddset(&nset, SIGCHLD); | ||
21 | sigprocmask(SIG_BLOCK, &nset, NULL); | ||
22 | - i = wordexp(name, &we, 0); | ||
23 | + i = wordexp(name, &we, WRDE_NOCMD); | ||
24 | sigprocmask(SIG_UNBLOCK, &nset, NULL); | ||
25 | switch (i) { | ||
26 | case 0: | ||
27 | -- | ||
28 | 1.9.3 | ||
29 | |||
30 | |||
diff --git a/meta/recipes-extended/mailx/files/0015-usr-sbin-sendmail.patch b/meta/recipes-extended/mailx/files/0015-usr-sbin-sendmail.patch new file mode 100644 index 0000000000..7e33789a76 --- /dev/null +++ b/meta/recipes-extended/mailx/files/0015-usr-sbin-sendmail.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Description: Sendmail is at /usr/sbin/sendmail | ||
2 | As per Debian Policy ยง11.6 | ||
3 | Author: Ryan Kavanagh <rak@debian.org> | ||
4 | Origin: Debian | ||
5 | Forwarded: no | ||
6 | --- | ||
7 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | ||
8 | Index: heirloom-mailx-12.5/Makefile | ||
9 | =================================================================== | ||
10 | This patch is taken from | ||
11 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
12 | |||
13 | Upstream-status: Inappropriate [upstream is dead] | ||
14 | |||
15 | --- heirloom-mailx-12.5.orig/Makefile 2011-04-26 17:23:22.000000000 -0400 | ||
16 | +++ heirloom-mailx-12.5/Makefile 2015-01-27 13:20:04.733542801 -0500 | ||
17 | @@ -13,7 +13,7 @@ | ||
18 | |||
19 | MAILRC = $(SYSCONFDIR)/nail.rc | ||
20 | MAILSPOOL = /var/mail | ||
21 | -SENDMAIL = /usr/lib/sendmail | ||
22 | +SENDMAIL = /usr/sbin/sendmail | ||
23 | |||
24 | DESTDIR = | ||
25 | |||
26 | Index: heirloom-mailx-12.5/mailx.1 | ||
27 | =================================================================== | ||
28 | --- heirloom-mailx-12.5.orig/mailx.1 2015-01-27 13:18:49.000000000 -0500 | ||
29 | +++ heirloom-mailx-12.5/mailx.1 2015-01-27 13:20:32.382336867 -0500 | ||
30 | @@ -4922,7 +4922,7 @@ | ||
31 | which just acts as a proxy. | ||
32 | .PP | ||
33 | \fIMailx\fR immediately contacts the SMTP server (or | ||
34 | -.IR \%/usr/lib/sendmail ) | ||
35 | +.IR \%/usr/sbin/sendmail ) | ||
36 | even when operating in | ||
37 | .I disconnected | ||
38 | mode. | ||
diff --git a/meta/recipes-extended/mailx/files/explicitly.disable.krb5.support.patch b/meta/recipes-extended/mailx/files/explicitly.disable.krb5.support.patch new file mode 100644 index 0000000000..8c7178bf8c --- /dev/null +++ b/meta/recipes-extended/mailx/files/explicitly.disable.krb5.support.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | krb5 support is autodetected from sysroot making builds undeterministic | ||
2 | feel free to improve this to support explicitly enabling/disabling it | ||
3 | |||
4 | Upstream-Status: Penging | ||
5 | |||
6 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
7 | |||
8 | --- a/makeconfig 2013-07-21 15:06:11.177792334 +0200 | ||
9 | +++ b/makeconfig 2013-07-21 15:07:20.028793994 +0200 | ||
10 | @@ -424,36 +424,6 @@ | ||
11 | } | ||
12 | ! | ||
13 | |||
14 | -<$tmp2.c link_check gssapi 'for GSSAPI in libgss' \ | ||
15 | - '#define USE_GSSAPI' '-lgss' || | ||
16 | - <$tmp2.c link_check gssapi 'for GSSAPI in libgssapi_krb5' \ | ||
17 | - '#define USE_GSSAPI' '-lgssapi_krb5' || | ||
18 | - link_check gssapi 'for GSSAPI in libgssapi_krb5, old-style' \ | ||
19 | - '#define USE_GSSAPI | ||
20 | -#define GSSAPI_OLD_STYLE' '-lgssapi_krb5' <<\! || \ | ||
21 | - link_check gssapi 'for GSSAPI in libgssapi' \ | ||
22 | - '#define USE_GSSAPI | ||
23 | -#define GSSAPI_REG_INCLUDE' '-lgssapi' <<\% | ||
24 | -#include <gssapi/gssapi.h> | ||
25 | -#include <gssapi/gssapi_generic.h> | ||
26 | - | ||
27 | -int main(void) | ||
28 | -{ | ||
29 | - gss_import_name(0, 0, gss_nt_service_name, 0); | ||
30 | - gss_init_sec_context(0,0,0,0,0,0,0,0,0,0,0,0,0); | ||
31 | - return 0; | ||
32 | -} | ||
33 | -! | ||
34 | -#include <gssapi.h> | ||
35 | - | ||
36 | -int main(void) | ||
37 | -{ | ||
38 | - gss_import_name(0, 0, GSS_C_NT_HOSTBASED_SERVICE, 0); | ||
39 | - gss_init_sec_context(0,0,0,0,0,0,0,0,0,0,0,0,0); | ||
40 | - return 0; | ||
41 | -} | ||
42 | -% | ||
43 | - | ||
44 | cat >$tmp2.c <<\! | ||
45 | #include "config.h" | ||
46 | #ifdef HAVE_NL_LANGINFO | ||