From owner-svn-ports-head@FreeBSD.ORG Thu Sep 27 02:48:54 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D409106566C; Thu, 27 Sep 2012 02:48:54 +0000 (UTC) (envelope-from maho@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 159388FC0C; Thu, 27 Sep 2012 02:48:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8R2ms9i038039; Thu, 27 Sep 2012 02:48:54 GMT (envelope-from maho@svn.freebsd.org) Received: (from maho@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8R2mr8b038032; Thu, 27 Sep 2012 02:48:53 GMT (envelope-from maho@svn.freebsd.org) Message-Id: <201209270248.q8R2mr8b038032@svn.freebsd.org> From: Maho Nakata Date: Thu, 27 Sep 2012 02:48:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304943 - in head/editors/openoffice-3-devel: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2012 02:48:54 -0000 Author: maho Date: Thu Sep 27 02:48:53 2012 New Revision: 304943 URL: http://svn.freebsd.org/changeset/ports/304943 Log: Allowing openjdk7 build. Added: head/editors/openoffice-3-devel/files/patch-configure.in (contents, props changed) head/editors/openoffice-3-devel/files/patch-i121098 (contents, props changed) head/editors/openoffice-3-devel/files/patch-jdk7-hsqldb-debian (contents, props changed) head/editors/openoffice-3-devel/files/patch-jdk7-hsqldb-debian-x (contents, props changed) head/editors/openoffice-3-devel/files/patch-sed (contents, props changed) Modified: head/editors/openoffice-3-devel/Makefile Modified: head/editors/openoffice-3-devel/Makefile ============================================================================== --- head/editors/openoffice-3-devel/Makefile Thu Sep 27 02:03:07 2012 (r304942) +++ head/editors/openoffice-3-devel/Makefile Thu Sep 27 02:48:53 2012 (r304943) @@ -45,7 +45,7 @@ GNOMEVFS_DESC= Enable GNOME Virtual File USE_JAVA= yes JAVA_BUILD= jdk JAVA_VENDOR= freebsd bsdjava openjdk -JAVA_VERSION= 1.5 1.6 +JAVA_VERSION= 1.5 1.6 1.7 .if !defined(WITHOUT_GCONF) USE_GNOME+= gconf2 @@ -194,6 +194,7 @@ CONFIGURE_ARGS+= --enable-verbose \ --with-system-apr \ --with-system-apr-util \ --with-system-coinmp \ + --with-system-apache-commons=yes \ --with-commons-codec-jar=${JAVALIBDIR}/commons-codec.jar \ --with-commons-lang-jar=${JAVALIBDIR}/commons-lang.jar \ --with-commons-httpclient-jar=${JAVALIBDIR}/commons-httpclient.jar \ Added: head/editors/openoffice-3-devel/files/patch-configure.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-3-devel/files/patch-configure.in Thu Sep 27 02:48:53 2012 (r304943) @@ -0,0 +1,12 @@ +--- configure.in~ 2012-09-21 20:42:22.000000000 +0900 ++++ configure.in 2012-09-26 13:32:06.000000000 +0900 +@@ -52,6 +52,9 @@ + AC_ARG_WITH(system-graphite, + [ --with-system-graphite use graphite library already installed on system + ],,) ++AC_ARG_WITH(system-apache-commons, ++[ --with-system-apache-commons use apache-commons jar files already installed on system ++],,) + AC_ARG_ENABLE(online-update, + [ --disable-online-update Disables the Online Update feature. + ],,enable_online_update=yes) Added: head/editors/openoffice-3-devel/files/patch-i121098 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-3-devel/files/patch-i121098 Thu Sep 27 02:48:53 2012 (r304943) @@ -0,0 +1,13 @@ +Index: codemaker/source/javamaker/classfile.cxx +=================================================================== +--- codemaker/source/javamaker/classfile.cxx (revision 1389908) ++++ codemaker/source/javamaker/classfile.cxx (working copy) +@@ -695,7 +695,7 @@ + void ClassFile::write(FileStream & file) const { + writeU4(file, 0xCAFEBABE); + writeU2(file, 0); +- writeU2(file, 46); ++ writeU2(file, 49); + writeU2(file, m_constantPoolCount); + writeStream(file, m_constantPool); + writeU2(file, static_cast< sal_uInt16 >(m_accessFlags)); Added: head/editors/openoffice-3-devel/files/patch-jdk7-hsqldb-debian ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-3-devel/files/patch-jdk7-hsqldb-debian Thu Sep 27 02:48:53 2012 (r304943) @@ -0,0 +1,270 @@ +--- hsqldb/patches/jdbc-4.1.patch ++++ hsqldb/patches/jdbc-4.1.patch +@@ -0,0 +1,267 @@ ++--- misc/hsqldb/build/build.xml 2012-02-08 15:14:42.827123541 +0000 +++++ misc/build/hsqldb/build/build.xml 2012-02-08 15:21:43.827722388 +0000 ++@@ -98,7 +98,11 @@ ++ ++ ++ ++- +++ +++ +++ +++ +++ ++ ++ ++ ++@@ -210,6 +214,7 @@ ++ ++ ++ +++ ++ ++ ++ ++@@ -244,6 +249,7 @@ ++ ++ ++ +++ ++ ++ ++ ++@@ -279,10 +285,47 @@ ++ ++ ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ ++ ++ ++ ++- ++ T getObject(String columnLabel, Class type) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public T getObject(int ColumnIndex, Class type) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ +++//#endif JAVA7 ++ } ++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java 2012-02-08 15:14:42.802123563 +0000 +++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java 2012-02-08 15:47:35.851635628 +0000 ++@@ -48,6 +48,12 @@ ++ import java.sql.SQLXML; ++ ++ //#endif JAVA6 +++ +++//#ifdef JAVA7 +++import java.util.concurrent.Executor; +++ +++//#endif JAVA7 +++ ++ import java.sql.PreparedStatement; ++ import java.sql.SQLException; ++ import java.sql.SQLWarning; ++@@ -2793,4 +2799,31 @@ ++ } ++ ++ //#endif JAVA6 +++ +++//#ifdef JAVA7 +++ public int getNetworkTimeout() throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public void setNetworkTimeout(Executor executor, int millis) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public void abort(Executor executor) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public String getSchema() throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public void setSchema(String schema) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++//#endif JAVA7 ++ } ++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java 2012-02-08 15:14:42.802123563 +0000 +++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java 2012-02-08 15:47:35.835635654 +0000 ++@@ -5693,4 +5693,21 @@ ++ } ++ ++ //#endif JAVA6 +++ +++ +++//#ifdef JAVA7 +++ public boolean generatedKeyAlwaysReturned() throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public ResultSet getPseudoColumns(String catalog, String schemaPattern, +++ String tableNamePattern, String columnNamePattern) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ +++//#endif JAVA7 +++ ++ } ++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcDataSource.java 2012-02-08 15:14:42.802123563 +0000 +++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcDataSource.java 2012-02-08 15:47:35.836635653 +0000 ++@@ -47,6 +47,11 @@ ++ //#endif JAVA4 ++ import org.hsqldb.jdbcDriver; ++ +++//#ifdef JAVA7 +++import java.sql.SQLFeatureNotSupportedException; +++import java.util.logging.Logger; +++//#endif JAVA7 +++ ++ // boucherb@users 20040411 - doc 1.7.2 - javadoc updates toward 1.7.2 final ++ ++ /** ++@@ -323,4 +328,12 @@ ++ } ++ ++ //#endif JAVA6 +++ +++//#ifdef JAVA7 +++ public Logger getParentLogger() throws SQLFeatureNotSupportedException +++ { +++ throw new SQLFeatureNotSupportedException("Not supported yet."); +++ } +++ +++//#endif JAVA7 ++ } ++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcResultSet.java 2012-02-08 15:14:42.802123563 +0000 +++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcResultSet.java 2012-02-08 15:47:35.866635606 +0000 ++@@ -5324,4 +5324,19 @@ ++ } ++ ++ //#endif JAVA6 +++ +++//#ifdef JAVA7 +++ +++ public T getObject(String columnLabel, Class type) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public T getObject(int columnNum, Class type) throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++//#endif JAVA7 +++ ++ } ++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java 2012-02-08 15:14:42.802123563 +0000 +++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java 2012-02-08 15:47:35.872635595 +0000 ++@@ -1608,4 +1608,16 @@ ++ throw new UnsupportedOperationException("Not supported yet."); ++ } ++ //#endif JAVA6 +++ +++//#ifdef JAVA7 +++ public boolean isCloseOnCompletion() throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++ +++ public void closeOnCompletion() throws SQLException +++ { +++ throw new UnsupportedOperationException("Not supported yet."); +++ } +++//#endif JAVA7 ++ } ++--- misc/hsqldb/src/org/hsqldb/jdbcDriver.java 2012-02-08 15:14:42.800123566 +0000 +++++ misc/build/hsqldb/src/org/hsqldb/jdbcDriver.java 2012-02-08 15:47:35.826635667 +0000 ++@@ -42,6 +42,11 @@ ++ import org.hsqldb.persist.HsqlDatabaseProperties; ++ import org.hsqldb.persist.HsqlProperties; ++ +++//#ifdef JAVA7 +++import java.sql.SQLFeatureNotSupportedException; +++import java.util.logging.Logger; +++//#endif JAVA7 +++ ++ // fredt@users 20011220 - patch 1.7.0 by fredt ++ // new version numbering scheme ++ // fredt@users 20020320 - patch 1.7.0 - JDBC 2 support and error trapping ++@@ -321,4 +326,12 @@ ++ DriverManager.registerDriver(new jdbcDriver()); ++ } catch (Exception e) {} ++ } +++ +++//#ifdef JAVA7 +++ public Logger getParentLogger() throws SQLFeatureNotSupportedException +++ { +++ throw new SQLFeatureNotSupportedException("Not supported yet."); +++ } +++ +++//#endif JAVA7 ++ } Added: head/editors/openoffice-3-devel/files/patch-jdk7-hsqldb-debian-x ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-3-devel/files/patch-jdk7-hsqldb-debian-x Thu Sep 27 02:48:53 2012 (r304943) @@ -0,0 +1,12 @@ +--- hsqldb/makefile.mk.orig 2012-02-17 08:46:16.000000000 +0000 ++++ hsqldb/makefile.mk 2012-09-15 18:00:27.000000000 +0000 +@@ -52,7 +52,8 @@ + PATCH_FILES=patches$/i96823.patch \ + patches$/i97032.patch \ + patches$/i103528.patch \ +- patches$/i104901.patch ++ patches$/i104901.patch \ ++ patches$/jdbc-4.1.patch + + .IF "$(JAVACISGCJ)"=="yes" + JAVA_HOME= Added: head/editors/openoffice-3-devel/files/patch-sed ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-3-devel/files/patch-sed Thu Sep 27 02:48:53 2012 (r304943) @@ -0,0 +1,16 @@ +--- swext/mediawiki/makefile.mk 2012-09-21 20:36:58.000000000 +0900 ++++ swext/mediawiki/makefile.mk 2012-09-26 16:36:38.000000000 +0900 +@@ -50,10 +50,10 @@ + + fix_system_commons: + @echo "Fix Java Class-Path entry for Apache Commons libraries from system." +- @$(SED) -r -e "s#(name=\"Class-Path\" value=\").*\"#\1file://$(COMMONS_CODEC_JAR) file://$(COMMONS_LANG_JAR) \ +-file://$(COMMONS_HTTPCLIENT_JAR) file://$(COMMONS_LOGGING_JAR)\"#" -i build.xml ++ @$(SED) -i.bak -r -e "s#(name=\"Class-Path\" value=\").*\"#\1file://$(COMMONS_CODEC_JAR) file://$(COMMONS_LANG_JAR) \ ++file://$(COMMONS_HTTPCLIENT_JAR) file://$(COMMONS_LOGGING_JAR)\"#" build.xml + @echo "Unbundle Apache Commons libraries from Mediawiki Presentation extension." +- @$(SED) '/file="..commons/d' -i build.xml ++ @$(SED) -i.bak '/file="..commons/d' build.xml + + .ELSE + @all: