#2 Fix build with Java 11 due to broken autoconf
Closed 3 years ago by cipherboy. Opened 3 years ago by cipherboy.
rpms/ cipherboy/libdb java-11  into  master

@@ -0,0 +1,26 @@ 

+ From eb6dff6d161c7116cdc55a0be3eae325c78bb334 Mon Sep 17 00:00:00 2001

+ From: Alexander Scheel <ascheel@redhat.com>

+ Date: Tue, 30 Jun 2020 11:23:12 -0400

+ Subject: [PATCH] Properly detect Java 11

+ 

+ Signed-off-by: Alexander Scheel <ascheel@redhat.com>

+ ---

+  dist/configure.ac | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/dist/configure.ac b/dist/configure.ac

+ index 371d55c..0d1cadd 100644

+ --- a/dist/configure.ac

+ +++ b/dist/configure.ac

+ @@ -454,7 +454,7 @@ if test "$db_cv_java" = "yes" -o "$db_cv_jdbc" = "yes"; then

+  	esac

+  	AC_MSG_RESULT($JAVA_VERSION)

+  	case "$JAVA_VERSION" in

+ -	1.[[3456789]]* | 1.[[1-9]][[0-9]]* | [[23456789]]* ) ;;

+ +	1.[[3456789]]* | 1.[[1-9]][[0-9]]* | [1-9][0-9]* ) ;;

+  	* )

+  		AC_MSG_ERROR([Java version 1.3 or higher required, got $JAVA_VERSION]) ;;

+  	esac

+ -- 

+ 2.26.2

+ 

file modified
+4
@@ -56,6 +56,10 @@ 

  # rhbz#1608749 Patch sent upstream

  # Expects libdb-5.3.21-mutex_leak.patch applied

  Patch39: libdb-5.3.21-trickle_cpu.patch

+ # Java 11 will be the default JDK on Fedora 33 and above;

+ # fix configure.ac to handle two-digit Java versions

+ # properly.

+ Patch40: libdb-Properly-detect-Java-11.patch

  

  

  URL: http://www.oracle.com/database/berkeley-db/

Signed-off-by: Alexander Scheel <ascheel@redhat.com>


Additionally, might be worthwhile to update the package to a newer version where upstream has migrated to Java 11 as well.

Pull-Request has been closed by cipherboy

3 years ago