Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 18:49:06 +0400 (MSK)
From:      Nikola Lecic <nikola.lecic@anthesphoria.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/189077: [Patch] x11-toolkits/p5-Tk compiles without Xft support despite XFT option defined
Message-ID:  <201404281449.s3SEn58G093441@anthesphoria.net>
Resent-Message-ID: <201404281610.s3SGA0Z7092942@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189077
>Category:       ports
>Synopsis:       [Patch] x11-toolkits/p5-Tk compiles without Xft support despite XFT option defined
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 16:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Nikola Lecic
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:

System: FreeBSD thorium 10.0-RELEASE FreeBSD 10.0-RELEASE #0: Tue Apr 15 19:52:30 MSK 2014 nikola@thorium:/usr/obj/usr/src/sys/THORIUM amd64

>Description:

Despite XFT option set by default, p5-Tk compiles without Xft support.
freetype.h is not found because of the wrong paths in myConfig.

>How-To-Repeat:

Compile p5-Tk with XFT option enabled, or install a package.

>Fix:

--- p5-Tk-804.031.patch begins here ---
diff -x .svn -Nur p5-Tk.bak/Makefile p5-Tk/Makefile
--- p5-Tk.bak/Makefile	2014-04-28 19:16:56.000000000 +0400
+++ p5-Tk/Makefile	2014-04-28 19:19:52.000000000 +0400
@@ -3,7 +3,7 @@
 
 PORTNAME=	Tk
 PORTVERSION=	804.031
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11-toolkits tk perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
diff -x .svn -Nur p5-Tk.bak/files/patch-myConfig p5-Tk/files/patch-myConfig
--- /dev/null	1970-01-01 03:00:00.000000000 +0300
+++ p5-Tk/files/patch-myConfig	2014-04-27 02:25:27.000000000 +0400
@@ -0,0 +1,14 @@
+--- myConfig.orig	2014-04-27 02:14:38.000000000 +0400
++++ myConfig	2014-04-27 02:25:05.000000000 +0400
+@@ -147,9 +147,9 @@
+ {
+  foreach (map { "$_/freetype2" } @_)
+   {
+-   if (-d $_ && -d "$_/freetype" && -r "$_/freetype/freetype.h")
++   if (-d $_ && -r "$_/freetype.h")
+     {
+-     print "Using -I$_ to find $_/freetype/freetype.h\n";
++     print "Using -I$_ to find $_/freetype.h\n";
+      return "-I$_";
+     }
+   }
--- p5-Tk-804.031.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404281449.s3SEn58G093441>