From c76e88332d8e20409300255175b79c75fc8665f3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Oct 27 2011 08:21:30 +0000 Subject: possible fix for java 1.7.0 detection --- diff --git a/0001-add-Oracle-Java-1.7.0-recognition.patch b/0001-add-Oracle-Java-1.7.0-recognition.patch new file mode 100644 index 0000000..9889535 --- /dev/null +++ b/0001-add-Oracle-Java-1.7.0-recognition.patch @@ -0,0 +1,68 @@ +From 549e54fb2f8113502743c443d6deadfe648dede1 Mon Sep 17 00:00:00 2001 +From: Hanno Meyer-Thurow +Date: Tue, 13 Sep 2011 13:23:28 +0100 +Subject: [PATCH] add Oracle Java 1.7.0 recognition + +--- + .../OpenOfficeorg/javavendors_linux.xml | 4 ++++ + jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx | 2 ++ + jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx | 1 + + 3 files changed, 7 insertions(+), 0 deletions(-) + +diff --git a/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml b/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml +index ed329e5..489511f 100644 +--- a/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml ++++ b/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml +@@ -9,6 +9,9 @@ + + 1.5.0 + ++ ++ 1.7.0 ++ + + 1.5.0 + +@@ -25,6 +28,7 @@ + + + vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so ++ vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so + vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so + vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so + vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so +diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +index 8567d79..91ad4c6 100644 +--- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx ++++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +@@ -112,6 +112,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) + + //Only do something if the sunjavaplugin created this JavaInfo + rtl::OUString sVendor1(RTL_CONSTASCII_USTRINGPARAM("Sun Microsystems Inc.")); ++ rtl::OUString sVendor9(RTL_CONSTASCII_USTRINGPARAM("Oracle Corporation")); + rtl::OUString sVendor2(RTL_CONSTASCII_USTRINGPARAM("IBM Corporation")); + rtl::OUString sVendor3(RTL_CONSTASCII_USTRINGPARAM("Blackdown Java-Linux Team")); + rtl::OUString sVendor4(RTL_CONSTASCII_USTRINGPARAM("Apple Inc.")); +@@ -121,6 +122,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) + rtl::OUString sVendor8(RTL_CONSTASCII_USTRINGPARAM("The FreeBSD Foundation")); + if ( ! (sVendor1.equals(pInfo->sVendor) == sal_True + || sVendor2.equals(pInfo->sVendor) == sal_True ++ || sVendor9.equals(pInfo->sVendor) == sal_True + || sVendor3.equals(pInfo->sVendor) == sal_True + || sVendor4.equals(pInfo->sVendor) == sal_True + || sVendor5.equals(pInfo->sVendor) == sal_True +diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx +index f24b6ff..5e87002 100644 +--- a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx ++++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx +@@ -52,6 +52,7 @@ namespace jfw_plugin + */ + BEGIN_VENDOR_MAP() + VENDOR_MAP_ENTRY("Sun Microsystems Inc.", SunInfo) ++ VENDOR_MAP_ENTRY("Oracle Corporation", SunInfo) + VENDOR_MAP_ENTRY("IBM Corporation", OtherInfo) + VENDOR_MAP_ENTRY("Blackdown Java-Linux Team", OtherInfo) + VENDOR_MAP_ENTRY("Apple Inc.", OtherInfo) +-- +1.7.6.4 + diff --git a/libreoffice.spec b/libreoffice.spec index 302cd1f..842dd12 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -27,7 +27,7 @@ Summary: Free Software Productivity Suite Name: libreoffice Epoch: 1 Version: 3.4.4.1 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and (CDDL or GPLv2) and Public Domain Group: Applications/Productivity URL: http://www.documentfoundation.org/develop @@ -122,6 +122,7 @@ Patch26: gdb-pretty-printers.patch Patch27: 0001-Related-fdo-37195-migrationoo3-not-registered.patch Patch28: 0001-Resolves-rhbz-738255-avoid-crash-on-NULL-pointer.patch Patch29: 0001-avoid-using-com.sun.org-apis.patch +Patch30: 0001-add-Oracle-Java-1.7.0-recognition.patch %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %define instdir %{_libdir} @@ -793,6 +794,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc %patch27 -p1 -b .fdo37195-migrationoo3-not-registered.patch %patch28 -p1 -b .rhbz738255-avoid-crash-on-NULL-pointer.patch %patch29 -p1 -b .avoid-using-com.sun.org-apis.patch +%patch30 -p1 -b .add-Oracle-Java-1.7.0-recognition.patch # these are horribly incomplete--empty translations and copied english # strings with spattering of translated strings @@ -2094,6 +2096,9 @@ update-desktop-database %{_datadir}/applications &> /dev/null || : %{basisinstdir}/program/kde-open-url %changelog +* Thu Oct 27 2011 Caolán McNamara - 3.4.4.1-2 +- possible fix for java 1.7.0 detection + * Wed Oct 26 2011 David Tardon - 3.4.4.1-1 - 3.4.4 rc1