File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ def install
114114
115115 ENV . append_to_cflags "-DDEFAULT_LOADABLE_BUILTINS_PATH='\" #{ bash_loadables_path } \" '"
116116
117+ # Avoid crashes on macOS 15.0-15.4.
118+ ENV [ "bash_cv_func_strchrnul_works" ] = "no" if OS . mac? && MacOS . version <= :sequoia
119+
117120 system "./configure" , "--prefix=#{ prefix } " , "--with-curses" , "--with-installed-readline"
118121 system "make" , "install"
119122
@@ -130,5 +133,9 @@ def caveats
130133 # If the following assertion breaks, then it's likely the configuration of `DEFAULT_LOADABLE_BUILTINS_PATH`
131134 # is broken. Changing the test below will probably hide that breakage.
132135 assert_equal "csv is a shell builtin\n " , shell_output ( "#{ bin } /bash -c 'enable csv; type csv'" )
136+
137+ return if OS . linux? || MacOS . version > :sequoia
138+
139+ refute_match "U _strchrnul" , shell_output ( "nm #{ bin } /bash" )
133140 end
134141end
You can’t perform that action at this time.
0 commit comments