commit: 03371f5cad89f5ead7aa8fa8ba76cc97f301b863 Author: orbea <orbea <AT> riseup <DOT> net> AuthorDate: Fri Oct 7 17:23:50 2022 +0000 Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> CommitDate: Fri Oct 7 21:11:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=03371f5c
dev-lang/ruby: Add patch from ::gentoo Signed-off-by: orbea <orbea <AT> riseup.net> Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> dev-lang/ruby/files/2.7/002-autoconf-2.70.patch | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/dev-lang/ruby/files/2.7/002-autoconf-2.70.patch b/dev-lang/ruby/files/2.7/002-autoconf-2.70.patch new file mode 100644 index 0000000..bea2bc1 --- /dev/null +++ b/dev-lang/ruby/files/2.7/002-autoconf-2.70.patch @@ -0,0 +1,26 @@ +diff --git a/configure.ac b/configure.ac +index 6766df2..bc503d6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -177,13 +177,14 @@ AS_CASE(["$host_os:$build_os"], + # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported) + # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn) + # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) +- AS_IF([! $CC -E -xc - <<SRC >/dev/null], [ +- @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 +- @%:@error premature clang +- @%:@endif +-SRC +- AC_MSG_ERROR([clang version 3.0 or later is required]) +- ])], ++ AC_PREPROC_IFELSE( ++ [AC_LANG_PROGRAM([ ++ @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 ++ @%:@error premature clang ++ @%:@endif ++ ])], ++ [], ++ [AC_MSG_ERROR([clang version 3.0 or later is required])])], + [openbsd*:openbsd*], [ + AC_CHECK_TOOLS(CC, [cc]) + ])
