ruby 2.5 sysconfdir and others wrong
Hi,
tested with 2.5.0-5 from unstable
ruby2.5 -r rbconfig -e 'puts RbConfig::CONFIG["sysconfdir"]'
/usr/etc
but on stable, ruby2.3 returns:
ruby2.3 -r rbconfig -e 'puts RbConfig::CONFIG["sysconfdir"]'
/etc
it means things like the gem command looks for /usr/etc/gemrc rather
than /etc/gemrc - which is definitely wrong.
A diff of RbConfig::CONFIG between 2.3 and 2.5 reveals other broken
looking paths:
-runstatedir: /var/run
-localstatedir: /var
+runstatedir: /usr/var/run
+localstatedir: /usr/var
-sysconfdir: /etc
+sysconfdir: /usr/etc
-libexecdir: /usr/lib/ruby2.3
+libexecdir: /usr/libexec
I can't see anything that's changed in the Debian package recipes that
looks relevant so I guess this is a change in Ruby.
This commit back in October 2017 looks related, as it changes the code
to define sysconfgdir and adds prefixes to localstatedir and
sharedstatedir:
https://github.com/ruby/ruby/commit/8fc8587e05163f0002915d06fbb20386cbc
bb2ef
Not sure if this should be fixed in Ruby or Debian though. Any ideas?
John.
--
https://www.brightbox.com
Reply to: