maxamillion / ruby-wrapper

Wrapper for RHSCL ruby
Other
0 stars 2 forks source link

SCL 1.1 Support #5

Open jmontleon opened 10 years ago

jmontleon commented 10 years ago

SCL 1.1 requires the v8314 SCL be enabled in order for some ruby193 packages to work (therubyracer for example), so instead of 'scl enable ruby193 "$COMMAND"' we now need 'scl enable ruby193 v8314 "$COMMAND"'

This is apparently intentional and by design. The big problem I am having at the moment is that I see no great way to determine the version of scl installed other than to run scl -l and look for the new v8314 SCL.

So the not-so-great solution I came up with was to alter each of the scripts like so: https://github.com/jmontleon/foreman-packaging/commit/f061d6f02bb5dcfbe0b7f8c7e2fd164ff5523ae7

I'm not sure if you have a better idea as to how 1.1 support might be accomplished.

jmontleon commented 10 years ago

or something like this might be marginally better. at least there wouldn't be an if statement unnecessarily for other scl's. https://github.com/jmontleon/foreman-packaging/commit/04f2c0a3f77d2f4659cefbc52999bafe277b77eb