From nobody@FreeBSD.org  Fri May 17 07:48:25 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id D8C884F1
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 May 2013 07:48:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id C9D5FB1D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 May 2013 07:48:25 +0000 (UTC)
Received: from oldred.FreeBSD.org ([127.0.1.6])
	by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4H7mPED013050
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 May 2013 07:48:25 GMT
	(envelope-from nobody@oldred.FreeBSD.org)
Received: (from nobody@localhost)
	by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4H7mP2D013034;
	Fri, 17 May 2013 07:48:25 GMT
	(envelope-from nobody)
Message-Id: <201305170748.r4H7mP2D013034@oldred.FreeBSD.org>
Date: Fri, 17 May 2013 07:48:25 GMT
From: Alexey Markov <redrat@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/freetype2: freetype-config broken because of [unnecessary] patch
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178703
>Category:       ports
>Synopsis:       print/freetype2: freetype-config broken because of [unnecessary] patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 17 07:50:00 UTC 2013
>Closed-Date:    Fri May 17 10:20:28 UTC 2013
>Last-Modified:  Fri May 17 10:20:28 UTC 2013
>Originator:     Alexey Markov
>Release:        8.3-RELEASE-p7
>Organization:
JSC Complitex
>Environment:
FreeBSD port.jail 8.3-RELEASE-p7 FreeBSD 8.3-RELEASE-p7 #0: Thu Apr 4 14:19:45
MSK 2013 redrat@meson.complitex.ru:/arc/obj/arc/src/sys/MESON amd64
>Description:
There is a patch in the freetype2 port (files/patch-builds::unix::freetype-config.in) which makes freetype-config output wrong compilation and linking information:

1. (without patch):

port:1/bin# ./freetype-config --cflags
-I/usr/local/include/freetype2 -I/usr/local/include

2. (with patch):

port:2/bin# ./freetype-config --cflags
-I@includedir@/freetype2 -I@includedir@

It seems @includedir@ substring doesn't properly replaced.

Because of that port x11-fonts/fontconfig fails to build because can't find right directory to include file:

In file included from ../fontconfig/fcfreetype.h:27,
                 from fcftint.h:26,
                 from fcfreetype.c:48:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory

>How-To-Repeat:
build print/freetype2 and then try to build x11-fonts/fontconfig
>Fix:
Replace @includedir@ to $includedir in the patch.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri May 17 07:50:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178703 
State-Changed-From-To: open->closed 
State-Changed-By: kwm 
State-Changed-When: Fri May 17 10:19:26 UTC 2013 
State-Changed-Why:  
Fixed the problem by changing the patch, Thanks for reporting! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178703 
>Unformatted:
