Bug 1367922

Summary: Installing rh-eclipse46-base does not add eclipse to the user's path
Product: Red Hat Software Collections Reporter: Len DiMaggio <ldimaggi>
Component: eclipseAssignee: Mat Booth <mat.booth>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: rh-eclipse46CC: ldimaggi, mat.booth, mbenitez, mcermak, mprchlik, vkadlcik
Target Milestone: rcFlags: vkadlcik: needinfo? (ldimaggi)
Target Release: 2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: RHT
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-01 13:25:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Len DiMaggio 2016-08-17 19:50:53 UTC
Description of problem:
Installing rh-eclipse46-base does not add eclipse to the user's path

Version-Release number of selected component (if applicable):
rh-eclipse46-base-1-11.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install rh-eclipse46-base-1-11.el7.x86_64 on RHEL7.2
2.
3.

Actual results:
Installation is successful, eclipse binary /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/ is not added to user's path.

Expected results:
/opt/rh/rh-eclipse46/root/usr/lib64/eclipse/ added to path.

Additional info:

Comment 2 Václav Kadlčík 2016-08-18 04:38:10 UTC
Hi Len,

It seems to me you skipped the scl mechanism. rh-eclipse46 is part of Software Collections which use the mechanism to allow users pick only specific collections for a specific task.

rh-eclipse46-base works for me as expected:

$ rpm -qa | grep rh-eclipse46 # nothing of rh-eclipse46 installed
$ sudo yum -y install rh-eclipse46-base
...
# Installed.
# Eclipse not available in a not-scl-ized environment
$ type eclipse
-bash: type: eclipse: not found

# Create a scl-ized shell:
$ scl enable rh-eclipse46 bash
$ echo $PATH
/opt/rh/rh-eclipse46/root/usr/bin:/opt/rh/rh-eclipse46/root/usr/lib/jvm/java/bin:/opt/rh/rh-java-common/root/usr/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/jouda/.local/bin:/home/jouda/bin
$ type eclipse
eclipse is /opt/rh/rh-eclipse46/root/usr/bin/eclipse
$ exit

# Back in the default environment. scl-ize just one command:
$ scl enable rh-eclipse46 'type eclipse'
eclipse is /opt/rh/rh-eclipse46/root/usr/bin/eclipse

Does it work for you the same way? If yes then it is as designed and not a bug.

Comment 4 Mat Booth 2016-11-01 13:25:29 UTC
Hmm, I just noticed how old this bug is... I think we can just close it NOTABUG. Feel free to re-open if anyone disagrees.