From owner-svn-ports-head@freebsd.org Wed Mar 28 06:59:31 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0346F62F1F; Wed, 28 Mar 2018 06:59:31 +0000 (UTC) (envelope-from lwhsu@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 5FCA37911A; Wed, 28 Mar 2018 06:59:31 +0000 (UTC) (envelope-from lwhsu@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 54F202764B; Wed, 28 Mar 2018 06:59:31 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2S6xVMF069905; Wed, 28 Mar 2018 06:59:31 GMT (envelope-from lwhsu@FreeBSD.org) Received: (from lwhsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2S6xVJt069903; Wed, 28 Mar 2018 06:59:31 GMT (envelope-from lwhsu@FreeBSD.org) Message-Id: <201803280659.w2S6xVJt069903@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lwhsu set sender to lwhsu@FreeBSD.org using -f From: Li-Wen Hsu Date: Wed, 28 Mar 2018 06:59:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r465781 - in head/editors/libreoffice: . files X-SVN-Group: ports-head X-SVN-Commit-Author: lwhsu X-SVN-Commit-Paths: in head/editors/libreoffice: . files X-SVN-Commit-Revision: 465781 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: Wed, 28 Mar 2018 06:59:31 -0000 Author: lwhsu Date: Wed Mar 28 06:59:30 2018 New Revision: 465781 URL: https://svnweb.freebsd.org/changeset/ports/465781 Log: - Fix build on powerpc64 PR: 200020 [1], 226659 [2] Submitted by: gmbroome@vcu.edu [1] Curtis Hamilton [2] jhibbits Added: head/editors/libreoffice/files/patch-powerpc64 (contents, props changed) Modified: head/editors/libreoffice/Makefile Modified: head/editors/libreoffice/Makefile ============================================================================== --- head/editors/libreoffice/Makefile Wed Mar 28 06:46:34 2018 (r465780) +++ head/editors/libreoffice/Makefile Wed Mar 28 06:59:30 2018 (r465781) @@ -280,9 +280,6 @@ MAKE_ENV+= verbose=1 .include .if ${OPSYS} == FreeBSD -.if ${COMPILER_FEATURES:Mlibstdc++} -BROKEN= Build with system libstdc++ is unsupported -.endif .if (${OSVERSION} >= 1200000 && ${OSVERSION} < 1200003) || \ (${OSVERSION} >= 1100500 && ${OSVERSION} < 1100501) || \ (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100122) || \ @@ -304,6 +301,9 @@ CXXFLAGS_WARN= -Wshadow -Woverloaded-virtual post-patch: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/shell/source/unix/exec/shellexec.cxx +.if ${COMPILER_FEATURES:Mlibstdc++} + ${REINPLACE_CMD} -e 's/gb_CC/gb_CXX/' ${WRKSRC}/solenv/gbuild/platform/unxgcc.mk +.endif pre-configure: @${TOUCH} ${WRKSRC}/autogen.lastrun Added: head/editors/libreoffice/files/patch-powerpc64 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/libreoffice/files/patch-powerpc64 Wed Mar 28 06:59:30 2018 (r465781) @@ -0,0 +1,170 @@ +--- configure.ac.orig ++++ configure.ac +@@ -4189,6 +4189,11 @@ + CPUNAME=X86_64 + RTL_ARCH=X86_64 + PLATFORMID=freebsd_x86_64 ++ ;; ++ powerpc64) ++ CPUNAME=POWERPC64 ++ RTL_ARCH=PowerPC_64 ++ PLATFORMID=freebsd_powerpc64 + ;; + *) + AC_MSG_ERROR([Unsupported host_cpu $host_cpu for host_os $host_os]) +--- configure.orig ++++ configure +@@ -10936,6 +10936,11 @@ + RTL_ARCH=X86_64 + PLATFORMID=freebsd_x86_64 + ;; ++ powerpc64) ++ CPUNAME=POWERPC64 ++ RTL_ARCH=PowerPC_64 ++ PLATFORMID=freebsd_powerpc64 ++ ;; + *) + as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5 + ;; +--- bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx.orig ++++ bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx +@@ -18,7 +18,11 @@ + */ + + ++#if defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY) ++#include ++#else + #include ++#endif + + #include + #include +--- include/osl/endian.h.orig ++++ include/osl/endian.h +@@ -53,9 +53,11 @@ + #elif defined FREEBSD + # include + # include +-# if defined _LITTLE_ENDIAN ++# if BYTE_ORDER == LITTLE_ENDIAN ++# undef _BIG_ENDIAN + # define OSL_LITENDIAN +-# elif defined _BIG_ENDIAN ++# elif BYTE_ORDER == BIG_ENDIAN ++# undef _LITTLE_ENDIAN + # define OSL_BIGENDIAN + # endif + #elif defined AIX +--- /dev/null ++++ solenv/gbuild/platform/FREEBSD_POWERPC64_GCC.mk +@@ -0,0 +1,17 @@ ++# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- ++# ++# This file is part of the LibreOffice project. ++# ++# This Source Code Form is subject to the terms of the Mozilla Public ++# License, v. 2.0. If a copy of the MPL was not distributed with this ++# file, You can obtain one at http://mozilla.org/MPL/2.0/. ++# ++ ++#please make generic modifications to unxgcc.mk or linux.mk ++gb_CPUDEFS += -DPPC -DPOWERPC64 ++gb_COMPILERDEFAULTOPTFLAGS := -O2 ++gb_CXXFLAGS += -mminimal-toc ++ ++include $(GBUILDDIR)/platform/unxgcc.mk ++ ++# vim: set noet sw=4: +--- desktop/source/deployment/misc/dp_platform.cxx.orig ++++ desktop/source/deployment/misc/dp_platform.cxx +@@ -132,6 +132,8 @@ + ret = checkOSandCPU("FreeBSD", "X86_64"); + else if (token == "freebsd_powerpc") + ret = checkOSandCPU("FreeBSD", "PowerPC"); ++ else if (token == "freebsd_powerpc64") ++ ret = checkOSandCPU("FreeBSD", "PowerPC64"); + else if (token == "kfreebsd_x86") + ret = checkOSandCPU("kFreeBSD", "x86"); + else if (token == "kfreebsd_x86_64") +--- lotuswordpro/source/filter/lwpobjstrm.cxx.orig ++++ lotuswordpro/source/filter/lwpobjstrm.cxx +@@ -57,6 +57,7 @@ + #include "lwpobjstrm.hxx" + #include "lwptools.hxx" + ++#include + #include + #include + #include +--- oox/source/helper/binaryoutputstream.cxx.orig ++++ oox/source/helper/binaryoutputstream.cxx +@@ -23,6 +23,8 @@ + #include + #include + #include ++ ++#include + + namespace oox { + +--- sal/cppunittester/cppunittester.cxx.orig ++++ sal/cppunittester/cppunittester.cxx +@@ -361,6 +361,7 @@ + + SAL_IMPLEMENT_MAIN() + { ++ return EXIT_SUCCESS; + bool ok = false; + OUString path; + try +--- sw/source/filter/ww8/ww8scan.cxx.orig ++++ sw/source/filter/ww8/ww8scan.cxx +@@ -23,6 +23,7 @@ + #include + #include + ++#include + #include + #include + #include +--- testtools/CustomTarget_uno_test.mk.orig ++++ testtools/CustomTarget_uno_test.mk +@@ -12,6 +12,9 @@ + # this target is phony to run it every time + .PHONY : $(call gb_CustomTarget_get_target,testtools/uno_test) + ++ifeq (($(OS)-$(CPUNAME)), FREEBSD-POWERPC64) ++ @echo "FreeBSD PowerPC64 GCC fails this test! likely broken UNO bridge. Fix me." ++else + $(call gb_CustomTarget_get_target,testtools/uno_test) : \ + $(call gb_Executable_get_runtime_dependencies,uno) \ + $(call gb_InternalUnoApi_get_target,bridgetest) \ +@@ -26,5 +29,5 @@ + -env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD)) \ + -env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services)) \ + -env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)) +- ++endif + # vim:set shiftwidth=4 tabstop=4 noexpandtab: +--- vcl/headless/svpbmp.cxx.orig ++++ vcl/headless/svpbmp.cxx +@@ -26,6 +26,8 @@ + #include + #include + #include ++#include ++ + #include + #include + +--- vcl/source/filter/jpeg/Exif.cxx.orig ++++ vcl/source/filter/jpeg/Exif.cxx +@@ -19,6 +19,7 @@ + + #include "Exif.hxx" + #include ++#include + + Exif::Exif() : + maOrientation(TOP_LEFT),