From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 19 17:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E428B8E8 for ; Sun, 19 Jan 2014 17:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BEF401E07 for ; Sun, 19 Jan 2014 17:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0JHe07K045477 for ; Sun, 19 Jan 2014 17:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0JHe0U5045476; Sun, 19 Jan 2014 17:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 19 Jan 2014 17:40:00 GMT Resent-Message-Id: <201401191740.s0JHe0U5045476@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Kabaev Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D775661 for ; Sun, 19 Jan 2014 17:30:33 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6989D1D82 for ; Sun, 19 Jan 2014 17:30:33 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0JHUXGt019284 for ; Sun, 19 Jan 2014 17:30:33 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0JHUXoA019251; Sun, 19 Jan 2014 17:30:33 GMT (envelope-from nobody) Message-Id: <201401191730.s0JHUXoA019251@oldred.freebsd.org> Date: Sun, 19 Jan 2014 17:30:33 GMT From: Alexander Kabaev To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/185886: Fix OpenOffice 4 port to build on FreeBSD-current post-gcc removal X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jan 2014 17:40:01 -0000 >Number: 185886 >Category: ports >Synopsis: Fix OpenOffice 4 port to build on FreeBSD-current post-gcc removal >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 19 17:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Alexander Kabaev >Release: 11.0-CURRENT #0 r260819+ >Organization: FreeBSD >Environment: FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r260819+1eb3872(master): Fri Jan 17 14:07:32 EST 2014 kan@:/usr/obj/usr/src/sys/KANBSD amd64 >Description: Attached please find a small patch that makes editors/openoffice-4 port build on systems with no 'gcc' binary in path, such as FreeBSD 11-current. There was one place in nss that did not respect CC/CXX env variables and thus failed to pick up gcc46/g++46 overrides used to build the port on such systems. Also included are changes to cope with recent freetype header re-arrangement to allow built-in mozilla and vcl components to compile. >How-To-Repeat: Build editors/openoffice-4 on current and observe it to NOT build. Must be familiar sight by now. >Fix: Attached patch makes it compile again. Patch attached with submission follows: Index: files/patch-moz-freetype =================================================================== --- files/patch-moz-freetype (revision 0) +++ files/patch-moz-freetype (working copy) @@ -0,0 +1,73 @@ +--- moz/makefile.mk.orig 2014-01-19 01:07:07.855312217 +0000 ++++ moz/makefile.mk 2014-01-19 01:52:13.738105035 +0000 +@@ -99,7 +99,8 @@ + patches/respect_disable_pango.patch \ + patches/arm_build_fix.patch \ + patches/link_fontconfig.patch \ +- patches/brokenmakefile.patch ++ patches/brokenmakefile.patch \ ++ patches/freetype-2.5.2.patch + + .IF "$(OS)"=="LINUX" + PATCH_FILES+=patches/nss_linux.patch +--- moz/patches/freetype-2.5.2.patch.orig 2014-01-19 02:08:44.972045426 +0000 ++++ moz/patches/freetype-2.5.2.patch 2014-01-19 01:50:19.634112115 +0000 +@@ -0,0 +1,58 @@ ++--- misc/build/mozilla/gfx/src/cairo/nsFontMetricsXft.cpp.orig 2014-01-19 01:36:54.695173876 +0000 +++++ misc/build/mozilla/gfx/src/cairo/nsFontMetricsXft.cpp 2014-01-19 01:38:33.919160907 +0000 ++@@ -67,8 +67,8 @@ ++ #include "nsFontConfigUtils.h" ++ ++ #include ++-#include ++-#include +++#include +++#include ++ ++ #define FORCE_PR_LOG ++ #include "prlog.h" ++--- misc/build/mozilla/gfx/src/gtk/nsFontMetricsPango.cpp.orig 2014-01-19 01:37:10.706181045 +0000 +++++ misc/build/mozilla/gfx/src/gtk/nsFontMetricsPango.cpp 2014-01-19 01:38:52.345183245 +0000 ++@@ -58,7 +58,7 @@ ++ #include ++ #include ++ #include ++-#include +++#include ++ ++ #include "mozilla-decoder.h" ++ ++--- misc/build/mozilla/gfx/src/gtk/nsFontMetricsXft.cpp.orig 2014-01-19 01:37:20.985169675 +0000 +++++ misc/build/mozilla/gfx/src/gtk/nsFontMetricsXft.cpp 2014-01-19 01:39:00.273161078 +0000 ++@@ -67,8 +67,8 @@ ++ #include "nsFontConfigUtils.h" ++ ++ #include ++-#include ++-#include +++#include +++#include ++ ++ #define FORCE_PR_LOG ++ #include "prlog.h" ++--- misc/build/mozilla/config/system-headers.orig 2014-01-19 01:48:32.986127183 +0000 +++++ misc/build/mozilla/config/system-headers 2014-01-19 01:49:12.081124339 +0000 ++@@ -193,12 +193,12 @@ ++ fpieee.h ++ frame/log.h ++ frame/req.h ++-freetype/freetype.h ++-freetype/ftcache.h ++-freetype/ftglyph.h ++-freetype/ftoutln.h ++-freetype/ttnameid.h ++-freetype/tttables.h +++freetype2/freetype.h +++freetype2/ftcache.h +++freetype2/ftglyph.h +++freetype2/ftoutln.h +++freetype2/ttnameid.h +++freetype2/tttables.h ++ fribidi/fribidi.h ++ FSp_fopen.h ++ fstream.h Property changes on: files/patch-moz-freetype ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: files/patch-nss =================================================================== --- files/patch-nss (revision 0) +++ files/patch-nss (working copy) @@ -0,0 +1,28 @@ +--- nss/makefile.mk.orig 2013-12-10 16:12:48.903023896 +0000 ++++ nss/makefile.mk 2013-12-10 16:16:12.910996825 +0000 +@@ -71,6 +71,7 @@ + USE_64:=1 + .EXPORT : USE_64 + .ENDIF # "$(CPU)"=="X" ++PATCH_FILES+=nss_freebsd.patch + .ENDIF # "$(OS)$(COM)"=="LINUXGCC" + + .IF "$(OS)"=="MACOSX" +--- nss/nss_freebsd.patch.orig 2013-12-10 16:15:49.120991795 +0000 ++++ nss/nss_freebsd.patch 2013-12-10 16:31:17.356953373 +0000 +@@ -0,0 +1,15 @@ ++--- misc/build/nss-3.12.6/mozilla/security/coreconf/FreeBSD.mk.orig 2009-08-22 07:33:09.000000000 +0200 +++++ misc/build/nss-3.12.6/mozilla/security/coreconf/FreeBSD.mk 2010-03-28 23:01:33.000000000 +0200 ++@@ -37,9 +37,9 @@ ++ ++ include $(CORE_DEPTH)/coreconf/UNIX.mk ++ ++-DEFAULT_COMPILER = gcc ++-CC = gcc ++-CCC = g++ +++DEFAULT_COMPILER = $(CC) +++CC ?= gcc +++CCC = $(CXX) ++ RANLIB = ranlib ++ ++ CPU_ARCH = $(OS_TEST) Property changes on: files/patch-nss ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: files/patch-vcl::source::glyphs::graphite_adaptors.cxx =================================================================== --- files/patch-vcl::source::glyphs::graphite_adaptors.cxx (revision 0) +++ files/patch-vcl::source::glyphs::graphite_adaptors.cxx (working copy) @@ -0,0 +1,11 @@ +--- vcl/source/glyphs/graphite_adaptors.cxx.orig 2014-01-19 00:20:15.734490860 +0000 ++++ vcl/source/glyphs/graphite_adaptors.cxx 2014-01-19 00:20:35.462483753 +0000 +@@ -45,7 +45,7 @@ + + #include + +-#include ++#include + + // Module + #include "gcach_ftyp.hxx" Property changes on: files/patch-vcl::source::glyphs::graphite_adaptors.cxx ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property >Release-Note: >Audit-Trail: >Unformatted: