#2 /usr/share/emacs/site-lisp/site-start.el lost on uninstall

closed-later
Bruce Ingalls
None
5
2004-12-23
2004-11-30
Vadim Nasardinov
No

I downloaded emacro-2004-7-noarch.rpm from
http://prdownloads.sourceforge.net/emacro/emacro-2004-7-noarch.rpm?download
http://voxel.dl.sourceforge.net/sourceforge/emacro/emacro-2004-7-noarch.rpm

Before installing it, I looked at the pre- and
post-install scriptlets
by running

$ rpm -qp --scripts emacro-2004-7-noarch.rpm

The preuninstall scriptlet is

if [ -f
/usr/share/emacs/site-lisp/site-start.el.pkgsave ];then
rm -f /usr/share/emacs/site-lisp/site-start.el.pkgsave \ /usr/share/emacs/site-lisp/site-start.el;
fi

if [ -f
/usr/share/xemacs/site-packages/lisp/site-start.el.pkgsave
];then
/bin/mv -f
/usr/share/xemacs/site-packages/lisp/site-start.el.pkgsave
\ /usr/share/xemacs/site-packages/lisp/site-start.el;
fi

Note that instead of rm'ing both site-start.el.pkgsave and
site-start.el, it should be mv'ing site-start.el.pkgsave to
site-start.el. In other words, the case of
/usr/share/emacs/site-lisp/ should be handled similarly to
/usr/share/xemacs/site-lisp/.

To confirm this bug empirically, I saved a copy of
/usr/share/emacs/site-lisp/site-start.el and performed an
install/uninstall of the RPM. As expected,
/usr/share/emacs/site-lisp/site-start.el disappeared
after uninstall,
instead of being reverted to the old version.

Discussion

  • Bruce Ingalls
    Bruce Ingalls
    2004-12-23

    Logged In: YES
    user_id=58006

    Thanks.
    My script source is actually in
    /usr/share/elisp/emacro/dist/unix, so this affects all
    packages, except w32, cygwin and possibly Mac.
    I have some more bugs and feature requests; hopefully, this
    will come clean in the next 2 weeks.

     
  • Bruce Ingalls
    Bruce Ingalls
    2004-12-23

    • labels: 103378 -->
    • milestone: 101985 -->
    • assigned_to: nobody --> bingalls
    • status: open --> closed-later