Bug 814117 - json should not be used as dependency when install rhc client on Windows
json should not be used as dependency when install rhc client on Windows
Product: OpenShift Origin
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
Unspecified Unspecified
medium Severity low
: ---
: ---
Assigned To: Fotios Lindiakos
libra bugs
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-04-19 05:32 EDT by Meng Bo
Modified: 2014-01-12 20:42 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-27 23:21:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Meng Bo 2012-04-19 05:32:38 EDT
Description of problem:
According to US2145, json_pure should be used as dependency when installing rhc client on Windows and Mac.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.gem install rhc
2.gem list
Actual results:
both json_pure and json will be installed automatically on windows cygwin env. 

Expected results:
only json_pure should be used as dependency on Win.

Additional info:
Comment 1 Fotios Lindiakos 2012-04-20 11:22:55 EDT
Please retest with rhc gem version > 0.91.2, this was the first version where the conditional dependencies should work.
Comment 2 Meng Bo 2012-04-23 04:53:47 EDT
checked with rhc-0.91.5 and rhc-rest-0.1.3, both of them need json as dependency.
Comment 3 Fotios Lindiakos 2012-04-23 09:50:45 EDT
Are you installing rhc-rest manually? rhc-rest should not be installed with the new version of the rhc gem.
Comment 4 Meng Bo 2012-04-23 21:16:18 EDT
yes, i have tried to install rhc and rhc-rest separately,
and for rhc client, it will install json automatically, for rhc-rest, it will not be installed since missing dependency json.
Comment 5 Fotios Lindiakos 2012-04-27 15:23:27 EDT
rhc-rest does not need to be installed anymore, and rhc will remove it if it finds it. test by just installing rhc
Comment 6 Meng Bo 2012-04-27 23:18:18 EDT
Checked with latest rhc client rhc-0.92.2

Since the US2145 has been updated as follow:
The package should attempt to install json first, if it fails (or ENV['JSON_PURE'] is explicitly set), json_pure should be installed.

rhc can be installed successfully with json installed on Windows.
and rhc-rest will be removed during installation of rhc client.

Mark this bug as verified.

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