From owner-freebsd-gnome@freebsd.org Tue Aug 4 17:35:44 2015 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 0532E9B3E90 for ; Tue, 4 Aug 2015 17:35:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E36026B4 for ; Tue, 4 Aug 2015 17:35:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E03FD9B3E8F; Tue, 4 Aug 2015 17:35:43 +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 DFD709B3E8E for ; Tue, 4 Aug 2015 17:35:43 +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 D0B8A6B3 for ; Tue, 4 Aug 2015 17:35:43 +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 t74HZhSF068821 for ; Tue, 4 Aug 2015 17:35:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: maintainer-feedback requested: [Bug 202083] print/freetype2: ftconfig.h TYPEOF shadows other TYPEOFs Date: Tue, 04 Aug 2015 17:35:43 +0000 X-Bugzilla-Type: request Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 17:35:44 -0000 Rainer Hurling has reassigned Bugzilla Automation 's request for maintainer-feedback to gnome@FreeBSD.org: Bug 202083: print/freetype2: ftconfig.h TYPEOF shadows other TYPEOFs https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202083 --- Description --- Created attachment 159544 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=159544&action=edit patch to change TYPEOF into FT_TYPEOF I had some trouble trying to build the package 'Cairo-1.5.8.tar.gz' [1] for math/R. It turns out, that there is an underlying problem with print/freetype2 (thanks to Simon Urbanek from the R Project for his help on this). In [2] Tim Smith explained, that "ftconfig.h exports a TYPEOF macro that can conflict with and shadow macros with the same name in client applications. This breaks building the current version of the R programming language interpreter against the current version of freetype when cairo support is enabled (though R only uses freetype if pango support is disabled). It would be nice if the macro was called FT_TYPEOF or something similar." This work is done on the GitHub master of freetype2, but not released until now [3]. I filed a patch against freetype2 version 2.6 in the ports tree, which only changes TYPEOF() into FT_TYPEOF(). No other commits of the freetype2 master on GitHub are included. So this patched port should have no functional changes, except the TYPEOF() problem. [1] http://cran.at.r-project.org/web/packages/Cairo/index.html [2] https://savannah.nongnu.org/bugs/index.php?45376 [3] http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=5931268eecae da3e05580bdc8885348fecc43fa8