Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486776 - dev-libs/gmime-2.6.18 back to 2.6.16: bad references header folding [upstream patchs available]
Summary: dev-libs/gmime-2.6.18 back to 2.6.16: bad references header folding [upstream...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 10:18 UTC by Duncan
Modified: 2013-10-02 19:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2013-10-02 10:18:43 UTC
I'm involved with upstream net-nntp/pan, and on the list there, a references header folding bug was reported that with some help getting me on the gmime track, I ultimately traced to dev-libs/gmime-2.16+ -- from a commit made after gmime-2.6.15.  (You may remember that recently, my own posts to gentoo-dev weren't threading properly.  This was the bug!)

I reported that bug upstream and it was recently fixed in gmime's git, but too late for gmime-2.6.18, so it'll hit 2.6.19.  However, I've confirmed the fix by applying the two patches locally to 2.6.18, and it may be worthwhile cherrypicking them for gentoo's affected versions 2.6.16-2.6.18 that remain in-tree as I'm sure it'll reduce the annoyance of anyone on lists frequented by posters running clients built against the affected versions.

Here's the upstream bug (I'll fill in the URL field after filing as it's not available to fill in ATM):

https://bugzilla.gnome.org/show_bug.cgi?id=709031

Here's links to the commits fixing the problem.  Of course patches can be downloaded directly from them.

https://git.gnome.org/browse/gmime/commit/?id=a248cc044c6ad55505939363aa858c930867a014

... and ...

https://git.gnome.org/browse/gmime/commit/?id=1373f11f9b3ecdbfb58a70a742506f3f6d5c57d8

Three notes:

1) These apply on top of 2.6.18; I didn't try earlier.

2) Apply them in order as I didn't check but I think the second depends on the first.

3) The first commit includes a chunk applying to the changelog.  That chunk won't apply directly to 2.6.18 as there have been other changes logged since release that screw up the context, but since it's just the changelog, I simply deleted that chunk, and with it deleted, both that patch and the second apply directly to 2.6.18, and from all my testing so far, fix the problem they were designed to fix. =:^)


(metadata.xml says both gmime and pan belong to the gnome herd so I'm setting gnome component instead of the libraries component I was originally going to use.)

Thanks, Duncan
Comment 1 Duncan 2013-10-02 10:20:13 UTC
Filling in URL field...
Comment 2 Pacho Ramos gentoo-dev 2013-10-02 19:24:19 UTC
+*gmime-2.6.18-r1 (02 Oct 2013)
+
+  02 Oct 2013; Pacho Ramos <pacho@gentoo.org>
+  +files/gmime-2.6.18-close-reference.patch,
+  +files/gmime-2.6.18-code-cleanup.patch,
+  +files/gmime-2.6.18-custom-headers.patch,
+  +files/gmime-2.6.18-mutexes-earlier.patch, +gmime-2.6.18-r1.ebuild,
+  -gmime-2.6.17.ebuild, -gmime-2.6.18.ebuild:
+  Apply upstream fixes, also solving problems with pan (#486776 by Duncan), drop
+  old.
+