svn commit: r1921460 - /subversion/trunk/tools/dev/unix-build/Makefile.svn

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: dsahlberg
Date: Mon Oct 21 17:38:07 2024
New Revision: 1921460

URL: http://svn.apache.org/viewvc?rev=1921460&view=rev
Log:
In tools/dev/unix-build

Make sure we can compile Ruby > 3, it already contains the patches.

* Makefile.svn
  As above

Modified:
    subversion/trunk/tools/dev/unix-build/Makefile.svn

Modified: subversion/trunk/tools/dev/unix-build/Makefile.svn
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/unix-build/Makefile.svn?rev=1921460&r1=1921459&r2=1921460&view=diff
==============================================================================
--- subversion/trunk/tools/dev/unix-build/Makefile.svn (original)
+++ subversion/trunk/tools/dev/unix-build/Makefile.svn Mon Oct 21 17:38:07 2024
@@ -1168,6 +1168,7 @@ $(DISTDIR)/$(RUBY_DIST):
 
 $(RUBY_OBJDIR)/openssl_missing.patch:
 	mkdir -p $(dir $@)
+ifeq ($(shell test $(RUBY_MAJOR_VER) \< 3.0 && echo 1), 1)
 	echo > [email protected] 'Index: ext/openssl/openssl_missing.h'
 	echo >> [email protected] '--- ext/openssl/openssl_missing.h.orig'
 	echo >> [email protected] '+++ ext/openssl/openssl_missing.h'
@@ -1198,9 +1199,13 @@ $(RUBY_OBJDIR)/openssl_missing.patch:
 	echo >> [email protected] ' '
 	echo >> [email protected] ' #if defined(HAVE_AUTHENTICATED_ENCRYPTION) && !defined(EVP_CTRL_AEAD_GET_TAG)'
 	mv -f [email protected] $@
+else
+	touch $@
+endif
 
 $(RUBY_OBJDIR)/sparc64_buserror.patch:
 	mkdir -p $(dir $@)
+ifeq ($(shell test $(RUBY_MAJOR_VER) \< 3.0 && echo 1), 1)
 	echo > [email protected] '--- compile.c.orig	Thu Mar 12 12:58:26 2020'
 	echo >> [email protected] '+++ compile.c	Thu Mar 12 16:36:55 2020'
 	echo >> [email protected] '@@ -751,6 +751,16 @@'
@@ -1221,6 +1226,9 @@ $(RUBY_OBJDIR)/sparc64_buserror.patch:
 	echo >> [email protected] '   #if defined(HAVE_TRUE_LONG_LONG) && SIZEOF_LONG_LONG > SIZEOF_VALUE'
 	echo >> [email protected] '     #define ALIGNMENT_SIZE SIZEOF_LONG_LONG'
 	mv -f [email protected] $@
+else
+	touch $@
+endif
 
 ifeq ($(UNAME),OpenBSD)
 RUBY_SSL_EX_NEW_DATA_PATCH = sed -i -e '/^have_func("X509_STORE_set_ex_data")$$/ { p; s/^.*$$/\have_func("X509_STORE_get_ex_new_index")/; }'
@@ -1236,8 +1244,10 @@ $(RUBY_OBJDIR)/.retrieved: $(DISTDIR)/$(
 	tar -C $(SRCDIR) -zxf $(DISTDIR)/$(RUBY_DIST)
 	-which ghead && sed -i -e "s/head -c/ghead -c/" $(RUBY_SRCDIR)/configure
 	$(RUBY_SSL_EX_NEW_DATA_PATCH) $(RUBY_SRCDIR)/ext/openssl/extconf.rb
+ifeq ($(shell test $(RUBY_MAJOR_VER) \< 3.0 && echo 1), 1)
 	cd $(RUBY_SRCDIR) && patch -p0 < $(RUBY_OBJDIR)/openssl_missing.patch
 	cd $(RUBY_SRCDIR) && patch -p0 < $(RUBY_OBJDIR)/sparc64_buserror.patch
+endif
 	sed -i 's/X509_num(bs->certs)/X509_num(OCSP_resp_get0_certs(bs))/' \
 		$(RUBY_SRCDIR)/ext/openssl/ossl_ocsp.c
 	touch $@
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.