1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merge revision(s) 4250d7c910fd67c0da07c6213901009330e3cd51,83f96642d2d74569cc38319d02d5922fac8f66b8,447feb0aa08e20cc5eeb8b3a6f881de261a2c9a2,1d80d703141f01383604022f9e8e53e10865197c,e271a3d4afc47e812b50fc9c50f6bf34d2d723a6,366e88e508de7c59d69906ad948cccd7979e932b,d825e34962540d345eb3c5a70eb264b415e915a5,4250d7c910fd67c0da07c6213901009330e3cd51,f9e43782995b1f77e7b10c79941bbbda15620e2a: [Backport #17723]

autogen.sh: Added

	Currently it just runs "autoreconf --install"
	---
	 aclocal.m4 | 4 ++--
	 autogen.sh | 3 +++
	 2 files changed, 5 insertions(+), 2 deletions(-)
	 create mode 100755 autogen.sh

	autogen.sh: Allow AUTORECONF envvar to specify the autoreconf
	 executable

	---
	 autogen.sh | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	Improved autogen.sh

	* update in the source directory
	* make symbolic links instead of copies
	* forward the arguments to autoreconf as-is
	---
	 autogen.sh | 8 +++++++-
	 1 file changed, 7 insertions(+), 1 deletion(-)

	autogen.sh: Make it work with sh (not bash)

	---
	 autogen.sh | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	[DOC] Update README files to use autoreconf [ci skip]

	---
	 README.ja.md | 3 +--
	 README.md    | 3 +--
	 2 files changed, 2 insertions(+), 4 deletions(-)

	[DOC] Update README [ci skip]

	* Use `autogen.sh`.
	* The subversion repository is only for old versions, and
	  secondary now.
	* Moved long links to footnotes.
	---
	 README.ja.md | 22 +++++++++-------------
	 README.md    | 11 +++++++----
	 2 files changed, 16 insertions(+), 17 deletions(-)

	Use autogen.sh

	---
	 .github/workflows/baseruby.yml           | 2 +-
	 .github/workflows/check_dependencies.yml | 2 +-
	 .github/workflows/compilers.yml          | 2 +-
	 .github/workflows/macos.yml              | 2 +-
	 .github/workflows/mjit.yml               | 2 +-
	 .github/workflows/ubuntu.yml             | 2 +-
	 6 files changed, 6 insertions(+), 6 deletions(-)

	autogen.sh: Added

	Currently it just runs "autoreconf --install"
	---
	 aclocal.m4 | 4 ++--
	 autogen.sh | 3 +++
	 2 files changed, 5 insertions(+), 2 deletions(-)
	 create mode 100755 autogen.sh

	get rid of aclocal (#4280)

	---
	 aclocal.m4   | 47 -----------------------------------------------
	 configure.ac | 35 ++++++++++++++++++++++++++++++++++-
	 2 files changed, 34 insertions(+), 48 deletions(-)
This commit is contained in:
nagachika 2021-04-18 18:03:33 +09:00
parent 6e6157d9a9
commit a55ba76617
12 changed files with 66 additions and 75 deletions

View file

@ -25,7 +25,7 @@ jobs:
bundler: none bundler: none
- run: echo "make=make -sj$((1 + $(nproc --all)))" >> $GITHUB_ENV - run: echo "make=make -sj$((1 + $(nproc --all)))" >> $GITHUB_ENV
- run: sudo apt-get install build-essential autoconf bison - run: sudo apt-get install build-essential autoconf bison
- run: autoconf - run: ./autogen.sh
- run: ./configure --disable-install-doc - run: ./configure --disable-install-doc
- run: $make update-unicode - run: $make update-unicode
- run: $make common-srcs - run: $make common-srcs

View file

@ -24,7 +24,7 @@ jobs:
run: | run: |
git config --global advice.detachedHead 0 git config --global advice.detachedHead 0
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: autoconf - run: ./autogen.sh
- name: Run configure - name: Run configure
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g' run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
- run: make all golf - run: make all golf

View file

@ -167,7 +167,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
path: src path: src
- run: autoconf - run: ./autogen.sh
working-directory: src working-directory: src
- name: Run configure - name: Run configure
run: | run: |

View file

@ -32,7 +32,7 @@ jobs:
- name: Set ENV - name: Set ENV
run: | run: |
echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV
- run: autoconf - run: ./autogen.sh
working-directory: src working-directory: src
- name: Run configure - name: Run configure
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)

View file

@ -35,7 +35,7 @@ jobs:
- name: Set ENV - name: Set ENV
run: | run: |
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
- run: autoconf - run: ./autogen.sh
working-directory: src working-directory: src
- name: Run configure - name: Run configure
run: ../src/configure -C --disable-install-doc run: ../src/configure -C --disable-install-doc

View file

@ -53,7 +53,7 @@ jobs:
- name: Set ENV - name: Set ENV
run: | run: |
echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
- run: autoconf - run: ./autogen.sh
working-directory: src working-directory: src
- name: Run configure - name: Run configure
run: ../src/configure -C --disable-install-doc cppflags=${{ matrix.debug }} run: ../src/configure -C --disable-install-doc cppflags=${{ matrix.debug }}

View file

@ -52,11 +52,11 @@ Rubyリポジトリの本来のmasterは https://git.ruby-lang.org/ruby.git に
### Subversion ### Subversion
古いRubyのバージョンのソースコードは次のコマンドで取得できます 古いRubyのバージョンのソースコードは次のコマンドで取得できます.
$ svn co https://svn.ruby-lang.org/repos/ruby/branches/ruby_2_6/ ruby $ svn co https://svn.ruby-lang.org/repos/ruby/branches/ruby_2_6/ ruby
に開発中のブランチの一覧は次のコマンドで見られます. 他のブランチの一覧は次のコマンドで見られます.
$ svn ls https://svn.ruby-lang.org/repos/ruby/branches/ $ svn ls https://svn.ruby-lang.org/repos/ruby/branches/
@ -71,31 +71,26 @@ https://www.ruby-lang.org/
## メーリングリスト ## メーリングリスト
Rubyのメーリングリストがあります参加希望の方は Rubyのメーリングリストがあります参加希望の方は [ruby-list-request@ruby-lang.org] まで本文に
mailto:ruby-list-request@ruby-lang.org
まで本文に
subscribe subscribe
と書いて送って下さい. と書いて送って下さい.
Ruby開発者向けメーリングリストもありますこちらではrubyのバグ将来の仕様拡張など実装上の問題について議論されています 参加希望の方は Ruby開発者向けメーリングリストもありますこちらではrubyのバグ将来の仕様拡張など実装上の問題について議論されています
参加希望の方は [ruby-dev-request@ruby-lang.org] までruby-listと同様の方法でメールしてください
mailto:ruby-dev-request@ruby-lang.org
までruby-listと同様の方法でメールしてください
Ruby拡張モジュールについて話し合うruby-extメーリングリストと数学関係の話題について話し合うruby-mathメーリングリストと Ruby拡張モジュールについて話し合うruby-extメーリングリストと数学関係の話題について話し合うruby-mathメーリングリストと
英語でrubyについて話し合うruby-talkメーリングリストもあります参加方法はどれも同じです 英語でrubyについて話し合うruby-talkメーリングリストもあります参加方法はどれも同じです
[ruby-list-request@ruby-lang.org]: mailto:ruby-list-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe
[ruby-dev-request@ruby-lang.org]: mailto:ruby-dev-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe
## コンパイル・インストール ## コンパイル・インストール
以下の手順で行ってください. 以下の手順で行ってください.
1. もし `configure` ファイルが見つからない,もしくは `configure.ac` より古いようなら, `autoconf` を実行して 1. (Gitリポジトリから取得したソースをビルドする場合) `./autogen.sh` を実行して新しく `configure` を生成する
新しく `configure` を生成する
2. `configure` を実行して `Makefile` などを生成する 2. `configure` を実行して `Makefile` などを生成する

View file

@ -51,7 +51,8 @@ if you are a committer.
### Subversion ### Subversion
Stable branches for older Ruby versions can be checked out with the following command: Stable branches for older Ruby versions can be checked out with also the
following command:
$ svn co https://svn.ruby-lang.org/repos/ruby/branches/ruby_2_6/ ruby $ svn co https://svn.ruby-lang.org/repos/ruby/branches/ruby_2_6/ ruby
@ -71,16 +72,17 @@ send the following phrase:
subscribe subscribe
in the mail body (not subject) to the address in the mail body (not subject) to the address [ruby-talk-request@ruby-lang.org].
[ruby-talk-request@ruby-lang.org](mailto:ruby-talk-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe).
[ruby-talk-request@ruby-lang.org]: mailto:ruby-talk-request@ruby-lang.org?subject=Join%20Ruby%20Mailing%20List&body=subscribe
## How to compile and install ## How to compile and install
1. If you want to use Microsoft Visual C++ to compile Ruby, read 1. If you want to use Microsoft Visual C++ to compile Ruby, read
[win32/README.win32](win32/README.win32) instead of this document. [win32/README.win32](win32/README.win32) instead of this document.
2. If `./configure` does not exist or is older than `configure.ac`, run 2. Run `./autogen.sh` to generate configure, when you build the source checked
`autoconf` to (re)generate configure. out from the Git repository.
3. Run `./configure`, which will generate `config.h` and `Makefile`. 3. Run `./configure`, which will generate `config.h` and `Makefile`.

48
aclocal.m4 vendored
View file

@ -1,48 +0,0 @@
# generated automatically by aclocal 1.16.2 -*- Autoconf -*-
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
m4_include([tool/m4/_colorize_result_prepare.m4])
m4_include([tool/m4/ac_msg_result.m4])
m4_include([tool/m4/colorize_result.m4])
m4_include([tool/m4/ruby_append_option.m4])
m4_include([tool/m4/ruby_append_options.m4])
m4_include([tool/m4/ruby_check_builtin_func.m4])
m4_include([tool/m4/ruby_check_builtin_setjmp.m4])
m4_include([tool/m4/ruby_check_printf_prefix.m4])
m4_include([tool/m4/ruby_check_setjmp.m4])
m4_include([tool/m4/ruby_check_signedness.m4])
m4_include([tool/m4/ruby_check_sizeof.m4])
m4_include([tool/m4/ruby_check_sysconf.m4])
m4_include([tool/m4/ruby_cppoutfile.m4])
m4_include([tool/m4/ruby_decl_attribute.m4])
m4_include([tool/m4/ruby_default_arch.m4])
m4_include([tool/m4/ruby_define_if.m4])
m4_include([tool/m4/ruby_defint.m4])
m4_include([tool/m4/ruby_dtrace_available.m4])
m4_include([tool/m4/ruby_dtrace_postprocess.m4])
m4_include([tool/m4/ruby_func_attribute.m4])
m4_include([tool/m4/ruby_mingw32.m4])
m4_include([tool/m4/ruby_prepend_option.m4])
m4_include([tool/m4/ruby_prog_gnu_ld.m4])
m4_include([tool/m4/ruby_replace_funcs.m4])
m4_include([tool/m4/ruby_replace_type.m4])
m4_include([tool/m4/ruby_rm_recursive.m4])
m4_include([tool/m4/ruby_setjmp_type.m4])
m4_include([tool/m4/ruby_stack_grow_direction.m4])
m4_include([tool/m4/ruby_try_cflags.m4])
m4_include([tool/m4/ruby_try_cxxflags.m4])
m4_include([tool/m4/ruby_try_ldflags.m4])
m4_include([tool/m4/ruby_type_attribute.m4])
m4_include([tool/m4/ruby_universal_arch.m4])
m4_include([tool/m4/ruby_werror_flag.m4])

9
autogen.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/sh
PWD=
case "$0" in
*/*) srcdir=`dirname $0`;;
*) srcdir="";;
esac
exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"}

View file

@ -2,7 +2,6 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT AC_INIT
{ {
AC_CONFIG_AUX_DIR(tool) AC_CONFIG_AUX_DIR(tool)
AC_CONFIG_MACRO_DIRS(tool/m4)
AC_PREREQ(2.67) AC_PREREQ(2.67)
@ -10,6 +9,40 @@ tooldir="$srcdir/tool"
AC_DISABLE_OPTION_CHECKING AC_DISABLE_OPTION_CHECKING
m4_include([tool/m4/_colorize_result_prepare.m4])
m4_include([tool/m4/ac_msg_result.m4])
m4_include([tool/m4/colorize_result.m4])
m4_include([tool/m4/ruby_append_option.m4])
m4_include([tool/m4/ruby_append_options.m4])
m4_include([tool/m4/ruby_check_builtin_func.m4])
m4_include([tool/m4/ruby_check_builtin_setjmp.m4])
m4_include([tool/m4/ruby_check_printf_prefix.m4])
m4_include([tool/m4/ruby_check_setjmp.m4])
m4_include([tool/m4/ruby_check_signedness.m4])
m4_include([tool/m4/ruby_check_sizeof.m4])
m4_include([tool/m4/ruby_check_sysconf.m4])
m4_include([tool/m4/ruby_cppoutfile.m4])
m4_include([tool/m4/ruby_decl_attribute.m4])
m4_include([tool/m4/ruby_default_arch.m4])
m4_include([tool/m4/ruby_define_if.m4])
m4_include([tool/m4/ruby_defint.m4])
m4_include([tool/m4/ruby_dtrace_available.m4])
m4_include([tool/m4/ruby_dtrace_postprocess.m4])
m4_include([tool/m4/ruby_func_attribute.m4])
m4_include([tool/m4/ruby_mingw32.m4])
m4_include([tool/m4/ruby_prepend_option.m4])
m4_include([tool/m4/ruby_prog_gnu_ld.m4])
m4_include([tool/m4/ruby_replace_funcs.m4])
m4_include([tool/m4/ruby_replace_type.m4])
m4_include([tool/m4/ruby_rm_recursive.m4])
m4_include([tool/m4/ruby_setjmp_type.m4])
m4_include([tool/m4/ruby_stack_grow_direction.m4])
m4_include([tool/m4/ruby_try_cflags.m4])
m4_include([tool/m4/ruby_try_cxxflags.m4])
m4_include([tool/m4/ruby_try_ldflags.m4])
m4_include([tool/m4/ruby_universal_arch.m4])
m4_include([tool/m4/ruby_werror_flag.m4])
AC_ARG_VAR([cflags], [additional CFLAGS (ignored when CFLAGS is given)]) AC_ARG_VAR([cflags], [additional CFLAGS (ignored when CFLAGS is given)])
AC_ARG_VAR([cppflags], [additional CPPFLAGS (ignored when CPPFLAGS is given)]) AC_ARG_VAR([cppflags], [additional CPPFLAGS (ignored when CPPFLAGS is given)])
AC_ARG_VAR([cxxflags], [additional CXXFLAGS (ignored when CXXFLAGS is given)]) AC_ARG_VAR([cxxflags], [additional CXXFLAGS (ignored when CXXFLAGS is given)])

View file

@ -12,7 +12,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 2 #define RUBY_VERSION_TEENY 2
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
#define RUBY_PATCHLEVEL 69 #define RUBY_PATCHLEVEL 70
#define RUBY_RELEASE_YEAR 2021 #define RUBY_RELEASE_YEAR 2021
#define RUBY_RELEASE_MONTH 4 #define RUBY_RELEASE_MONTH 4