ruby-changes:53010
From: hsbt <ko1@a...>
Date: Sat, 20 Oct 2018 19:30:47 +0900 (JST)
Subject: [ruby-changes:53010] hsbt:r65224 (trunk): Retry r65211.
hsbt 2018-10-20 19:30:42 +0900 (Sat, 20 Oct 2018) New Revision: 65224 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65224 Log: Retry r65211. * Maybe, RbConfig.ruby only provides after Ruby installation. Modified files: trunk/ext/etc/extconf.rb Index: ext/etc/extconf.rb =================================================================== --- ext/etc/extconf.rb (revision 65223) +++ ext/etc/extconf.rb (revision 65224) @@ -41,6 +41,12 @@ have_struct_member('struct passwd', 'pw_ https://github.com/ruby/ruby/blob/trunk/ext/etc/extconf.rb#L41 have_struct_member('struct passwd', 'pw_passwd', 'pwd.h') have_struct_member('struct group', 'gr_passwd', 'grp.h') +# for https://github.com/ruby/etc +srcdir = File.expand_path("..", __FILE__) +if !File.exist?("#{srcdir}/depend") + %x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h] +end + $distcleanfiles << "constdefs.h" create_makefile("etc") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/