Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 47854

Summary: IUSE="emacs" should be added to several packages
Product: Gentoo Linux Reporter: Andrew Kirilenko <andrew.kirilenko>
Component: Current packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: enhancement CC: aliz, base-system, mkennedy, scandium
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: openssl with emacs IUSE
cvs with IUSE for emacs
ghostscript with IUSE emacs
gettext with IUSE emacs
libidn with IUSE emacs

Description Andrew Kirilenko 2004-04-14 16:04:26 UTC
Several, packages are installing unnecessary emacs files:

dev-libs/openssl
dev-util/cvs
app-text/ghostscript
sys-devel/gettext

They should do this only when "emacs" is in USE. Required changes are trivial:

1. Add emacs to IUSE
2. Surround emacs-related parts with "if [ `use emacs` ]".
Comment 1 Markus Knittig 2004-04-20 01:21:01 UTC
libidn install also emacs files.
Comment 2 Eric Brown 2004-04-23 10:40:39 UTC
leme see what i can do
Comment 3 Eric Brown 2004-04-23 10:57:27 UTC
Created attachment 29905 [details]
openssl with emacs IUSE

Added IUSE="emacs"
it looks like it only installed /usr/share/emacs/site-lisp/c-indent.el or
something.. so i put the two lines for that into an if use emacs; then ...fi
ok?

after emerge -u openssl, i don't have that lisp file in that dir.
Comment 4 Eric Brown 2004-04-23 11:07:15 UTC
Created attachment 29907 [details]
cvs with IUSE for emacs

IUSE="emacs" added
if use emacs ; then ... fi added around lisp file installation lines
Comment 5 Eric Brown 2004-04-23 11:20:44 UTC
Created attachment 29911 [details]
ghostscript with IUSE emacs

IUSE=emacs
put if use emacs ; then .. fi
Comment 6 Eric Brown 2004-04-23 12:30:12 UTC
Created attachment 29913 [details]
gettext with IUSE emacs

ugh, IUSE=emacs
also did a little hack to rm -rf ${D}/usr/share/emacs so the new lisp files
would not be installed when emacs was not defined.

i no longer have /usr/share/emacs (which probably means that this is OK, and
gettext was the app that created /usr/share/emacs for me and there were no
installations there so it all went away.. i am sandboxed :)
Comment 7 Eric Brown 2004-04-23 12:53:23 UTC
Created attachment 29914 [details]
libidn with IUSE emacs

simple hack like before.. works (i tested it)
Comment 8 Eric Brown 2004-04-23 12:53:44 UTC
ok can someone upload these ebuilds please :)
Comment 9 Andrew Kirilenko 2004-04-23 13:54:17 UTC
I guess, because the changes are not important, it'll be good idea to apply them with the next version of each package :)
Comment 10 Eric Brown 2004-04-23 19:01:55 UTC
im not the maintainer for these packages though, so chances are, if the changes dont get put into the db now, they'll just copy/paste the existing ones to make the version bump. (at least i'm guessing they're as lazy as me...)

where are all the portage admins :)
Comment 11 Rainer Größlinger (RETIRED) gentoo-dev 2004-04-25 04:56:37 UTC
Speaking for the cvs ebuild, I'll add this when doing cvs-1.11.15-r1, together with some kerberos changes (see bug 32480).

It may take some days until I figured all the kerberos related things (and problems!) out, though.
Comment 12 Daniel Ahlberg (RETIRED) gentoo-dev 2004-04-25 10:18:44 UTC
Added to openssl ebuild.
Comment 13 Heinrich Wendel (RETIRED) gentoo-dev 2004-04-28 03:57:32 UTC
added to ghostscript
Comment 14 Rainer Größlinger (RETIRED) gentoo-dev 2004-05-08 08:24:16 UTC
added to cvs-1.11.15

aliz: you forgot to remove the 2 lines above the "if use emacs;..." in the openssl ebuild, it now adds the emacs thing (just like before) and then checks if emacs is in USE and does the same again ;)

btw. can we mark the attachments where the ebuilds have the change applied as obsolete so that we know when to close this bug?
Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2004-05-23 20:23:47 UTC
I'll add to gettext and close this bug out
Comment 16 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-02 12:42:18 UTC
done, thanks Eric