-
Notifications
You must be signed in to change notification settings - Fork 13
RHEL5 support #11
base: master
Are you sure you want to change the base?
RHEL5 support #11
Conversation
Sorry for the delay in getting back to you - I think I missed this PR when you made it. Can you describe the problems you had that make this change necessary on rhel? I don't object, just want to understand the problem and the solution a bit better. |
Sure, thanks for taking a look. Don't mind the delay -- open source can be a high-latency exercise. I'm using clj-v8 via Optimus in a RHEL5 environment -- still prevalent in the wilderness of enterprise -- and along the way found a few changes were required. As I recall, I needed to build fresh binaries to use clj-v8 on RHEL5 (and/or CentOS 5) because:
So in order to build and load these binaries, I had to:
These changes don't affect any already-supported target's behaviour, adding only a new target. Probably the largest risk of accepting this is in maintenance -- given that to reproduce or test RHEL5-compatible binaries basically requires another, very particular buiid environment. On the other hand, RHEL5 (including CentOS 5) is still in long-term support, and relatively easy to find in the wild, so may be worth supporting here -- at least, I am interested until 5.x truly reaches obsolescence. (RHEL 7.x is very new and didn't exist when I raised the PR; even 6.x anecdotally isn't very popular yet.) What do you think? Can I offer any more specific info? Thanks |
|
||
(defn- find-file-path-fragments | ||
[] | ||
(let [os-name (System/getProperty "os.name") | ||
(let [lsb (try (shell/sh "lsb_release" "-d") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there another way to do this without shelling out?
Sorry for the very long delay in getting back to you. This looks good. One small query about shelling out and that's it. I'm wiring up some testing at the moment to make this safer. I'm considering using Docker to build each of the native libs in the different environments. Is there a good RHEL image to use to build these on? |
Thanks for looking at this @pbiggar. Regarding shelling out, I don't know a better way (though I looked) but I'm open to ideas. If there is a Java API for fine-grained platform detection, or at least something substituting The Docker plan sounds perfect. There are CentOS containers for all versions including v5 at https://hub.docker.com/_/centos/ When I built my in-house copy, I used a VirtualBox image, but Docker would be nicer. |
Hi,
Following on from #10, I've attempted to add support for building and using clj-v8 with RHEL5 distros. This is an older but still stable and widely-used platform, and it required a number of changes:
lsb_release
where available, including CentOS.build/linux-rhel5/x86_64/
.Thoughts?