Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]: 2 quick and easy questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2773

PostPosted: Mon Mar 04, 2013 10:24 pm    Post subject: [SOLVED]: 2 quick and easy questions Reply with quote

Hi, ALL,
1. How do I remove "PYTHON_TARGETS=(python3_x) from the USE flag? I don't want the python3 dependency...
2. Where do I download java-1.6.0.39-r1? According to the link provided by "emerge" it has jdk6u43 and not 39.

Thank you.


Last edited by ONEEYEMAN on Tue Mar 05, 2013 7:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Mar 04, 2013 10:45 pm    Post subject: Reply with quote

1. edit /etc/make.conf as Follows:
Code:
PYTHON_TARGETS="-python3_1 -python3_2 python2_6 python 2_7"


The minus sign removes the value just like a USE FLAG setting. Adding something without a minus sign adds it. These are known as Expander Variables

2.
Code:
emerge -s jre

This should list all Java Runtimes. I believe the name is sun-jre-bin. You must add sun-jre-bin > 39 to package.mask, which may not be possible for long as sooner or later this page will disappear.
Java SE 6 Downloads. Java now belongs to Oracle.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2773

PostPosted: Mon Mar 04, 2013 11:08 pm    Post subject: Reply with quote

eyoung100 wrote:

1. edit /etc/make.conf as Follows:
Code:
PYTHON_TARGETS="-python3_1 -python3_2 python2_6 python 2_7"


The minus sign removes the value just like a USE FLAG setting. Adding something without a minus sign adds it. These are known as Expander Variables


This result in following:

Code:

gorReinCloud igor # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=barcelona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2"
MAKEOPTS="-j3"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acpi apm alsa -bluetooth cdr clamav consolekit cracklib crypt -cups dbus djvu dri dvd dvdr firefox -fortran freetds gtk -gtk3 -hal ipv6 java6 lm_sensors mozilla mssql mysql odbc opengl oracle pam pch pcmcia perl policykit -qt -qt4 readline sqlite ssl udev unicode wxwidgets"
#VIDEO_CARDS="fglrx"
VIDEO_CARDS="radeon"
PORTDIR_OVERLAY="/usr/local/portage ${PORTDIR_OVERLAY}"
INPUT_DEVICES="evdev synaptics keyboard"
ACCEPT_LICENSE="PUEL Oracle-BCLA-JavaSE"
PYTHON_TARGETS="-python3_1 -python3_2 python2_6 python2_7"

IgorReinCloud igor # emerge -pvuDN world
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'

These are the packages that would be merged, in order:

Calculating dependencies -... done!


Exiting on signal 2


eyoung100 wrote:

2.
Code:
emerge -s jre

This should list all Java Runtimes. I believe the name is sun-jre-bin. You must add sun-jre-bin > 39 to package.mask, which may not be possible for long as sooner or later this page will disappear.
Java SE 6 Downloads. Java now belongs to Oracle.


Code:

IgorReinCloud igor # emerge -s jre
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Searching...   /Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_1'
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'
 
[ Results for search key : jre ]
[ Applications found : 8 ]

*  dev-java/diablo-jre-bin [ Masked ]
      Latest version available: 1.6.0.07.02
      Latest version installed: [ Not Installed ]
      Size of files: 28,045 kB
      Homepage:      http://www.FreeBSDFoundation.org/downloads/java.shtml
      Description:   Java Runtime Environment
      License:       sun-bcla-java-vm

*  dev-java/ibm-jre-bin [ Masked ]
      Latest version available: 1.6.0.9_p2-r1
      Latest version installed: [ Not Installed ]
      Size of files: 69,181 kB
      Homepage:      http://www.ibm.com/developerworks/java/jdk/
      Description:   IBM Java SE Runtime Environment
      License:       IBM-J1.6

*  dev-java/jreleaseinfo [ Masked ]
      Latest version available: 1.3.0-r1
      Latest version installed: [ Not Installed ]
      Size of files: 37 kB
      Homepage:      http://jreleaseinfo.sourceforge.net/
      Description:   Ant Task for build-time creation of Java source file with program version, build number or any other info
      License:       Apache-2.0

*  dev-java/jrexx
      Latest version available: 1.1.1-r1
      Latest version installed: [ Not Installed ]
      Size of files: 61 kB
      Homepage:      http://www.karneim.com/jrexx/
      Description:   Regular expression API for textual pattern matching based on the finite state automaton theory.
      License:       LGPL-2.1

*  dev-java/oracle-jre-bin [ Masked ]
      Latest version available: 1.7.0.13
      Latest version installed: [ Not Installed ]
      Size of files: 45,699 kB
      Homepage:      http://www.oracle.com/technetwork/java/javase/
      Description:   Oracle's Java SE Runtime Environment
      License:       Oracle-BCLA-JavaSE

