rock-core / autoproj

Rock (Robot Construction Kit) package-oriented build system
http://rock-robotics.org/rock-and-syskit/workspace
23 stars 22 forks source link

fix: gem install location on Debian 11 #365

Closed doudou closed 2 years ago

doudou commented 2 years ago

Debian is (in)famous for monkey-patching rubygems to make it follow their standard. In this case, it moves the default gems install location to the XDG data dir.

It defines Gem.data_home to indicate where things are going to be installed. Use its presence as an indication that we're on Debian and workaround the problem.