Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2012 09:20:28 GMT
From:      Makoto Kishimoto <ksmakoto@dd.iij4u.or.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/168004: more patch for gdk, to remove "-I${libdir}/gtk-2.0/include" in gdk-2.0.pc
Message-ID:  <201205170920.q4H9KSGT000807@red.freebsd.org>
Resent-Message-ID: <201205170930.q4H9U2Dj002885@freefall.freebsd.org>

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

>Number:         168004
>Category:       ports
>Synopsis:       more patch for gdk, to remove "-I${libdir}/gtk-2.0/include" in gdk-2.0.pc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 17 09:30:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Makoto Kishimoto
>Release:        8.3-STABLE
>Organization:
na
>Environment:
FreeBSD norikura.localdomain 8.3-STABLE FreeBSD 8.3-STABLE #0 r235428: Wed May 16 18:32:03 JST 2012     ksmakoto@norikura.localdomain:/export/obj/usr/src/sys/NORIKURA20120516  amd64
>Description:
By "patch-ak", FreeBSD ports of gtk+2 moves directory for .h files to
$(prefix)/include/gtk-2.0 , but gdk-2.0.pc (and gdk-x11-2.0.pc) specifies
-I${libdir}/gtk-2.0/include to CFLAGS .

Non existent directory of -I option of gcc, sometimes cause gcc crash
( see http://docs.freebsd.org/cgi/getmsg.cgi?fetch=120904+0+archive/2008/freebsd-current/20081026.freebsd-current ).

For example, ruby-gnome2 1.1.0 (newer version than ports') build failed.

Attached patch modify gdk-2.0.pc.in to fix this problem.
>How-To-Repeat:
na
>Fix:
Add attached patch to ports/x11-toolkits/gtk20/files .

Patch attached with submission follows:

--- gdk-2.0.pc.in.ORG	2012-05-17 13:07:34.000000000 +0900
+++ gdk-2.0.pc.in	2012-05-17 13:08:59.000000000 +0900
@@ -9,4 +9,4 @@
 Version: @VERSION@
 Requires: @GDK_PACKAGES@
 Libs: -L${libdir} -lgdk-${target}-@GTK_API_VERSION@ @GDK_EXTRA_LIBS@
-Cflags: -I${includedir}/gtk-2.0 -I${libdir}/gtk-2.0/include @GDK_EXTRA_CFLAGS@
+Cflags: -I${includedir}/gtk-2.0 @GDK_EXTRA_CFLAGS@


>Release-Note:
>Audit-Trail:
>Unformatted:



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