FreeBSD Bugzilla – Attachment 188869 Details for
Bug 224374
[PATCH] mail/mutt: Update to mutt 1.9.2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Update to mutt 1.9.2
0001-Update-to-mutt-1.9.2.patch (text/plain), 5.25 KB, created by
Derek Schrock
on 2017-12-16 04:26:14 UTC
(
hide
)
Description:
Update to mutt 1.9.2
Filename:
MIME Type:
Creator:
Derek Schrock
Created:
2017-12-16 04:26:14 UTC
Size:
5.25 KB
patch
obsolete
>From 99eb964eb3fc74ca8729d8b7919194f99f22c910 Mon Sep 17 00:00:00 2001 >From: Derek Schrock <dereks@lifeofadishwasher.com> >Date: Fri, 15 Dec 2017 23:00:54 -0500 >Subject: [PATCH] Update to mutt 1.9.2 > >- Update to mutt 1.9.2 [1] >- Bring ats date-conditional back as a local patch file > - Due to the patch not having versioning an update can break the port > if the hash of the file changes >- Update greeting patch to 1.9.1 > >[1] https://marc.info/?l=mutt-users&m=151339566608610&w=2 >--- > mail/mutt/Makefile | 10 ++-- > mail/mutt/distinfo | 12 ++--- > mail/mutt/files/patch-date-conditional | 97 ++++++++++++++++++++++++++++++++++ > 3 files changed, 106 insertions(+), 13 deletions(-) > create mode 100644 mail/mutt/files/patch-date-conditional > >diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile >index 67a79051f8..7092ada63e 100644 >--- a/mail/mutt/Makefile >+++ b/mail/mutt/Makefile >@@ -2,8 +2,8 @@ > # $FreeBSD$ > > PORTNAME= mutt >-PORTVERSION= 1.9.1 >-PORTREVISION?= 1 >+PORTVERSION= 1.9.2 >+PORTREVISION?= 0 > CATEGORIES+= mail ipv6 > MASTER_SITES= ftp://ftp.mutt.org/pub/mutt/ \ > ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \ >@@ -17,10 +17,8 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} > > PATCH_SITES+= http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ > http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \ >- https://github.com/aschrab/mutt/compare/dev-base...feature/:ats \ > http://vc.org.ua/mutt/:vc > PATCH_DIST_STRIP= -p1 >-PATCHFILES= date-conditional.diff:ats > > MAINTAINER?= dereks@lifeofadishwasher.com > COMMENT?= Small but powerful text based program for read/writing e-mail >@@ -204,8 +202,8 @@ DOCS_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-doc-ref > .include <bsd.port.options.mk> > > # un/comment as each VERSION is created for PORTVERSION >-#VVV_PATCH_VERSION= 1.8.3 >-GREETING_PATCH_VERSION= 1.9.0 >+VVV_PATCH_VERSION= 1.9.1 >+GREETING_PATCH_VERSION= 1.9.1 > > .if !defined(VVV_PATCH_VERSION) > VVV_PATCH_VERSION= ${PORTVERSION} >diff --git a/mail/mutt/distinfo b/mail/mutt/distinfo >index f811a3a838..ecb41ea828 100644 >--- a/mail/mutt/distinfo >+++ b/mail/mutt/distinfo >@@ -1,10 +1,8 @@ >-TIMESTAMP = 1506285098 >-SHA256 (mutt/mutt-1.9.1.tar.gz) = 749b83a96373c6e2101ebe8c4b9a651735e02c478edb750750a5146a15d91bb1 >-SIZE (mutt/mutt-1.9.1.tar.gz) = 4193868 >-SHA256 (mutt/date-conditional.diff) = 8936c5fe7a2a62a68f2a8d001c7a6dddf138c48186a338482b6639507ba9133e >-SIZE (mutt/date-conditional.diff) = 2023 >-SHA256 (mutt/mutt-1.9.0.vc.greeting) = b4ac804c24a07c7eb8330ebfdc94cdbf6fd7a4671badfb32fb611df09c008317 >-SIZE (mutt/mutt-1.9.0.vc.greeting) = 4534 >+TIMESTAMP = 1513396241 >+SHA256 (mutt/mutt-1.9.2.tar.gz) = a2e152a352bbf02d222d54074199d9c53821c19f700c4cb85f78fa85faed7896 >+SIZE (mutt/mutt-1.9.2.tar.gz) = 4195627 >+SHA256 (mutt/mutt-1.9.1.vc.greeting) = b4ac804c24a07c7eb8330ebfdc94cdbf6fd7a4671badfb32fb611df09c008317 >+SIZE (mutt/mutt-1.9.1.vc.greeting) = 4534 > SHA256 (mutt/patch-1.9.1.vvv.nntp.gz) = f7098b713dfcbb2a4a6e5edaf536eb99be6d92fad073d5d3ac436b0191c7c892 > SIZE (mutt/patch-1.9.1.vvv.nntp.gz) = 60687 > SHA256 (mutt/patch-1.9.1.vvv.initials.gz) = 4673ca438fb673dfee09c6b8b8f9e8e78af06056f1b515c6030b0533dae847e5 >diff --git a/mail/mutt/files/patch-date-conditional b/mail/mutt/files/patch-date-conditional >new file mode 100644 >index 0000000000..9cbae9c371 >--- /dev/null >+++ b/mail/mutt/files/patch-date-conditional >@@ -0,0 +1,97 @@ >+--- PATCHES.orig 2017-12-03 03:10:17 UTC >++++ PATCHES >+@@ -0,0 +1 @@ >++patch-1.5.0.ats.date_conditional.1 >+--- hdrline.c.orig 2017-12-03 03:10:17 UTC >++++ hdrline.c >+@@ -428,6 +428,53 @@ hdr_format_str (char *dest, >+ const char *cp; >+ struct tm *tm; >+ time_t T; >++ int i = 0, invert = 0; >++ >++ if (optional && (op == '[' || op == '(')) { >++ char *is; >++ T = time(NULL); >++ T -= (op == '(') ? hdr->received : hdr->date_sent; >++ >++ is = (char *)prefix; >++ if( *is == '>' ) { >++ invert = 1; >++ ++is; >++ } >++ >++ while( *is && *is != '?' ) { >++ int t = strtol (is, &is, 10); >++ switch (*(is++)) { >++ case '?': >++ break; >++ case 'y': >++ t *= 365 * 24 * 60 * 60; >++ break; >++ case 'M': >++ t *= 30 * 24 * 60 * 60; >++ break; >++ case 'w': >++ t *= 7 * 24 * 60 * 60; >++ break; >++ case 'd': >++ t *= 24 * 60 * 60; >++ break; >++ case 'h': >++ t *= 60 * 60; >++ break; >++ case 'm': >++ t *= 60; >++ break; >++ } >++ i += t; >++ } >++ >++ if (i < 0) >++ i *= -1; >++ >++ if( (T > i || T < -1*i) ^ invert ) >++ optional = 0; >++ break; >++ } >+ >+ p = dest; >+ >+--- muttlib.c.orig 2017-12-03 03:10:17 UTC >++++ muttlib.c >+@@ -1335,7 +1335,16 @@ void mutt_FormatString (char *dest, /* >+ if (*src == '?') >+ { >+ flags |= MUTT_FORMAT_OPTIONAL; >+- src++; >++ ch = *(++src); /* save the character to switch on */ >++ cp = prefix; >++ ++src; >++ count = 0; >++ while (count < sizeof (prefix) && *src != '?') >++ { >++ *cp++ = *src++; >++ count++; >++ } >++ *cp = 0; >+ } >+ else >+ { >+@@ -1351,12 +1360,12 @@ void mutt_FormatString (char *dest, /* >+ count++; >+ } >+ *cp = 0; >+- } >+ >+- if (!*src) >+- break; /* bad format */ >++ if (!*src) >++ break; /* bad format */ >+ >+- ch = *src++; /* save the character to switch on */ >++ ch = *src++; /* save the character to switch on */ >++ } >+ >+ if (flags & MUTT_FORMAT_OPTIONAL) >+ { >-- >2.15.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224374
: 188869 |
188870