[lasso] Fix java version detection in rawhide

Simo Sorce simo at fedoraproject.org
Mon Apr 14 18:30:04 UTC 2014


commit 1a0ebcd437835235ff12e16de95f5935a3bcc3ff
Author: Simo Sorce <simo at redhat.com>
Date:   Mon Apr 14 14:20:56 2014 -0400

    Fix java version detection in rawhide

 0001-Fix-java-version-detection.patch |   26 ++++++++++++++++++++++++++
 lasso.spec                            |    3 +++
 2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/0001-Fix-java-version-detection.patch b/0001-Fix-java-version-detection.patch
new file mode 100644
index 0000000..4c2e544
--- /dev/null
+++ b/0001-Fix-java-version-detection.patch
@@ -0,0 +1,26 @@
+From 8e2b247819b343c12aa29ad8d342f839632ace3c Mon Sep 17 00:00:00 2001
+From: Simo Sorce <simo at redhat.com>
+Date: Mon, 14 Apr 2014 14:19:20 -0400
+Subject: [PATCH] Fix java version detection
+
+Signed-off-by: Simo Sorce <simo at redhat.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0f32ad3164fb20f179ec1cca0af3f6ab485b8ffd..5668e6f325f8ad2caee1e960ed92f13fffca258f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -220,7 +220,7 @@ if test "x$JAVAC" = "xjavac"; then
+     dnl If we have a java compiler
+     dnl need to change quotes to allow square brackets
+     changequote(<<, >>)dnl
+-    JAVA_VERSION=`$JAVA -version 2>&1 | $SED -ne 's/java version "\([^"]*\)".*/\1/p' 2>/dev/null`
++    JAVA_VERSION=`$JAVA -version 2>&1 | $SED -ne 's/\(openjdk\|java\) \(full\)*version "\([^"]*\)".*/\3/p' 2>/dev/null`
+     changequote([, ])dnl
+     dnl If no java version found, perphas it is a kaffee environment...
+     if test "x$JAVA_VERSION" = x; then
+-- 
+1.8.5.3
+
diff --git a/lasso.spec b/lasso.spec
index 01696c9..0c4d342 100644
--- a/lasso.spec
+++ b/lasso.spec
@@ -23,6 +23,8 @@ BuildRequires: glib2-devel, swig
 BuildRequires: libxml2-devel, xmlsec1-devel, openssl-devel, xmlsec1-openssl-devel
 Url: http://lasso.entrouvert.org/
 
+Patch01: 0001-Fix-java-version-detection.patch
+
 %description
 Lasso is a library that implements the Liberty Alliance Single Sign On
 standards, including the SAML and SAML2 specifications. It allows to handle
@@ -97,6 +99,7 @@ library.
 
 %prep
 %setup -q -n %{name}-%{version}
+%patch01 -p1 -b .java_version
 
 %build
 ./autogen.sh


More information about the scm-commits mailing list