RVM should detect for NTP on ARM-based archs
This issue references: #2524
Problem: RVM is will stall and hang on configuring step without time (NTP server) properly setup.
Based on the function requirements_arch_define_check_raspberry_pi() - it seems that RVM is already checking properly for ARM architectures using something similar to arch (same as uname -m) to detect if the string arm is included in the return value. For instance, arm71is returned for CuBox i4Pro, for RPi's it's likely armv6i.
Personally, after setting up ntp on my ARM-based computer, RVM installed Ruby 2.1.2 perfectly (on an ARM-based CPU, CuBox i4Pro).
I'm no Linux guru, and my familiarity is only with Debian/Ubuntu/CentOS systems but there's two items that could cause issues based on further investigation:
- User may not have
systemctlcommand; therefore failing any commands sent via this method (supplied by packagessystemdandsystemd-sysv) - CentOS uses
ntpd, Ubuntu\Debian NTP package isntpwhich (I believe, please correct me) already had the daemon as part of it (and not listed as antpdservice). Therefore, this commit https://github.com/wayneeseguin/rvm/commit/1bf83ea26420bcc288b8dbb2f00cf6c7d10fae83 (aimed at solving it on ArchLinux only) would affect it from being restarted/status checked on a Debian-based distro:
Lastly, IMHO the function likely shouldn't be related to Raspberry Pi's as there are now plenty of ARM-based devices on the market, maybe something like check_system_for_arm_arch.
cc/ @mpapis
sorry for late reply, could you open PRs with proposed code changes (I do not have arm device myself to test on)
for 1) you could add requirements_check_fallback systemd systemd-sysv here: https://github.com/wayneeseguin/rvm/blob/e30fe7be2387b05a45a278aecb00d3506313c173/scripts/functions/requirements/arch#L34
for 2) you would have to duplicate the functionalities in respective files for centos and ubuntu - common parts could be shared if you see some code repetition
for 3) the check is already arm* if it would not include everything we could extend it to match more
@richardjortega any progress, let me know if I can help you with the changes
Hi there, do you need help with the fixes? I could skype / google-hangout with you.
@mpapis Sorry, been traveling and working. I can dedicate some time this week to knock it out and ping you if I stumble.
great, please do not hesitate to ping me, I'm here to help you.
any progress?
I'm a horrible person for not responding back sooner, I had to acquire a CuBox in the mean time since I didn't have it in my possession any more. Will work on it this weekend and will attach code Saturday/Sunday.
how is it going, can I be of any assistance?
any progress? please do not hesitate to ping me, I'm here to help you.
it's been 2 months - closing the ticket - if you some time to work on it let me know and we can reopen the ticket