Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411289 - virtual/ooo pulls in libreoffice-bin when using the java use flag
Summary: virtual/ooo pulls in libreoffice-bin when using the java use flag
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-08 19:15 UTC by DrSlony
Modified: 2012-04-11 20:56 UTC (History)
0 users

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


Attachments
emerge -pvtNuD world (1,11.29 KB, text/plain)
2012-04-11 20:55 UTC, DrSlony
Details
echo "virtual/ooo -java" >> /etc/portage/package.use && emerge -NuDpv world (2,2.62 KB, text/plain)
2012-04-11 20:56 UTC, DrSlony
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DrSlony 2012-04-08 19:15:47 UTC
Hey

When I do emerge -NuDav world with "java" in my use flags in make.conf, virtual/ooo tries to pull in app-office/libreoffice-bin and a load of dev-java apps, even though I already have app-office/libreoffice
http://paste.pocoo.org/show/578099/

To fix this, I had to:
echo "virtual/ooo -java" >> /etc/portage/package.use && emerge -NuDpv world
http://paste.pocoo.org/show/578108/

I see no reason why having the java use flag in make.conf should result with libreoffice-bin being pulled in, especially since I already have libreoffice (non-bin), so this must be a bug.

ps. libreoffice-bin was not in the world file.
Comment 1 Franz Trischberger 2012-04-08 19:54:10 UTC
Did you probably disable java Use-flag just for libreoffice?
Comment 2 DrSlony 2012-04-08 21:30:36 UTC
Franz: I have the java use flag in /etc/make.conf
Comment 3 Franz Trischberger 2012-04-09 06:10:47 UTC
(In reply to comment #2)
> Franz: I have the java use flag in /etc/make.conf

I read that. But /etc/portage/package.use is stronger then make.conf, if you put something inside there (like "app-office/libreoffice -java"), it will overwrite the global USE-settings in make.conf.
Now have a look at your emerge-output:
[ebuild  N     ]  dev-java/bsh-2.0_beta4-r3
[ebuild  N     ]  dev-java/lucene-2.9.4
[ebuild  N     ]  dev-java/lucene-analyzers-2.3.2
All three package are marked "N" - "new".

Now look into the libreoffice-3.4.5.2.ebuild:

        java? (
                >=dev-java/bsh-2.0_beta4
                dev-java/lucene:2.9
                dev-java/lucene-analyzers:2.3
                dev-java/saxon:0
        )

So if those 3 packages get pulled in as new, USE="java" never was active for libreoffice.
And now look at the emerge-output again:

[nomerge       ] app-office/libreoffice-3.4.5.2  USE="branding dbus kde mysql opengl python vba (-aqua) -binfilter -custom-cflags -debug -eds -gnome -graphite -gstreamer -gtk -java -jemalloc -nsplugin -odk -pdfimport -test -webdav"
You see the "-java"?

If you don't want all those java-packages, why do you set USE="java" in make.conf?
Comment 4 DrSlony 2012-04-09 23:01:49 UTC
Sorry, I jumped the gun with that reply.

Yes, I do have -java for libreoffice in package.use
/etc/portage/package.use:app-office/libreoffice -java -nsplugin

I set USE="java" in make.conf for other programs that can have java support, but I don't want or need java in libreoffice.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-11 01:51:26 UTC
(In reply to comment #0)
> http://paste.pocoo.org/show/578099/
> http://paste.pocoo.org/show/578108/

Attach those and then reopen this bug report, please.
Comment 6 DrSlony 2012-04-11 20:55:36 UTC
Created attachment 308563 [details]
emerge -pvtNuD world
Comment 7 DrSlony 2012-04-11 20:56:28 UTC
Created attachment 308565 [details]
echo "virtual/ooo -java" >> /etc/portage/package.use && emerge -NuDpv world