Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2016 19:32:13 +0000 (UTC)
From:      Don Lewis <truckman@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r407493 - in branches/2016Q1/editors/openoffice-4: . files
Message-ID:  <201601291932.u0TJWDH5016517@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: truckman
Date: Fri Jan 29 19:32:12 2016
New Revision: 407493
URL: https://svnweb.freebsd.org/changeset/ports/407493

Log:
  MFH: r405096 (direct commit to openoffice-4 only)
  MFH: r406872 (direct commit to openoffice-4 only)
  MFH: r407439
  
  r405096:
   Correct the Icon entry in the .desktop files so that the icons are
   visible in the menu.
  
  r406872:
   PORTREVISION bump to allow a clean merge of the next
  
  r470439: [1]
   Fix nss-related problems with password-protected documents.
  
   Apply patches from upstream commits r1724971 and r1726068 to fix
   upstream bug <https://bz.apache.org/ooo/show_bug.cgi?id=125431>,
   "The Password is incorrect. The file cannot be opened."
  
  PR:		205758
  PR:		206234
  Submitted by:	Arrigo Marchiori <ardovm AT yahoo.it> [1]
  Approved by:	ports-secteam (miwi - r407439)
  Approved by:	ports-secteam (feld - r405096, r406872)

Added:
  branches/2016Q1/editors/openoffice-4/files/patch-nss
     - copied unchanged from r407439, head/editors/openoffice-4/files/patch-nss
Modified:
  branches/2016Q1/editors/openoffice-4/Makefile
Directory Properties:
  branches/2016Q1/   (props changed)

Modified: branches/2016Q1/editors/openoffice-4/Makefile
==============================================================================
--- branches/2016Q1/editors/openoffice-4/Makefile	Fri Jan 29 19:00:52 2016	(r407492)
+++ branches/2016Q1/editors/openoffice-4/Makefile	Fri Jan 29 19:32:12 2016	(r407493)
@@ -3,6 +3,7 @@
 
 PORTNAME=	apache-openoffice
 PORTVERSION=	${AOOVERSION}
+PORTREVISION=	3
 CATEGORIES=	editors java
 MASTER_SITES=	APACHE/openoffice/${PORTVERSION}/source \
 		http://tools.openoffice.org/unowinreg_prebuild/680/:unoreg \
@@ -325,7 +326,7 @@ post-extract:
 		-e d  ${WRKSRC}/LICENSE > ${LICENSE_FILE_W3C}
 
 post-patch:
-	${REINPLACE_CMD} -e "/^ICONVERSION/s/=.*/= '-${AOOSUFFIX}'/" \
+	${REINPLACE_CMD} -e "/^ICONVERSION/s/=.*/= '${AOOVERSION1}'/" \
 		${WRKSRC}/sysui/desktop/productversion.mk
 	${REINPLACE_CMD} -e "s|%%JAVA_HOME%%|${JAVA_HOME}|" \
 		${WRKSRC}/desktop/scripts/soffice.sh

Copied: branches/2016Q1/editors/openoffice-4/files/patch-nss (from r407439, head/editors/openoffice-4/files/patch-nss)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2016Q1/editors/openoffice-4/files/patch-nss	Fri Jan 29 19:32:12 2016	(r407493, copy of r407439, head/editors/openoffice-4/files/patch-nss)
@@ -0,0 +1,69 @@
+--- extensions/source/mozbootstrap/MNSProfileDiscover.cxx.orig	2014-04-22 09:27:50 UTC
++++ extensions/source/mozbootstrap/MNSProfileDiscover.cxx
+@@ -123,9 +123,14 @@ namespace connectivity
+                     {
+                         isRelative = sIsRelative.toInt32();
+                     }
++                    if (isRelative)
++                    {
++                        // Make it absolute
++                        profilePath = regDir + profilePath;
++                    }
+ 
+                     ProfileStruct*  profileItem     = new ProfileStruct(product,profileName,
+-                            regDir + profilePath);
++                            profilePath);
+                     m_Product.mProfileList[profileName] = profileItem;
+ 
+                     sal_Int32 isDefault = 0;
+--- xmlsecurity/source/xmlsec/nss/makefile.mk.orig	2015-09-28 07:58:41 UTC
++++ xmlsecurity/source/xmlsec/nss/makefile.mk
+@@ -42,6 +42,10 @@ CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
+ 	@echo "No nss -> no libxmlsec -> no xmlsecurity/nss"
+ .ENDIF
+ 
++.IF "$(SYSTEM_NSS)" == "YES"
++CFLAGS+=-DSYSTEM_NSS
++.ENDIF
++
+ .IF "$(SYSTEM_NSS)" != "YES"
+ MOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla
+ NSS_CFLAGS = -I$(MOZ_INC)$/nss
+--- xmlsecurity/source/xmlsec/nss/nssinitializer.cxx.orig	2015-09-24 07:42:09 UTC
++++ xmlsecurity/source/xmlsec/nss/nssinitializer.cxx
+@@ -234,7 +234,7 @@ void deleteRootsModule()
+ //the location of the roots module to the profile, which makes FF2 and TB2 use
+ //it instead of there own module.
+ //
+-//When using SYSTEM_MOZILLA then the libnss3.so lib is typically found in
++//When using SYSTEM_NSS then the libnss3.so lib is typically found in
+ ///usr/lib. This folder may, however, NOT contain the roots certificate
+ //module. That is, just providing the library name in SECMOD_LoadUserModule or
+ //SECMOD_AddNewModule will FAIL to load the mozilla unless the LD_LIBRARY_PATH
+@@ -289,7 +289,7 @@ bool nsscrypto_initialize( const css::un
+     out_nss_init = true;
+     
+ #ifdef XMLSEC_CRYPTO_NSS
+-#if defined SYSTEM_MOZILLA
++#if defined SYSTEM_NSS
+     if (!SECMOD_HasRootCerts())
+     {
+ #endif
+@@ -298,7 +298,7 @@ bool nsscrypto_initialize( const css::un
+ #if defined OS2
+         // YD the nss system dlls names are ending with 'k'
+         OUString rootModule(RTL_CONSTASCII_USTRINGPARAM( "nssckbik" SAL_DLLEXTENSION));
+-#elif defined SYSTEM_MOZILLA
++#elif defined SYSTEM_NSS
+         OUString rootModule(RTL_CONSTASCII_USTRINGPARAM( "libnssckbi" SAL_DLLEXTENSION));
+ #else
+         OUString rootModule(RTL_CONSTASCII_USTRINGPARAM( "${OOO_BASE_DIR}/program/libnssckbi" SAL_DLLEXTENSION));
+@@ -352,7 +352,7 @@ bool nsscrypto_initialize( const css::un
+             xmlsec_trace("Adding new root certificate module failed.");
+             return_value = false;
+         }
+-#if SYSTEM_MOZILLA
++#if SYSTEM_NSS
+     }
+ #endif
+ #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601291932.u0TJWDH5016517>