Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185240 - app-editors/kile tetex dependency
Summary: app-editors/kile tetex dependency
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-13 21:40 UTC by arek
Modified: 2007-07-13 21:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arek 2007-07-13 21:40:29 UTC
Is it possible, you add 'tetex' (or better 'notetex') USE flag, which tells to install (or not) the 'tetex' package?

Some packages use the tetex USE flag to decide install 'tetex' or not, but the kile "can't work" without tex/latex "compilator" - it doesn't make sense to install kile if you don't have latex. So, I think it would be more safety (for fresh users) to add 'notetex' flag (not set by default).
I mean something like this in kile ebuild:
--------------------
RDEPEND="dev-lang/perl
        tetex? ( virtual/tetex
                        dev-tex/latex2html ) # because tetex is a latex2html dependency
        kde? ( || ( ( kde-base/kpdf
                      kde-base/kghostview
                      kde-base/kdvi
                      kde-base/kviewshell )
                    kde-base/kdegraphics ) )"
--------------------

or better
--------------------
RDEPEND="dev-lang/perl
        !notetex? ( virtual/tetex
                            dev-tex/latex2html )      # because tetex is a latex2html dependency
        kde? ( || ( ( kde-base/kpdf
                      kde-base/kghostview
                      kde-base/kdvi
                      kde-base/kviewshell )
                    kde-base/kdegraphics ) )"
--------------------

The same situation is with 'dev-tex/latex2html' - it force people to using tetex. Some people wants to manage the tex/latex installation by itself.
Somebody adds 'tetex' to '/etc/make.profile/package.provided', but it isn't the best way. It's not work with paludis too.
I'm not an ebuilds specialist, so there are possible bugs in my code ;).
If 'dev-tex/latex2html' don't need virtual/tetex it would stay as a RDEPEND for kile (it's not a big package instead of huge tetex).
There are some more packages, with the same "hard" dependency as kile (but I don't use it for now ;), so I don't need to "fix" it).

Another way to "resolve" 'tetex' dependency problem in all packages (not only in kile) would be add new ebuild which only provides 'virtual/tetex', and do nothing (during installation).

Reproducible: Always

Steps to Reproduce:
1.emerge -av kile

Actual Results:  
some packages, and
[ebuild  N    ] app-text/tetex-3.0_p1-r3  USE="X -Xaw3d -doc -lesstif -motif -neXt -tk" 102,657 kB


Expected Results:  
some packages, without 'tetex'

Some people need it because latex binaries are available on a server (by nfs for example), and should not be install on all machines. Another people wants to use own latex installation, because they have specific requirements. For example when I install tetex I have all tetex file on my machine. When I use the original texlive installation scripts (not an ebuild) for installation  I can decide which components I want to put to my system.

The texlive is very advance distribution  of latex, but you have to install it manually (not with ebuild). There is possible to have multi-OS distribution of latex installed on linux server. Clients (Linux and Windows clients) can use latex from my server (using nfs for example) -> MSWindows clients can use MSWindows latex binaries from linux server.

So, as you see, it is very important to  have possibility, to not install tetex with kile (and other packages). Otherwise I must install kile with tetex, and texlive. Afterwards I have two latex distributions installed on my server. It is a disk space loss (and possible cause another problems).

It's true, I can add tetex to /etc/make.profile/package.provided but it's not elegant way, and for example paludis doesn't provide package.provided functionality.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-13 21:49:00 UTC
> kile "can't work" without tex/latex "compilator" - it doesn't make sense to
> install kile if you don't have latex.

Well, if something doesn't work without a dependency, then clearly the dependency is not optional at all and there can't be any use flag for that. Paludis missing features are irrelevant here. Sorry.