Bug 1367922 - Installing rh-eclipse46-base does not add eclipse to the user's path [NEEDINFO]
Summary: Installing rh-eclipse46-base does not add eclipse to the user's path
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: eclipse
Version: rh-eclipse46
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.3
Assignee: Mat Booth
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard: RHT
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-17 19:50 UTC by Len DiMaggio
Modified: 2016-11-01 13:35 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-01 13:25:29 UTC
Target Upstream Version:
vkadlcik: needinfo? (ldimaggi)


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.