From owner-svn-ports-head@freebsd.org Thu Jan 18 16:51:58 2018 Return-Path: Delivered-To: svn-ports-head@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 0B137EB694F; Thu, 18 Jan 2018 16:51:58 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D70D17692F; Thu, 18 Jan 2018 16:51:57 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EF31921308; Thu, 18 Jan 2018 16:51:56 +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 w0IGpuFZ090535; Thu, 18 Jan 2018 16:51:56 GMT (envelope-from truckman@FreeBSD.org) Received: (from truckman@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0IGpu3E090532; Thu, 18 Jan 2018 16:51:56 GMT (envelope-from truckman@FreeBSD.org) Message-Id: <201801181651.w0IGpu3E090532@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: truckman set sender to truckman@FreeBSD.org using -f From: Don Lewis Date: Thu, 18 Jan 2018 16:51:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459363 - in head/editors/openoffice-devel: . files X-SVN-Group: ports-head X-SVN-Commit-Author: truckman X-SVN-Commit-Paths: in head/editors/openoffice-devel: . files X-SVN-Commit-Revision: 459363 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 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, 18 Jan 2018 16:51:58 -0000 Author: truckman Date: Thu Jan 18 16:51:56 2018 New Revision: 459363 URL: https://svnweb.freebsd.org/changeset/ports/459363 Log: Fix editors/openoffice-4 build with clang 6.0.0 by compiling with -std=gnu++98 since that was the default for the compilers historically used for the build. It turns out that -std=c++98 does not work because the vigra headers depend on LLONG_MAX and friends, which are not defined without the GNU extensions. Compensate for a recent poudriere change by overriding $HOME and setting it to /tmp if $HOME is not writeable. Some of the test code run during the build wants to use mkstemp() to create temporary directories under $HOME, which does not work for the "nobody" user which points $HOME at /nonexistent. No PORTREVISION bump since this is a build fix and there is no change to the package. PR: 225129 Reported by: jbeich Added: head/editors/openoffice-devel/files/patch-solenv_gbuild_platform_freebsd.mk (contents, props changed) head/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk (contents, props changed) Modified: head/editors/openoffice-devel/Makefile Modified: head/editors/openoffice-devel/Makefile ============================================================================== --- head/editors/openoffice-devel/Makefile Thu Jan 18 16:27:12 2018 (r459362) +++ head/editors/openoffice-devel/Makefile Thu Jan 18 16:51:56 2018 (r459363) @@ -450,6 +450,9 @@ do-build: fi ; \ cd ${WRKSRC}/instsetoo_native ; \ . ../${FREEBSD_ENV_SET} ; \ + if [ -n "${HOME}" -a ! -w "${HOME}" ]; then \ + export HOME=/tmp ; \ + fi ; \ build.pl --all -P$${numproc} -- -P$${dmproc} do-install: Added: head/editors/openoffice-devel/files/patch-solenv_gbuild_platform_freebsd.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-devel/files/patch-solenv_gbuild_platform_freebsd.mk Thu Jan 18 16:51:56 2018 (r459363) @@ -0,0 +1,10 @@ +--- solenv/gbuild/platform/freebsd.mk.orig 2017-11-27 13:50:25 UTC ++++ solenv/gbuild/platform/freebsd.mk +@@ -94,6 +94,7 @@ gb_CXXFLAGS := \ + -fno-use-cxa-atexit \ + -fvisibility-inlines-hidden \ + -fvisibility=hidden \ ++ -std=gnu++98 \ + -pipe + ifeq ($(COM),CLANG) + gb_CXXFLAGS += -DHAVE_STL_INCLUDE_PATH Added: head/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/openoffice-devel/files/patch-solenv_inc_unxfbsd.mk Thu Jan 18 16:51:56 2018 (r459363) @@ -0,0 +1,11 @@ +--- solenv/inc/unxfbsd.mk.orig 2017-11-27 13:50:28 UTC ++++ solenv/inc/unxfbsd.mk +@@ -96,7 +96,7 @@ CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs + CFLAGS_NO_EXCEPTIONS=-fno-exceptions + + # -fpermissive should be removed as soon as possible +-CFLAGSCXX= -pipe $(ARCH_FLAGS) ++CFLAGSCXX= -pipe $(ARCH_FLAGS) -std=gnu++98 + .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" + CFLAGSCXX += -fvisibility-inlines-hidden + .ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"