-
Notifications
You must be signed in to change notification settings - Fork 59
Update serialport to be compatible to newer ruby versions #79
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
Conversation
This merges the fix and polyfill discussed in: https://bugs.ruby-lang.org/issues/20265#note-7 Fixes #78
It isn't running any longer for decades.
Fixes: LoadError: cannot load such file -- C:/ruby-serialport/(eval at C:/ruby-serialport/lib/serialport/version (LoadError)
Warning was: warning: 'fd' is deprecated: rb_io_descriptor
warning: initialization discards "const" qualifier from pointer target type [-Wdiscarded-qualifiers]
"/dev/ttyS0"
warning: comparison of integer expressions of different signedness: "int" and "long unsigned int" [-Wsign-compare]
if (num_port < 0 || num_port > sizeof(ports) / sizeof(ports[0]))
warning: function might be candidate for attribute "noreturn" [-Wsuggest-attribute=noreturn]
warning: "PURGE_RXABORT" redefined
581 | #define PURGE_RXABORT 0x02
| ^~~~~~~~~~~~~
In file included from C:/msys64/ucrt64/include/windows.h:70,
|
btw, I can confirm that this branch also works with macOS 15.5 on Apple Silicon with Ruby 3.3.3. (the released serialport 1.3.2 gem fails to compile, even with compiler flag tricks others have mentioned in the past) |
|
I requested to take this project over on #77, but didn't receive an answer. @hparra , @tenderlove Could you please check if I can get push permissions on rubygems for the |
|
@larskanis yes, I saw your attempts to sort out the maintenance - thanks for doing this! As I think others have suggested, I'd recommend put a time limit on this - if no resolution, publish a new gem based on your fork, and get this repo archived/EOL'd. |
|
@larskanis I added you on RG, but it sent you an invite for you to confirm! |
|
This is merged to the new repository at https://github.com/larskanis/ruby-serialport . I just released Thank you @tenderlove for giving the permission! |
I would be willing to maintain this gem, because I have some projects which use it. It's the only serial gem, which can query and set the control pins on Linux and Windows.