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

ruby-changes:70077

From: Nobuyoshi <ko1@a...>
Date: Mon, 6 Dec 2021 17:53:52 +0900 (JST)
Subject: [ruby-changes:70077] 5ce3272e51 (master): autogen.sh: Copy auxiliary files instead of symlinks with `-i`

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

From 5ce3272e513e0dafedcc40f121e2d71bef3a3688 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 6 Dec 2021 17:53:37 +0900
Subject: autogen.sh: Copy auxiliary files instead of symlinks with `-i`

When accessing from containers, symbolic links may not be able to
reach outer file systems.
---
 autogen.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/autogen.sh b/autogen.sh
index 44a1922cb05..f8cdf3c0c1e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,4 +6,12 @@ case "$0" in https://github.com/ruby/ruby/blob/trunk/autogen.sh#L6
 *) srcdir="";;
 esac
 
-exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"}
+symlink='--install --symlink'
+case " $* " in
+    *" -i "*|*" --install "*)
+        # reset to copy missing standard auxiliary files, instead of symlinks
+        symlink=
+        ;;
+esac
+
+exec ${AUTORECONF:-autoreconf} ${symlink} "$@" ${srcdir:+"$srcdir"}
-- 
cgit v1.2.1


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

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