Bug #879
M4 for Ruby on Debian 9 not working
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/27/2017
Due date:
% Done:
0%
Resolution:
Description
The actual M4 (3.1, m4/am_path_ruby) can't detect ruby on debian 9
Here is an example of patch :
--- libprelude-3.1.0/m4/am_path_ruby.m4 2017-02-28 18:00:21.227299410 -0500 +++ libprelude-3.1.0/m4/am_path_ruby.m4 2017-02-28 18:01:06.702306372 -0500 @@ -95,7 +95,7 @@ dnl (shared libraries) AC_CACHE_CHECK([for $am_display_RUBY extension module directory], [am_cv_ruby_rbexecdir], - [am_cv_ruby_rbexecdir=`$RUBY -rrbconfig -e "drive = File::PATH_SEPARATOR == ';' ? /\A\w:/ : /\A/; prefix = Regexp.new('\\A' + Regexp.quote(RbConfig::CONFIG[['prefix']])); \\$prefix = RbConfig::CONFIG[['prefix']].sub(drive, ''); \\$sitearchdir = RbConfig::CONFIG[['sitearchdir']].sub(prefix, '\\$(prefix)').sub(drive, ''); print \\$sitearchdir;" 2>/dev/null || echo "${RUBY_EXEC_PREFIX}/local/lib/site_ruby/${RUBY_VERSION}/${RUBY_PLATFORM}"`]) + [am_cv_ruby_rbexecdir=`$RUBY -r rbconfig -e "print RbConfig::CONFIG[['vendorarchdir']]"`]) AC_SUBST([rbexecdir], [$am_cv_ruby_rbexecdir]) dnl if PKG-CONFIG is available, we use it. Else, we try to dectect RUBY_INCLUDES manually