[前][次][番号順一覧][スレッド一覧]

ruby-changes:74177

From: nagachika <ko1@a...>
Date: Fri, 21 Oct 2022 15:21:34 +0900 (JST)
Subject: [ruby-changes:74177] bef621fcab (ruby_3_1): merge revision(s) 6f5305e0d2b4711b186ece8160716c7f9439ea8d:

https://git.ruby-lang.org/ruby.git/commit/?id=bef621fcab

From bef621fcabd50fe46e76ed9904eb5d1cf6654ec1 Mon Sep 17 00:00:00 2001
From: nagachika <nagachika@r...>
Date: Fri, 21 Oct 2022 15:19:05 +0900
Subject: merge revision(s) 6f5305e0d2b4711b186ece8160716c7f9439ea8d:

	Exclude LIBPATHENV wrapper from PREP

	---
	 common.mk            | 4 ++--
	 configure.ac         | 2 +-
	 template/Makefile.in | 2 ++
	 3 files changed, 5 insertions(+), 3 deletions(-)
---
 common.mk            | 4 ++--
 configure.ac         | 2 +-
 template/Makefile.in | 2 ++
 version.h            | 2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/common.mk b/common.mk
index 499d9a91a7..622dd60bc9 100644
--- a/common.mk
+++ b/common.mk
@@ -933,11 +933,11 @@ $(PLATFORM_D): https://github.com/ruby/ruby/blob/trunk/common.mk#L933
 	$(Q) $(MAKEDIRS) $(PLATFORM_DIR) $(@D)
 	@$(NULLCMD) > $@
 
-exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time miniruby$(EXEEXT) {$(VPATH)}config.h
+exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time $(PREP) {$(VPATH)}config.h
 	$(Q) $(CC) $(CFLAGS) $(INCFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(@F) $(COUTFLAG)ruby-runner.$(OBJEXT) -c $(CSRCFLAG)$(srcdir)/ruby-runner.c
 	$(Q) $(PURIFY) $(CC) $(CFLAGS) $(LDFLAGS) $(OUTFLAG)$@ ruby-runner.$(OBJEXT) $(LIBS)
 	$(Q) $(POSTLINK)
-	$(Q) ./miniruby$(EXEEXT) \
+	$(Q) $(BOOTSTRAPRUBY) \
 	    -e 'prog, dest, inst = ARGV; dest += "/ruby"' \
 	    -e 'exit unless prog==inst' \
 	    -e 'unless prog=="ruby"' \
diff --git a/configure.ac b/configure.ac
index 381b2484ba..dac8907a64 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3587,7 +3587,7 @@ AS_CASE("$cross_compiling:${LIBPATHENV}", [yes:* | no:], [], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L3587
     AC_MSG_CHECKING(whether wrapper for $LIBPATHENV is needed)
     AS_IF([env ${LIBPATHENV}=/lib /bin/sh -c ': ${'${LIBPATHENV}'?}' 2>/dev/null],
 	[AC_MSG_RESULT(no)],
-	[PREP="$PREP"' exe/$(PROGRAM)'
+	[AC_SUBST(XRUBY_LIBPATHENV_WRAPPER, 'exe/$(PROGRAM)')
 	AC_MSG_RESULT(yes)]
     )
 ])
diff --git a/template/Makefile.in b/template/Makefile.in
index 2110d53ec1..2e86465832 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -288,6 +288,8 @@ $(PROGRAM): https://github.com/ruby/ruby/blob/trunk/template/Makefile.in#L288
 		$(Q) $(PURIFY) $(CC) $(EXE_LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(MAINLIBS) $(LIBS) $(EXTLIBS) $(OUTFLAG)$@
 		$(Q) $(POSTLINK)
 
+$(PROGRAM): @XRUBY_LIBPATHENV_WRAPPER@
+
 PRE_LIBRUBY_UPDATE = [ -n "$(LIBRUBY_SO_UPDATE)" ] || $(gnumake:yes=exec) $(RM) $(LIBRUBY_EXTS)
 
 # We must `rm' the library each time this rule is invoked because "updating" a
diff --git a/version.h b/version.h
index 3fd87c0bdb..6fae581e26 100644
--- a/version.h
+++ b/version.h
@@ -11,7 +11,7 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L11
 # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
 #define RUBY_VERSION_TEENY 3
 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 146
+#define RUBY_PATCHLEVEL 147
 
 #define RUBY_RELEASE_YEAR 2022
 #define RUBY_RELEASE_MONTH 10
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]