maximbaz / rebuild-detector

Detects which Arch Linux packages need to be rebuilt
ISC License
215 stars 11 forks source link

Fix ruby version differ from gem install path. #14

Closed bartoszek closed 4 years ago

bartoszek commented 4 years ago

RUBY_VERSION can differ from actual gem install location. Current Arch ruby --version:2.7.1 but gem environment gemdir:/usr/lib/ruby/2.7.0.

maximbaz commented 4 years ago

But if gems are installed in the folder that is different from RUBY_VERSION, doesn't that mean that they are installed incorrectly and must be rebuilt/reinstalled to a new folder that aligns with RUBY_VERSION?

bartoszek commented 4 years ago

Nope, they're fine - just tested it with strace -e trace=openat ruby -ryard -e 'puts "test"'

On Sat, 4 Apr 2020, 16:18 Maxim Baz 'notifications@github.com' via 33Mail, < sender@mailer1.33mail.com> wrote:

This email was sent to the alias 'bartoszek.github@bartus.33mail.com' by ' reply@reply.github.com', and 33Mail forwarded it to you. To block all further emails to this alias click here http://www.33mail.com/alias/unsub/9300b70b8d3487fb117ff9c189870492

But if gems are installed in the folder that is different from RUBY_VERSION, doesn't that mean that they are installed incorrectly and must be rebuilt/reinstalled to a new folder that aligns with RUBY_VERSION?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maximbaz/rebuild-detector/pull/14#issuecomment-609035345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJIHJC4LIRQ2ZBET5PPJ73RK46TBANCNFSM4L6E7XYA .

This email was sent to the alias 'bartoszek.github@bartus.33mail.com' by ' reply@reply.github.com', and 33Mail forwarded it to you. To block all further emails to this alias click here http://www.33mail.com/alias/unsub/9300b70b8d3487fb117ff9c189870492

maximbaz commented 4 years ago

I looked at rubygems package and you are right, it seems the PKGBUILD hardcodes version to end with 0:

https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/rubygems#n39

Thanks for catching this! :)