Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58664 - pine should preserve symbolic links when writing .pinerc
Summary: pine should preserve symbolic links when writing .pinerc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Net-Mail Packages
URL: http://www.math.washington.edu/~chapp...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-28 08:20 UTC by Haroon Rafique
Modified: 2006-10-06 18:04 UTC (History)
1 user (show)

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


Attachments
preserve symlinks when writing files (pine-4.61-preserve-symlink.patch,844 bytes, patch)
2004-07-28 08:22 UTC, Haroon Rafique
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Haroon Rafique 2004-07-28 08:20:40 UTC
I have a patch which allows you to preserve a symbolic link when Pine rewrites a file. For example, if your .pinerc file is a symbolic link to another file, when Pine rewrites the .pinerc file, the symbolic link is lost. This patch will preserve that symbolic link.

Eduardo Chappa already has this patch:
http://www.math.washington.edu/~chappa/pine/info/rename-symlink.html
Dunno why he doesn't include it in chappa-all.patch.gz?

If you save this patch in the files directory, then the ebuild can use epatch to patch the affected file as follows.

--- pine-4.61.ebuild.orig       2004-07-28 11:18:32.258662027 -0400
+++ pine-4.61.ebuild    2004-07-28 11:18:33.849497506 -0400
@@ -70,6 +70,8 @@
        #epatch "${FILESDIR}/pine-4.33-whitespace.patch"
        # Bug #23336 - makes pine transparent in terms that support it.
        epatch "${FILESDIR}/transparency.patch"
+       # preserve symbolic links when writing files
+       epatch "${FILESDIR}/${P}-preserve-symlink.patch"
 
        if use debug ; then
                sed -e "s:-g -DDEBUG -DDEBUGJOURNAL:${CFLAGS} -g -DDEBUG -DDEBUGJOURNAL:" \
Comment 1 Haroon Rafique 2004-07-28 08:22:25 UTC
Created attachment 36333 [details, diff]
preserve symlinks when writing files
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2006-10-06 18:04:28 UTC
Perhaps you have already forgotten about this, but our bugzilla hasn't. :)

The patch is included in pine-4.64-r5, which was just committed to CVS. Allow some time for updated chappa-all patchset to distribute on distfiles mirrors.