Bug 182639 - Packages inheriting elisp-common and using a wrong condition for calling elisp-site-regen
|
Bug#:
182639
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: emacs@gentoo.org
|
Reported By: ulm@gentoo.org
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: Packages inheriting elisp-common and using a wrong condition for calling elisp-site-regen
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-06-20 05:58 0000
|
The following packages inherit elisp-common.eclass but do not use the right
condition for calling elisp-site-regen:
app-i18n/anthy/anthy
app-i18n/anthy-ss
app-i18n/uim-svn
kde-base/kdvi
app-office/magicpoint
dev-util/bzr
dev-util/mercurial
The typical pattern (with some variations) is:
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
has_version virtual/emacs && elisp-site-regen
}
This is WRONG. The condition should be "use emacs" both in pkg_postinst() and
pkg_postrm(). Please fix it in your packages.
kde-base/kdvi is fixed. KDE is out of here. :-)
Fixed dev-util/bzr, thanks for complaining :)
i think its wrong solution.
For example,
# USE=emacs emerge anthy
# USE=-emacs emerge anthy
50anthy-gentoo.el was removed and elisp-site-regen didn't run.
(In reply to comment #3)
> i think its wrong solution.
But obviously, you didn't bother testing it. ;-)
> For example,
> # USE=emacs emerge anthy
> # USE=-emacs emerge anthy
The status of USE=emacs when unmerging is taken from the database, so unsetting
it between merge and unmerge has no effect.
I'm sorry. that's right. I didn't test it.
app-i18n/anthy
app-i18n/anthy-ss
app-i18n/uim-svn
fixed.
Thanks for pointing this out. dev-util/mercurial fixed with no rev bump.
Fixed app-office/magicpoint myself, since usata is away.