diff options
author | Sebastian Pipping <sping@gentoo.org> | 2012-01-08 16:48:58 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2012-01-08 16:48:58 +0000 |
commit | 68c108d87d79f170c48c4c92dbb7a22afe4ff0d7 (patch) | |
tree | e3d371b46636778286fb75b085e45864e21ea559 /net-mail | |
parent | Cleanup old (diff) | |
download | gentoo-2-68c108d87d79f170c48c4c92dbb7a22afe4ff0d7.tar.gz gentoo-2-68c108d87d79f170c48c4c92dbb7a22afe4ff0d7.tar.bz2 gentoo-2-68c108d87d79f170c48c4c92dbb7a22afe4ff0d7.zip |
net-mail/mpack: Apply bugfix patches
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/mpack/ChangeLog | 6 | ||||
-rw-r--r-- | net-mail/mpack/files/mpack-1.6-filenames.patch | 30 | ||||
-rw-r--r-- | net-mail/mpack/files/mpack-1.6-usage.patch | 25 | ||||
-rw-r--r-- | net-mail/mpack/mpack-1.6-r2.ebuild | 5 |
4 files changed, 64 insertions, 2 deletions
diff --git a/net-mail/mpack/ChangeLog b/net-mail/mpack/ChangeLog index ada94213edec..3dc860931af0 100644 --- a/net-mail/mpack/ChangeLog +++ b/net-mail/mpack/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-mail/mpack # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/ChangeLog,v 1.19 2012/01/04 18:00:43 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/ChangeLog,v 1.20 2012/01/08 16:48:58 sping Exp $ + + 08 Jan 2012; Sebastian Pipping <sping@gentoo.org> mpack-1.6-r2.ebuild, + +files/mpack-1.6-filenames.patch, +files/mpack-1.6-usage.patch: + Apply bugfix patches 04 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> mpack-1.6-r2.ebuild: x86 stable wrt bug #171075 diff --git a/net-mail/mpack/files/mpack-1.6-filenames.patch b/net-mail/mpack/files/mpack-1.6-filenames.patch new file mode 100644 index 000000000000..6a1fc225a791 --- /dev/null +++ b/net-mail/mpack/files/mpack-1.6-filenames.patch @@ -0,0 +1,30 @@ +From 10aad11d7baf7044328fff616b9c6f1859bd2cbd Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sun, 8 Jan 2012 17:36:20 +0100 +Subject: [PATCH 1/2] Use actual filenames for unpacking (rather than + "part[0-9]+") + +Example: +# curl http://pbot.rmdir.de/b224d87617c5d76d6cd938bd4410fabf | ./munpack +--- + decode.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/decode.c b/decode.c +index 8b8df56..7349abd 100644 +--- a/decode.c ++++ b/decode.c +@@ -546,8 +546,8 @@ getDispositionFilename(char *disposition) + SkipWhitespace(&disposition); + if (!disposition) return 0; + +- /* If we're looking at a ";", we found what we're looking for */ +- if (*disposition++ == ';') break; ++ /* If we're looking at a "=", we found what we're looking for */ ++ if (*disposition++ == '=') break; + } + + SkipWhitespace(&disposition); +-- +1.7.8.3 + diff --git a/net-mail/mpack/files/mpack-1.6-usage.patch b/net-mail/mpack/files/mpack-1.6-usage.patch new file mode 100644 index 000000000000..f4f07e530ee9 --- /dev/null +++ b/net-mail/mpack/files/mpack-1.6-usage.patch @@ -0,0 +1,25 @@ +From 74fd172db4961ab07f134a60cd88955fb170f11d Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sun, 8 Jan 2012 17:39:51 +0100 +Subject: [PATCH 2/2] Mention parameter -t in usage output + +--- + unixunpk.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/unixunpk.c b/unixunpk.c +index 0f5fa85..1320b70 100644 +--- a/unixunpk.c ++++ b/unixunpk.c +@@ -101,7 +101,7 @@ int main(int argc, char **argv) + + void usage(void) { + fprintf(stderr, "munpack version %s\n", MPACK_VERSION); +- fprintf(stderr, "usage: munpack [-f] [-q] [-C directory] [files...]\n"); ++ fprintf(stderr, "usage: munpack [-f] [-q] [-t] [-C directory] [files...]\n"); + exit(1); + } + +-- +1.7.8.3 + diff --git a/net-mail/mpack/mpack-1.6-r2.ebuild b/net-mail/mpack/mpack-1.6-r2.ebuild index 6b2eb070c37f..e92cb345f985 100644 --- a/net-mail/mpack/mpack-1.6-r2.ebuild +++ b/net-mail/mpack/mpack-1.6-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/mpack-1.6-r2.ebuild,v 1.4 2012/01/04 18:00:43 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mpack/mpack-1.6-r2.ebuild,v 1.5 2012/01/08 16:48:58 sping Exp $ EAPI="3" @@ -18,6 +18,9 @@ KEYWORDS="amd64 ~sparc x86 ~ppc-macos ~sparc-solaris ~x86-solaris" IUSE="" src_prepare() { + epatch "${FILESDIR}"/${P}-filenames.patch + epatch "${FILESDIR}"/${P}-usage.patch + # NOTE: These three patches replace <mpack-1.6-gentoo.patch> epatch "${FILESDIR}"/${P}-compile.patch epatch "${FILESDIR}"/${P}-paths.patch |