*  dev-java/sun-jre-bin
      Latest version available: 1.6.0.39
      Latest version installed: [ Not Installed ]
      Size of files: 20,819 kB
      Homepage:      http://www.oracle.com/technetwork/java/javase/
      Description:   Oracle's Java SE Runtime Environment
      License:       Oracle-BCLA-JavaSE

*  net-libs/jreen [ Masked ]
      Latest version available: 9999
      Latest version installed: [ Not Installed ]
      Size of files: 0 kB
      Homepage:      https://github.com/euroelessar/jreen
      Description:   Qt XMPP library
      License:       GPL-2

*  virtual/jre
      Latest version available: 1.6.0
      Latest version installed: 1.6.0
      Size of files: 0 kB
      Homepage:     
      Description:   Virtual for JRE
      License:       


Does this mean I need to sync to get the available java version from Oracle?

Thank you.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Mar 04, 2013 11:44 pm    Post subject: Reply with quote

See:
python-r1 User's Guide

To remove Targets take them out of the quotes

To install Java:
Code:
emerge sun-jre-bin

ONEEYEMAN wrote:
* dev-java/sun-jre-bin
Latest version available: 1.6.0.39
Latest version installed: [ Not Installed ]
Size of files: 20,819 kB
Homepage: http://www.oracle.com/technetwork/java/javase/
Description: Oracle's Java SE Runtime Environment
License: Oracle-BCLA-JavaSE

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2773

PostPosted: Tue Mar 05, 2013 12:40 am    Post subject: Reply with quote

1. OK, trying this, results in:

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=barcelona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2"
MAKEOPTS="-j3"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acpi apm alsa -bluetooth cdr clamav consolekit cracklib crypt -cups dbus djvu dri dvd dvdr firefox -fortran freetds gtk -gtk3 -hal ipv6 java6 lm_sensors mozill$
#VIDEO_CARDS="fglrx"
VIDEO_CARDS="radeon"
PORTDIR_OVERLAY="/usr/local/portage ${PORTDIR_OVERLAY}"
INPUT_DEVICES="evdev synaptics keyboard"
ACCEPT_LICENSE="PUEL Oracle-BCLA-JavaSE"
PYTHON_TARGETS=-python3_1 -python3_2

IgorReinCloud igor # emerge -pvuDN world
"/etc/make.conf", line 23: Invalid token 'None' (not '=')


If I put them on 2 different lines, like this, I will get:

Code:

PYTHON_TARGETS=-python3_1
PYTHON_TARGETS=-python3_2

IgorReinCloud igor # emerge -pvuDN world
Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_2'


So what is the correct syntax?


2.

Code:

IgorReinCloud igor # emerge -pv sun-jre-bin

These are the packages that would be merged, in order:

Calculating dependencies ... done!
[ebuild  N F   ] dev-java/sun-jre-bin-1.6.0.39:1.6  USE="X alsa -jce -nsplugin -pax_kernel" 20,820 kB

Total: 1 package (1 new), Size of downloads: 20,820 kB
Fetch Restriction: 1 package (1 unsatisfied)

Fetch instructions for dev-java/sun-jre-bin-1.6.0.39:
 * Due to Oracle no longer providing the distro-friendly DLJ bundles, the package
 * has become fetch restricted again. Alternatives are switching to
 * dev-java/icedtea-bin:6 or the source-based dev-java/icedtea:6
 *
 * Please download 'jre-6u39-linux-x64.bin' from:
 * 'http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html'
 * and move it to '/usr/portage/distfiles'


Problem is the file is not available and the available file is jre-6u42-linux-x64.bin.

Thank you.
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 222
Location: Detroit, MI, USA

PostPosted: Tue Mar 05, 2013 4:30 am    Post subject: Reply with quote

Just do this:
Code:
PYTHON_TARGETS="python2_7"

Use-expand variables don't stack, so what you see is what you get.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2773

PostPosted: Tue Mar 05, 2013 5:20 am    Post subject: Reply with quote

Thank you, that worked.
And I guess I'm out of luck with JAVA update... :(
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Mar 05, 2013 6:27 pm    Post subject: Reply with quote

ONEEYEMAN wrote:
Thank you, that worked.
And I guess I'm out of luck with JAVA update... :(


No, Do what the Fetch Restriction Says:
Quote:

* Please download 'jre-6u39-linux-x64.bin' from:
* 'http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html'
* and move it to '/usr/portage/distfiles'


then:
Code:
emerge sun-jre-bin

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Mar 05, 2013 6:34 pm    Post subject: Reply with quote

eyoung100 wrote:
ONEEYEMAN wrote:
Thank you, that worked.
And I guess I'm out of luck with JAVA update... :(


No, Do what the Fetch Restriction Says:
Quote:

* Please download 'jre-6u39-linux-x64.bin' from:
* 'http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html'
* and move it to '/usr/portage/distfiles'


then:
Code:
emerge sun-jre-bin


Excuse my ignorance:
Replace the url in the Fetch Restriction with:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u39-oth-JPR
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum