New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use consistent name for OS on GNU/Linux. #159
Conversation
The OS is said to be GNU because other OSes with GNU userland (but not Linux) are also supported. Also, I don't see where that OS constant is used for anything concrete. Can you ellaborate on why this is a problem? Do you have a concrete use case (or unit test) that fails because of this? |
On my system The resulting error is the same as that issue linked before, or also Debian Bug #643788. I see your point about GNU meaning more than Linux, but I don't see type definitions for GNU here. Also, in At least the For example, Debian Sid: libruby1.8: downloads includes versions for Debian using a FreeBSD kernel. The Hopefully my updated commit will be clean enough to resolve the issues. Does anything rely on |
That makes sense - now we only need a concrete failing spec. The reason why this was not caught before is that there is not a single spec for this. (BTW I am the Debian maintainer) |
Test for GNU systems by checking whether the GNU libc is available. Also added a spec that reproduces ffi#137.
done, I wrote a failing spec. @hobophobe, please merge my pull request on your master branch so that this pull request gets updated with the extra commit I did. |
Fix platform
Just noticed that this changes make 5 specs fails on debian kfreebsd-amd64, so you are not quite there yet |
fixed that. @hobophobe, please merge my other pull request |
Fix platform
@wmeissner, could you please consider merging this branch into the official master branch? |
I think it looks ok - I haven't run a linux system in ages, so as long as you're happy it works on all debian platforms (and I assume all other linuxen work the same), then I'm ok with merging it. |
Use consistent name for OS on GNU/Linux.
btw, can you check the equivalent files in JRuby to see if they need changes? It will have much the same platform detection logic. |
Yes, I guess JRuby needs similar changes:
|
Somehow the platform directories and the platform.rb seem to be desynched for GNU/Linux.
I assume this will fix issue #137, though the submitter of that issue didn't indicate which platform.