From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 27 06:40:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org 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 27E6B846 for ; Mon, 27 Jan 2014 06:40:01 +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 02BD415FB for ; Mon, 27 Jan 2014 06:40:01 +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 s0R6e0R6043791 for ; Mon, 27 Jan 2014 06: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 s0R6e0Uq043790; Mon, 27 Jan 2014 06:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 27 Jan 2014 06:40:00 GMT Resent-Message-Id: <201401270640.s0R6e0Uq043790@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, David Lundgren 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 001B56A5 for ; Mon, 27 Jan 2014 06:30:29 +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 E0A3515B3 for ; Mon, 27 Jan 2014 06:30:29 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0R6UTYW040377 for ; Mon, 27 Jan 2014 06:30:29 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0R6UTU9040362; Mon, 27 Jan 2014 06:30:29 GMT (envelope-from nobody) Message-Id: <201401270630.s0R6UTU9040362@oldred.freebsd.org> Date: Mon, 27 Jan 2014 06:30:29 GMT From: David Lundgren To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/186160: graphics/ImageMagick does not detect freetype2 properly 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: Mon, 27 Jan 2014 06:40:01 -0000 >Number: 186160 >Category: ports >Synopsis: graphics/ImageMagick does not detect freetype2 properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jan 27 06:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: David Lundgren >Release: 9.1-RELEASE-p7 amd64 >Organization: >Environment: FreeBSD webdev101 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: While diagnosing a problem with a client I found that ImageMagick did not have the freetype delegate. After watching the configure output and referencing the freetype2 port's commit for December 12 2013 that the headers were reshuffled I found that the headers were wrong. === ------------------------------------------------------------- checking for FreeType 2.0 ... checking for freetype-config... /usr/local/bin/freetype-config checking for FT_Init_FreeType in -lfreetype... yes checking ft2build.h usability... yes checking ft2build.h presence... yes checking for ft2build.h... yes checking for freetype/freetype.h... no checking if FreeType package is complete... no -- some components failed test === >How-To-Repeat: use WITHOUT_X11=yes in make.conf (this could be skipped, but I am building on a headless system) Build graphics/ImageMagick port with default options Once done run "identify -list configure" Note that the DELEGATES line does not contain freetype >Fix: I've attached a patch to change the following files to find freetype2/freetype.h: coders/ttf.c magick/annotate.c configure I'm not sure if this is the correct way to fix this, or if I did the patch correctly. I'm fairly certain I followed the chapter 10.2 in the Handbook properly. If there are any problems or question please let me know. Patch attached with submission follows: diff -ruN ImageMagick.orig/files/patch-coders::ttf.c ImageMagick/files/patch-coders::ttf.c --- ImageMagick.orig/files/patch-coders::ttf.c 1969-12-31 18:00:00.000000000 -0600 +++ ImageMagick/files/patch-coders::ttf.c 2014-01-26 23:51:02.000000000 -0600 @@ -0,0 +1,10 @@ +--- coders/ttf.c.orig 2012-08-30 06:41:56.000000000 -0500 ++++ coders/ttf.c 2014-01-26 23:46:48.000000000 -0600 +@@ -64,7 +64,7 @@ + #if defined(FT_FREETYPE_H) + # include FT_FREETYPE_H + #else +-# include ++# include + #endif + #endif diff -ruN ImageMagick.orig/files/patch-configure ImageMagick/files/patch-configure --- ImageMagick.orig/files/patch-configure 2014-01-26 23:54:26.000000000 -0600 +++ ImageMagick/files/patch-configure 2014-01-26 23:57:24.000000000 -0600 @@ -1,6 +1,15 @@ ---- configure.orig 2012-05-16 09:58:45.571776589 +0200 -+++ configure 2012-05-16 09:58:54.042776583 +0200 -@@ -32626,7 +32626,7 @@ +--- configure.orig 2014-01-26 23:54:54.000000000 -0600 ++++ configure 2014-01-26 23:56:44.000000000 -0600 +@@ -28616,7 +28616,7 @@ + fi + + +- ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H ++ ac_fn_c_check_header_compile "$LINENO" "freetype2/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H + " + if test "x$ac_cv_header_freetype_freetype_h" = xyes; then : + have_freetype_h='yes' +@@ -31756,7 +31756,7 @@ # # Path to ImageMagick documentation files diff -ruN ImageMagick.orig/files/patch-magick::annotate.c ImageMagick/files/patch-magick::annotate.c --- ImageMagick.orig/files/patch-magick::annotate.c 1969-12-31 18:00:00.000000000 -0600 +++ ImageMagick/files/patch-magick::annotate.c 2014-01-26 23:51:38.000000000 -0600 @@ -0,0 +1,11 @@ +--- magick/annotate.c.orig 2012-08-26 11:40:55.000000000 -0500 ++++ magick/annotate.c 2014-01-26 23:47:07.000000000 -0600 +@@ -85,7 +85,7 @@ + #if defined(FT_FREETYPE_H) + # include FT_FREETYPE_H + #else +-# include ++# include + #endif + #if defined(FT_GLYPH_H) + # include FT_GLYPH_H >Release-Note: >Audit-Trail: >Unformatted: