| View previous topic :: View next topic |
| Author |
Message |
pvh1987 n00b

Joined: 06 Jun 2012 Posts: 30
|
Posted: Wed Jun 06, 2012 10:50 am Post subject: How to force portage to install oracle-sdk-docs-1.7.04 |
|
|
I want to install oracle-jdk-bin including javadoc, so I followed the fetch instruction and downloaded those two files:
| Code: | jdk-7u4-apidocs.zip
jdk-7u4-linux-i586.tar.gz |
I put those in my portage.keywords:
| Code: | =dev-java/oracle-jdk-bin-1.7.0.4 ~x86
=dev-java/oracle-sdk-docs-1.7.0.4 ~x86 |
And this in my portage.license:
| Code: | | >=dev-java/oracle-jdk-bin-1.7.0.4 Oracle-BCLA-JavaSE |
Now, when I do
| Code: | | USE="doc" emerge -pv dev-java/oracle-jdk-bin |
it outputs
| Code: | These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N F ] dev-java/java-sdk-docs-1.7.0.2 58,937 kB
[ebuild N f ~] dev-java/oracle-jdk-bin-1.7.0.4 USE="X alsa doc nsplugin source -derby -examples -jce" 0 kB
Total: 2 packages (2 new), Size of downloads: 58,937 kB
Fetch Restriction: 2 packages (1 unsatisfied)
* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items. |
It wants to install the javadoc for version 1.7.0.2 instead of 1.7.0.4... I want the matching javadoc, masked or not, because that feels like the right thing to install. Besides, I can't get javadoc 7u2 from Oracle's website, but only version 7u4. How can I force portage to install the right version?
Thanks a lot. Any help is appreciated. |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6422 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 06, 2012 11:23 am Post subject: |
|
|
| Code: | | USE="doc" emerge -pv =dev-java/oracle-jdk-bin-1.7.0.4 | and look at the messages of what you need to do to fully unmask that version.
You should probably also add | Code: | | dev-java/oracle-jdk-bin doc | to /etc/portage/package/.use so that, when the package gets rebuilt or updated, you will retain that USE flag. Setting USE flags on the command line is for experimentation, not permanent settings.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4735
|
Posted: Wed Jun 06, 2012 11:59 am Post subject: |
|
|
your blockage is because portage can't seem to find oracle-jdk-bin's tart file, make sure it exists under /usr/portage/distfiles _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball |
|
| Back to top |
|
 |
pvh1987 n00b

Joined: 06 Jun 2012 Posts: 30
|
Posted: Wed Jun 06, 2012 12:12 pm Post subject: |
|
|
OK - I edited my packages.use file - but portage still wants to install javadoc version 1.7.0.2 instead of 1.7.0.4, which is my main problem.
I know why portage can't find the file. It is because I followed the link portage gave me and downloaded jdk-7u4-apidocs.zip and put it into /usr/portage/distfiles, but it wants jdk-7u2-apidocs.zip (older version) which I cannot get from Oracle's website and also I don't want that version because it is not the right doc for the jdk version 1.7.0.4. Yes, I have tried "emerge --sync" but it does not help.
Hopefully it is clear what I want now: How can I force portage to use java-sdk-docs-1.7.0.4 instead of 1.7.0.2 so it will find my jdk-7u4-apidocs.zip instead of jdk-7u2-apidocs.zip? |
|
| Back to top |
|
 |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4735
|
Posted: Wed Jun 06, 2012 2:15 pm Post subject: |
|
|
notice this:
| Code: | | [ebuild N f ~] dev-java/oracle-jdk-bin-1.7.0.4 USE="X alsa doc nsplugin source -derby -examples -jce" 0 kB |
that is your blockage, not the version. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball |
|
| Back to top |
|
 |
pvh1987 n00b

Joined: 06 Jun 2012 Posts: 30
|
Posted: Wed Jun 06, 2012 3:05 pm Post subject: |
|
|
I am a little confused. What blockage? But it seems that my package.keywords should be
| Code: | =dev-java/oracle-jdk-bin-1.7.0.4 ~x86
=dev-java/java-sdk-docs-1.7.0.4 ~x86 |
instead of
| Code: | =dev-java/oracle-jdk-bin-1.7.0.4 ~x86
=dev-java/oracle-sdk-docs-1.7.0.4 ~x86 |
and package.use should remain
| Code: | | dev-java/oracle-jdk-bin doc |
Now emerge says:
| Code: | emerge -pv oracle-jdk-bin
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N f ~] dev-java/java-sdk-docs-1.7.0.4 0 kB
[ebuild N f ~] dev-java/oracle-jdk-bin-1.7.0.4 USE="X alsa doc nsplugin source -derby -examples -jce" 0 kB
Total: 2 packages (2 new), Size of downloads: 0 kB
Fetch Restriction: 2 packages |
Then I run
| Code: | | emerge -v oracle-jdk-bin |
and now emerge finally starts to install the right packages. |
|
| Back to top |
|
 |
|