-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mailutils: 2.2 -> 3.2 #27580
Closed
Closed
mailutils: 2.2 -> 3.2 #27580
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
992fd74
mailutils: 2.2 -> 3.2
orivej d1b7294
mailutils: use fetchgit to delete vendored files
orivej 20f6e38
mailutils: use fetchpatch instead of patch
Mic92 a203859
fetchpatch: add excludes param and fix mailutils patch
globin f1a2b22
mailutils: fix sandbox download
Mic92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
pkgs/tools/networking/mailutils/fix-build-gentoo-bug-612712.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
From afbb33cf9ff750e93a9a4c1f51a3b62d584f056e Mon Sep 17 00:00:00 2001 | ||
From: Sergey Poznyakoff <[email protected]> | ||
Date: Sun, 19 Mar 2017 17:31:08 +0200 | ||
Subject: Fix a bug in field-map handling. | ||
|
||
* libmailutils/cfg/driver.c (parse_mapping): Fix expected value type. | ||
* libmu_auth/sql.c (get_field): Remove left-over mu_assoc_ref call | ||
(see 622bc770). | ||
--- | ||
NEWS | 2 +- | ||
libmailutils/cfg/driver.c | 7 ++++++- | ||
libmu_auth/sql.c | 11 +++++++---- | ||
3 files changed, 14 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/libmailutils/cfg/driver.c b/libmailutils/cfg/driver.c | ||
index 7da75a8..8af543d 100644 | ||
--- a/libmailutils/cfg/driver.c | ||
+++ b/libmailutils/cfg/driver.c | ||
@@ -617,10 +617,15 @@ static int | ||
parse_mapping (void *item, void *data) | ||
{ | ||
struct mapping_closure *clos = data; | ||
- char *str = item; | ||
+ struct mu_config_value *cval = item; | ||
+ char const *str; | ||
size_t len; | ||
char *key, *val; | ||
int rc; | ||
+ | ||
+ if (mu_cfg_assert_value_type (cval, MU_CFG_STRING)) | ||
+ return 1; | ||
+ str = cval->v.string; | ||
|
||
len = strcspn (str, "="); | ||
if (str[len] == 0) | ||
diff --git a/libmu_auth/sql.c b/libmu_auth/sql.c | ||
index d69c36c..c50598d 100644 | ||
--- a/libmu_auth/sql.c | ||
+++ b/libmu_auth/sql.c | ||
@@ -214,20 +214,23 @@ mu_sql_expand_query (const char *query, const char *ustr) | ||
static int | ||
get_field (mu_sql_connection_t conn, const char *id, char **ret, int mandatory) | ||
{ | ||
- const char **name = mu_assoc_ref (mu_sql_module_config.field_map, id); | ||
- int rc = mu_sql_get_field (conn, 0, name ? *name : id, ret); | ||
+ int rc; | ||
+ const char *name = mu_assoc_get (mu_sql_module_config.field_map, id); | ||
+ if (!name) | ||
+ name = id; | ||
+ rc = mu_sql_get_field (conn, 0, name, ret); | ||
if (rc) | ||
{ | ||
if (mandatory || rc != MU_ERR_NOENT) | ||
mu_error (_("cannot get SQL field `%s' (`%s'): %s"), | ||
- id, name ? *name : id, mu_strerror (rc)); | ||
+ id, name, mu_strerror (rc)); | ||
} | ||
else if (!*ret) | ||
{ | ||
if (mandatory) | ||
{ | ||
mu_error (_("SQL field `%s' (`%s') has NULL value"), | ||
- id, name ? *name : id); | ||
+ id, name); | ||
rc = MU_ERR_READ; | ||
} | ||
else | ||
-- | ||
cgit v1.0-41-gc330 | ||
|
14 changes: 14 additions & 0 deletions
14
pkgs/tools/networking/mailutils/fix-build-mb-len-max.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/frm/frm.h b/frm/frm.h | ||
index 178b87d54..7931faada 100644 | ||
--- a/frm/frm.h | ||
+++ b/frm/frm.h | ||
@@ -34,6 +34,9 @@ | ||
#ifdef HAVE_ICONV_H | ||
# include <iconv.h> | ||
#endif | ||
+#ifdef HAVE_LIMITS_H | ||
+# include <limits.h> | ||
+#endif | ||
#ifndef MB_LEN_MAX | ||
# define MB_LEN_MAX 4 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/mh/tests/ali.at b/mh/tests/ali.at | ||
index 28c0e5451..c76cf9363 100644 | ||
--- a/mh/tests/ali.at | ||
+++ b/mh/tests/ali.at | ||
@@ -85,9 +85,9 @@ ali -a ./mh_aliases korzen | tr -d ' ' | ||
[expout]) | ||
|
||
MH_CHECK([ali: group id],[ali05 ali-group-id ali-gid],[ | ||
-cat /etc/passwd | awk -F : '/^#/ { next } $4==0 { print $1 }' > expout | ||
+cat /etc/passwd | awk -F : '/^#/ { next } $4==0 { print $1; exit }' > expout | ||
test -s expout || AT_SKIP_TEST | ||
-name=`awk -F : '/^#/ { next } $3==0 { print $1 }' /etc/group < /dev/null` | ||
+name=`awk -F : '/^#/ { next } $3==0 { print $1; exit }' /etc/group < /dev/null` | ||
test -z "$name" && AT_SKIP_TEST | ||
|
||
echo "korzen: +$name" > mh_aliases |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file is part of GNU Mailutils. -*- Autotest -*- | ||
# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc. | ||
# | ||
# GNU Mailutils is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 3, or (at | ||
# your option) any later version. | ||
# | ||
# GNU Mailutils is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
READMSGTEST([readmsg -h],[hdr], | ||
[readmsg -h SOMETHING], | ||
[0], | ||
[From [email protected] Fri Dec 28 23:28:09 2001 | ||
Received: (from [email protected]) | ||
by dontmailme.org id fERKR9N16790 | ||
for [email protected]; Fri, 28 Dec 2001 22:18:08 +0200 | ||
Date: Fri, 28 Dec 2001 23:28:08 +0200 | ||
From: Bar <[email protected]> | ||
To: Foo Bar <[email protected]> | ||
Message-Id: <[email protected]> | ||
Subject: Re: Jabberwocky | ||
|
||
It seems very pretty, but it's *rather* hard to understand!' | ||
Somehow it seems to fill my head with ideas -- only I don't | ||
exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
that's clear, at any rate... | ||
|
||
|
||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file is part of GNU Mailutils. -*- Autotest -*- | ||
# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc. | ||
# | ||
# GNU Mailutils is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 3, or (at | ||
# your option) any later version. | ||
# | ||
# GNU Mailutils is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
READMSGTEST([readmsg -n],[nohdr], | ||
[readmsg -n SOMETHING], | ||
[0], | ||
[It seems very pretty, but it's *rather* hard to understand!' | ||
Somehow it seems to fill my head with ideas -- only I don't | ||
exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
that's clear, at any rate... | ||
|
||
|
||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# This file is part of GNU Mailutils. -*- Autotest -*- | ||
# Copyright (C) 2007-2012, 2014-2015 Free Software Foundation, Inc. | ||
# | ||
# GNU Mailutils is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License as | ||
# published by the Free Software Foundation; either version 3, or (at | ||
# your option) any later version. | ||
# | ||
# GNU Mailutils is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
READMSGTEST([readmsg 1 2],[twomsg], | ||
[1 2], | ||
[0], | ||
[Date: Fri, 28 Dec 2001 22:18:08 +0200 | ||
From: Foo Bar <[email protected]> | ||
To: Bar <[email protected]> | ||
Subject: Jabberwocky | ||
|
||
`Twas brillig, and the slithy toves | ||
Did gyre and gimble in the wabe; | ||
All mimsy were the borogoves, | ||
And the mome raths outgrabe. | ||
|
||
`Beware the Jabberwock, my son! | ||
The jaws that bite, the claws that catch! | ||
Beware the Jujub bird, and shun | ||
The frumious Bandersnatch!' | ||
|
||
He took his vorpal sword in hand: | ||
Long time the manxome foe he sought -- | ||
So rested he by the Tumtum gree, | ||
And stood awhile in thought. | ||
|
||
And as in uffish thought he stood, | ||
The Jabberwock, with eyes of flame, | ||
Came whiffling through the tulgey wook, | ||
And burbled as it came! | ||
|
||
One, two! One, two! And through and through | ||
The vorpal blade went snicker-snack! | ||
He left it dead, and with its head | ||
He went galumphing back. | ||
|
||
`And has thou slain the Jabberwock? | ||
Come to my arms, my beamish boy! | ||
O frabjous day! Calloh! Callay! | ||
He chortled in his joy. | ||
|
||
`Twas brillig, and the slithy toves | ||
Did gyre and gimble in the wabe; | ||
All mimsy were the borogoves, | ||
And the mome raths outgrabe. | ||
|
||
|
||
Date: Fri, 28 Dec 2001 23:28:08 +0200 | ||
From: Bar <[email protected]> | ||
To: Foo Bar <[email protected]> | ||
Subject: Re: Jabberwocky | ||
|
||
It seems very pretty, but it's *rather* hard to understand!' | ||
Somehow it seems to fill my head with ideas -- only I don't | ||
exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
that's clear, at any rate... | ||
|
||
|
||
]) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where these files added later to upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They have always been in the upstream repository, but they are missing from the released archive! I copied this fix from http://data.gpo.zugaina.org/gentoo/net-mail/mailutils/mailutils-3.2.ebuild
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use repository snapshot which contains these files: http://git.savannah.gnu.org/cgit/mailutils.git/snapshot/mailutils-release-3.2.tar.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then please switch to the other url.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turned out to be more involved. Bootstrapping the build requires a git checkout (and wget, and rsync), so I used fetchgit and added additional dependencies to run
./bootstrap
.