Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge going weird
Date: Sat, 31 Dec 2005 17:28:34
Message-Id: 9acccfe50512310917w49b10dd3l5c773492e4c053eb@mail.gmail.com
In Reply to: Re: [gentoo-user] emerge going weird by Holly Bostick
1 Synopsis: I do have java 1.5 unmasked. I need it for the classes I teach.
2 So why doesn't db use java 1.5?
3
4 On 12/31/05, Holly Bostick <motub@××××××.nl> wrote:
5 >
6 > Jason Stubbs schreef:
7 > > On Saturday 31 December 2005 21:57, Holly Bostick wrote:
8 > >
9 > >> If you look at the output
10 > >>
11 > >>
12 > >>> [nomerge ] sys-libs/db-4.2.52_p2-r1 -bootstrap +doc
13 > >>> +java -nocxx +tcltk
14 > >>
15 > >> the reason db is calling for java is because you have the "java"
16 > >> USE flag set for db.
17 > >>
18 > >> Do you really need db to use Java? If not, disable the flag (# echo
19 > >> 'sys-libs/db -java' >>/etc/portage/package.use); problem solved.
20 > >
21 > >
22 > > All the way up until the next package which depends on java. Only the
23 > > first package that is came across is listed as the parent.
24 > > sys-libs/db doesn't call for any specific version of java. The
25 > > complaint is that sun-jdk-1.5 is installed but emerge is wanting to
26 > > install sun-jdk-1.4. This indicates that sun-jdk-1.5 is likely
27 > > masked.
28 > >
29 >
30 > Well that's all true, Jason, but my point was that this is an *option*,
31 > not a hard dependency, and many times people have USE flags enabled for
32 > things they don't even need (or need for the specific program).
33 >
34 > So Kevin certainly could unmask sun-jdk 1.5 --and if it's installed, then
35 > how did that happen without it being unmasked? Sun-jdk-1.5 is
36 > hard-masked! The original post does not say that any version of the jdk
37 > is actually installed:
38 >
39 > > Anyway, my latest emerge world failed because of sun-jdk-1.4.2.10
40 > > (!!!). The current one is 1.5 something.
41 >
42 > Meaning (to me) that Kevin is referring to the current *available*
43 > *version* of sun-jdk, not to any version he might have installed (and my
44 > impression is that he does not in fact have any version of sun-jdk
45 > installed), and he's just concerned that an "out-of-date" version will
46 > be installed rather than the latest.
47 >
48 > But if he doesn't need java support in the db at all, then disabling the
49 > USE flag entirely (globally or for this package alone), then java won't
50 > be called by the emerge of db, which saves having to unmask a package
51 > that Kevin may have concerns about installing in the first place if he
52 > runs stable, or even unstable-- sun-jdk-1.5 *is* hard-masked, after all,
53 > and one should rightfully think twice and then think again about
54 > installing a hard-masked package-- and secondly does not install bloat
55 > onto the system (if he doesn't need java support in db, then he has no
56 > reason to install it, or spend the extra compile time installing db java
57 > support).
58 >
59 > I've often solved similar issues on my own system by the simple
60 > expedient of disabling the USE flag that was calling the dependency that
61 > was giving me a problem. Helps keep the system clean.
62
63
64 This has been pretty informative. Perhaps I'm getting closer to
65 understanding this.
66
67 Fact: I do have Java 1.5 unmasked. I teach java, and need to be using the
68 current version. I have the java USE flag on generally, so there will
69 probably be a number of packages that will call for it. On the other hand,
70 I don't have a specific need for it in 'db' which I never use explicitly --
71 I use gdbm or one of the SQL products for what database stuff I do
72 personally.
73
74 The question now seems to be: why doesn't db use Java 1.5? Watching the
75 emerge go by, it seemed to be doing just that -- the filenames were all 1.5.
76 However, it's not just db. When I disable java in db using package.use, the
77 problem just switches to another dependency path:
78
79 [nomerge ] x11-terms/xterm-204 +Xaw3d -toolbar +truetype -unicode
80 [nomerge ] x11-libs/Xaw3d-1.5-r1
81 [nomerge ] x11-base/xorg-x11-6.8.2-r6 -3dfx -3dnow +bitmap-fonts
82 -cjk -debug -dlloader -dmx +doc -font-server -insecure-drivers +ipv6
83 -minimal +mmx +nls -nocxx +opengl +pam -sdk +sse -static +truetype-fonts
84 +type1-fonts (-uclibc) -xprint +xv
85 [nomerge ] sys-apps/util-linux-2.12r-r1 +crypt +nls -old-crypt
86 +pam +perl (-selinux) -static
87 [nomerge ] sys-apps/pam-login-3.17 -livecd +nls (-selinux)
88 [nomerge ] sys-apps/shadow-4.0.7-r4 +nls -nousuid +pam
89 (-selinux) -skey
90 [nomerge ] sys-apps/portage-2.0.53 -build (-selinux)
91 [nomerge ] app-misc/pax-utils-0.1.4 +caps
92 [nomerge ] sys-libs/libcap-1.10-r5 -nocxx +python -static
93 [nomerge ] dev-lang/swig-1.3.21 +X +doc +guile +java +perl
94 -php +python +ruby +tcltk
95 [ebuild NSF ] dev-java/sun-jdk-1.4.2.10 +X +alsa
96 -browserplugin +doc -examples -jce +mozilla +nsplugin 35,592 kB
97
98 Of course, since Java is slotted, I should probably just go ahead and
99 re-emerge that older version. I was not clear when I said that emerge
100 failed, because there is the option to download the file from Sun. It still
101 seems weird, though, that these packages are not satisfying their dependency
102 with the Java that I have.
103
104 Sigh.
105
106 --
107 Kevin O'Gorman, PhD

Replies

Subject Author
Re: [gentoo-user] emerge going weird Holly Bostick <motub@××××××.nl>
Re: [gentoo-user] emerge going weird Abhay Kedia <abhay.ilugd@×××××.com>