From owner-freebsd-gnome@freebsd.org Fri Oct 28 15:40:17 2016 Return-Path: Delivered-To: freebsd-gnome@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 AF1A5C256CD for ; Fri, 28 Oct 2016 15:40:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 988D893F for ; Fri, 28 Oct 2016 15:40:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 94DE2C256CC; Fri, 28 Oct 2016 15:40:17 +0000 (UTC) Delivered-To: gnome@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 948C9C256CB for ; Fri, 28 Oct 2016 15:40:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 7B6E593D for ; Fri, 28 Oct 2016 15:40:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9SFeGCw098870 for ; Fri, 28 Oct 2016 15:40:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 211201] print/freetype2: update to 2.7, add V40 code Date: Fri, 28 Oct 2016 15:40:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lightside@gmx.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: antoine@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? exp-run? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 15:40:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211201 --- Comment #50 from lightside --- (In reply to comment #47) > 1 new failure on 11.0 amd64: graphics/inventor > http://package22.nyi.freebsd.org/data/110amd64-default-PR211201/2016-10-2= 6_08h08m09s/logs/errors/inventor-2.1.5.p10_12.log I investigated mentioned issue. The 2.6.3 version used commented "-export-symbols $(EXPORTS_LIST)" line in builds/unix/unix-cc.in file: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/builds/unix/un= ix-cc.in?h=3DVER-2-6-3#n112 The 2.7 version have it uncommented: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/builds/unix/un= ix-cc.in?h=3DVER-2-7#n112 The --export-symbols option limits the list of exported symbols, generated = by apinames program: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/tools/apin= ames.c?h=3DVER-2-7 https://www.gnu.org/software/gnulib/manual/html_node/Exported-Symbols-of-Sh= ared-Libraries.html For freetype2 v2.6.3: -8<-- % readelf -Ds libfreetype.so.6.12.3 | grep FT_Done_GlyphSlot || echo not fo= und 533 247: 0000000000013b70 377 FUNC GLOBAL DEFAULT 11 FT_Done_GlyphS= lot -->8- For freetype2 v2.7 (before patch): -8<-- % readelf -Ds libfreetype.so.6.12.6 | grep FT_Done_GlyphSlot || echo not fo= und not found -->8- I created two variants of patches, which fixes this: 1) First variant in attachment #176248, which comments "-export-symbols" op= tion in builds/unix/unix-cc.in file: -8<-- @${REINPLACE_CMD} -e '/-export-symbols/s|^|#|' \ ${WRKSRC}/builds/unix/unix-cc.in -->8- -8<-- % readelf -Ds libfreetype.so.6.12.6 | grep FT_Done_GlyphSlot || echo not fo= und 555 247: 0000000000014490 377 FUNC GLOBAL DEFAULT 11 FT_Done_GlyphS= lot -->8- 2) Second variant in attachment #176249, which adds FT_Done_GlyphSlot as exported function to include/freetype/ftglyph.h file: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freety= pe/ftglyph.h?h=3DVER-2-7#n47 http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freety= pe/internal/ftobjs.h?h=3DVER-2-7#n601 -8<-- @${REINPLACE_CMD} -e \ '/FT_BEGIN_HEADER/s|$$|\${.newline}FT_EXPORT(void) FT_Done_GlyphSlot(FT_GlyphSlot slot);|' \ ${WRKSRC}/include/freetype/ftglyph.h -->8- -8<-- % readelf -Ds libfreetype.so.6.12.6 | grep FT_Done_GlyphSlot || echo not fo= und 161 157: 000000000000ebb0 377 FUNC GLOBAL DEFAULT 11 FT_Done_GlyphS= lot -->8- The second variant is more correct, in my opinion, while first variant is m= ore simple, but may create issues with other exported symbols. --=20 You are receiving this mail because: You are on the CC list for the bug.=