Project

General

Profile

Feature #15581

Split tool/* files to tool and script directories

Added by hsbt (Hiroshi SHIBATA) 6 months ago. Updated 7 days ago.

Status:
Rejected
Priority:
Normal
Target version:
-
[ruby-core:91370]

Description

We use the tool directory for additional scripts like a utility, generator and etc.

But some files are required by make and make install. I think they are not the additional scripts, so It's the core toolchain.

I found the minimum requirements for autoconf, configure, make, make install, make dist.

autoconf

    tool/m4/ruby_mingw32.m4
    tool/m4/ac_msg_result.m4
    tool/m4/ruby_func_attribute.m4
    tool/m4/_colorize_result_prepare.m4
    tool/m4/ruby_rm_recursive.m4
    tool/m4/ruby_setjmp_type.m4
    tool/m4/ruby_replace_type.m4
    tool/m4/ruby_prepend_option.m4
    tool/m4/ruby_default_arch.m4
    tool/m4/ruby_check_builtin_func.m4
    tool/m4/ruby_cppoutfile.m4
    tool/m4/ruby_dtrace_postprocess.m4
    tool/m4/ruby_append_option.m4
    tool/m4/ruby_try_cflags.m4
    tool/m4/ruby_check_builtin_setjmp.m4
    tool/m4/ruby_check_signedness.m4
    tool/m4/ruby_defint.m4
    tool/m4/ruby_universal_arch.m4
    tool/m4/ruby_prog_gnu_ld.m4
    tool/m4/ruby_check_printf_prefix.m4
    tool/m4/ruby_werror_flag.m4
    tool/m4/ruby_check_sysconf.m4
    tool/m4/ruby_try_ldflags.m4
    tool/m4/ruby_stack_grow_direction.m4
    tool/m4/ruby_dtrace_available.m4
    tool/m4/ruby_decl_attribute.m4
    tool/m4/ruby_check_sizeof.m4
    tool/m4/ruby_type_attribute.m4
    tool/m4/colorize_result.m4
    tool/m4/ruby_define_if.m4
    tool/m4/ruby_append_options.m4
    tool/m4/ruby_check_setjmp.m4

configure

    tool/install-sh
    tool/config.guess
    tool/ifchange
    tool/config.sub
    tool/downloader.rb

make

    tool/transcode-tblgen.rb
    tool/gen_dummy_probes.rb
    tool/id2token.rb
    tool/mk_call_iseq_optimized.rb
    tool/colorize.rb
    tool/vcs.rb
    tool/ruby_vm/models/instructions_unifications.rb
    tool/ruby_vm/models/typemap.rb
    tool/ruby_vm/models/trace_instructions.rb
    tool/ruby_vm/models/bare_instructions.rb
    tool/ruby_vm/models/c_expr.rb
    tool/ruby_vm/models/operands_unifications.rb
    tool/ruby_vm/models/instructions.rb
    tool/ruby_vm/models/attribute.rb
    tool/ruby_vm/scripts/insns2vm.rb
    tool/ruby_vm/controllers/application_controller.rb
    tool/ruby_vm/views/_insn_entry.erb
    tool/ruby_vm/views/_insn_name_info.erb
    tool/ruby_vm/views/vm.inc.erb
    tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb
    tool/ruby_vm/views/opt_sc.inc.erb
    tool/ruby_vm/views/_insn_operand_info.erb
    tool/ruby_vm/views/vmtc.inc.erb
    tool/ruby_vm/views/_sp_inc_helpers.erb
    tool/ruby_vm/views/_mjit_compile_insn.erb
    tool/ruby_vm/views/mjit_compile.inc.erb
    tool/ruby_vm/views/insns.inc.erb
    tool/ruby_vm/views/_insn_stack_increase.erb
    tool/ruby_vm/views/_c_expr.erb
    tool/ruby_vm/views/_notice.erb
    tool/ruby_vm/views/insns_info.inc.erb
    tool/ruby_vm/views/_attributes.erb
    tool/ruby_vm/views/_copyright.erb
    tool/ruby_vm/views/_mjit_compile_ivar.erb
    tool/ruby_vm/views/_leaf_helpers.erb
    tool/ruby_vm/views/optunifs.inc.erb
    tool/ruby_vm/views/_trace_instruction.erb
    tool/ruby_vm/views/_mjit_compile_send.erb
    tool/ruby_vm/views/_insn_len_info.erb
    tool/ruby_vm/views/_mjit_compile_insn_body.erb
    tool/ruby_vm/views/_insn_type_chars.erb
    tool/ruby_vm/views/optinsn.inc.erb
    tool/ruby_vm/loaders/vm_opts_h.rb
    tool/ruby_vm/loaders/insns_def.rb
    tool/ruby_vm/loaders/opt_insn_unif_def.rb
    tool/ruby_vm/loaders/opt_operand_def.rb
    tool/ruby_vm/helpers/c_escape.rb
    tool/ruby_vm/helpers/dumper.rb
    tool/ruby_vm/helpers/scanner.rb
    tool/vpath.rb
    tool/file2lastrev.rb
    tool/config.sub
    tool/ytab.sed
    tool/insns2vm.rb
    tool/mjit_archflag.sh
    tool/node_name.rb
    tool/generic_erb.rb
    tool/transform_mjit_header.rb
    tool/mkconfig.rb
    tool/runruby.rb

make install

    tool/rbinstall.rb
    tool/fake.rb

make dist

    tool/make-snapshot
    tool/prereq.status

How about split tool/* to script/* without the above files?

History

Updated by shyouhei (Shyouhei Urabe) 6 months ago

Hello, I placed tool/ruby_vm files there because I thought they are not needed for release tar balls. Do they?

Updated by hsbt (Hiroshi SHIBATA) 5 months ago

tool/asm_parse.rb
tool/bisect.sh
tool/build-transcode
tool/change_maker.rb
tool/checksum.rb
tool/darwin-cc
tool/enc-emoji-citrus-gen.rb
tool/enc-emoji4unicode.rb
tool/enc-unicode.rb
tool/eval.rb
tool/expand-config.rb
tool/extlibs.rb
tool/fetch-bundled_gems.rb
tool/format-release
tool/gem-unpack.rb
tool/gen_ruby_tapset.rb
tool/generate-backport-changelog.rb
tool/git-refresh
tool/gperf.sed
tool/jisx0208.rb
tool/make_hgraph.rb
tool/mdoc2man.rb
tool/merger.rb
tool/mkrunnable.rb
tool/parse.rb
tool/probes_to_wiki.rb
tool/redmine-backporter.rb
tool/release.sh
tool/rmdirs
tool/ruby_vm/scripts/converter.rb
tool/ruby_vm/tests/.gitkeep
tool/run-gcov.rb
tool/run-lcov.rb
tool/strip-rdoc.rb
tool/sync_default_gems.rb
tool/test-coverage.rb
tool/test/test_jisx0208.rb
tool/update-deps
tool/vtlh.rb

The above files are staying under the tool directory.

#3

Updated by hsbt (Hiroshi SHIBATA) 5 months ago

  • Description updated (diff)

Updated by hsbt (Hiroshi SHIBATA) 5 months ago

  • Assignee set to hsbt (Hiroshi SHIBATA)
  • Status changed from Open to Assigned

I update the two file lists.

  • The requirements for autoconf, configure, make, make install, make dist: Move mklib directory. and We should write a test or keep stability.
  • The tool without the above requirements(https://bugs.ruby-lang.org/issues/15581#note-2): Remain tool directory.

How about this?

Updated by hsbt (Hiroshi SHIBATA) 7 days ago

  • Status changed from Assigned to Rejected

I gave up to organize this. I try to write test files under the tool directory.

Also available in: Atom PDF