From owner-svn-ports-all@freebsd.org Sun Mar 20 21:42:09 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F3BAAD7EEB; Sun, 20 Mar 2016 21:42:09 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7AA5ABB; Sun, 20 Mar 2016 21:42:09 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2KLg8bt087952; Sun, 20 Mar 2016 21:42:08 GMT (envelope-from truckman@FreeBSD.org) Received: (from truckman@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2KLg81f087950; Sun, 20 Mar 2016 21:42:08 GMT (envelope-from truckman@FreeBSD.org) Message-Id: <201603202142.u2KLg81f087950@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: truckman set sender to truckman@FreeBSD.org using -f From: Don Lewis Date: Sun, 20 Mar 2016 21:42:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r411522 - in head/editors/openoffice-4: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2016 21:42:09 -0000 Author: truckman Date: Sun Mar 20 21:42:08 2016 New Revision: 411522 URL: https://svnweb.freebsd.org/changeset/ports/411522 Log: Delay running gnome-post-install until the plist has been generated by post-install so that the icons are detected and gtk-update-icon-cache gets run when the package is installed. [1] Import upstream trunk commit r1728872 to add the CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT up accept fix to the pipe code. [2] PR: 208026 [1] PR: 207301 [2] Added: head/editors/openoffice-4/files/patch-r1728872 (contents, props changed) Modified: head/editors/openoffice-4/Makefile Modified: head/editors/openoffice-4/Makefile ============================================================================== --- head/editors/openoffice-4/Makefile Sun Mar 20 21:30:27 2016 (r411521) +++ head/editors/openoffice-4/Makefile Sun Mar 20 21:42:08 2016 (r411522) @@ -3,7 +3,7 @@ PORTNAME= apache-openoffice PORTVERSION= ${AOOVERSION} -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= editors java MASTER_SITES= APACHE/openoffice/${PORTVERSION}/source \ http://tools.openoffice.org/unowinreg_prebuild/680/:unoreg \ @@ -165,6 +165,9 @@ SDK_CONFIGURE_ENABLE= odk WIKI_PUBLISHER_CONFIGURE_ENABLE= wiki-publisher WIKI_PUBLISHER_VARS= BUNDLED_EXTENSIONS+=swext/wiki-publisher.oxt +# Don't run gnome-post-install until after post-install generates the plist +TARGET_ORDER_OVERRIDE= 710:gnome-post-install + .include .include <${FILESDIR}/Makefile.localized> Added: head/editors/openoffice-4/files/patch-r1728872 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-4/files/patch-r1728872 Sun Mar 20 21:42:08 2016 (r411522) @@ -0,0 +1,98 @@ +--- sal/osl/unx/pipe.c.orig 2014-02-25 08:31:45 UTC ++++ sal/osl/unx/pipe.c +@@ -115,7 +115,7 @@ oslPipe __osl_createPipeImpl() + pPipeImpl = (oslPipe)calloc(1, sizeof(struct oslPipeImpl)); + pPipeImpl->m_nRefCount =1; + pPipeImpl->m_bClosed = sal_False; +-#if defined(LINUX) ++#if CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT + pPipeImpl->m_bIsInShutdown = sal_False; + pPipeImpl->m_bIsAccepting = sal_False; + #endif +@@ -321,7 +321,7 @@ void SAL_CALL osl_releasePipe( oslPipe p + void SAL_CALL osl_closePipe( oslPipe pPipe ) + { + int nRet; +-#if defined(LINUX) ++#if CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT + size_t len; + struct sockaddr_un addr; + int fd; +@@ -341,10 +341,10 @@ void SAL_CALL osl_closePipe( oslPipe pPi + ConnFD = pPipe->m_Socket; + + /* +- Thread does not return from accept on linux, so ++ Thread does not return from accept on some operating systems, so + connect to the accepting pipe + */ +-#if defined(LINUX) ++#if CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT + if ( pPipe->m_bIsAccepting ) + { + pPipe->m_bIsInShutdown = sal_True; +@@ -356,7 +356,11 @@ void SAL_CALL osl_closePipe( oslPipe pPi + + addr.sun_family = AF_UNIX; + strncpy(addr.sun_path, pPipe->m_Name, sizeof(addr.sun_path)); +- len = sizeof(addr); ++#if defined(FREEBSD) ++ len = SUN_LEN(&addr); ++#else ++ len = sizeof(addr); ++#endif + + nRet = connect( fd, (struct sockaddr *)&addr, len); + #if OSL_DEBUG_LEVEL > 1 +@@ -367,7 +371,7 @@ void SAL_CALL osl_closePipe( oslPipe pPi + #endif /* OSL_DEBUG_LEVEL */ + close(fd); + } +-#endif /* LINUX */ ++#endif /* CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT */ + + + nRet = shutdown(ConnFD, 2); +@@ -408,13 +412,13 @@ oslPipe SAL_CALL osl_acceptPipe(oslPipe + + OSL_ASSERT(strlen(pPipe->m_Name) > 0); + +-#if defined(LINUX) ++#if CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT + pPipe->m_bIsAccepting = sal_True; + #endif + + s = accept(pPipe->m_Socket, NULL, NULL); + +-#if defined(LINUX) ++#if CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT + pPipe->m_bIsAccepting = sal_False; + #endif + +@@ -424,13 +428,13 @@ oslPipe SAL_CALL osl_acceptPipe(oslPipe + return NULL; + } + +-#if defined(LINUX) ++#if CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT + if ( pPipe->m_bIsInShutdown ) + { + close(s); + return NULL; + } +-#endif /* LINUX */ ++#endif /* CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT */ + else + { + /* alloc memory */ +--- sal/osl/unx/sockimpl.h.orig 2015-10-21 07:03:17 UTC ++++ sal/osl/unx/sockimpl.h +@@ -63,7 +63,7 @@ struct oslPipeImpl { + sal_Char m_Name[PATH_MAX + 1]; + oslInterlockedCount m_nRefCount; + sal_Bool m_bClosed; +-#if defined(LINUX) ++#if CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT + sal_Bool m_bIsAccepting; + sal_Bool m_bIsInShutdown; + #endif