tags 339541 + patch thanks On Fri, Jun 09, 2006 at 12:18:32PM +0100, Ian Jackson wrote: > The current gnus package should be made to try to fix this up. The > best thing is probably to try to look only for the specific > erroneous link (eg, compare the output of readlink with the fixed > target filename) and remove the link if it exists. I would be very > happy to review and comment on the proposed patch.
Here's a patch to do that; before configure, it checks for the existence of the given symlink, and if it exists, removes it. Testing would be appreciated. I've been asked not to NMU any of James' packages, but I take it he'll get to it after a while. /* Steinar */ -- Homepage: http://www.sesse.net/
diff -u gnus-5.10.6-0.CVS.20050317/debian/postinst gnus-5.10.6-0.CVS.20050317/debian/postinst --- gnus-5.10.6-0.CVS.20050317/debian/postinst +++ gnus-5.10.6-0.CVS.20050317/debian/postinst @@ -112,6 +112,17 @@ case "$1" in configure) + # Some old version of this package let a symlink from + # /etc/xemacs21/site-start.d/20gnus-init.el to + # /usr/share/emacs/site-lisp/gnus/gnus-init.el stay, so remove it + # if it exists. This needs to be done before configuring the + # package using emacs-package-install, as it attempts to symlink + # on top of the same place. + if [ -L /etc/xemacs21/site-start.d/20gnus-init.el ] && + [ "`readlink -nf /etc/xemacs21/site-start.d/20gnus-init.el`" = "/usr/share/emacs/site-lisp/gnus/gnus-init.el" ]; then + rm -f /etc/xemacs21/site-start.d/20gnus-init.el + fi + # Configure this package. If the package must prompt the user for # information, do it here. # Install emacs lisp files