Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2011 08:44:46 +0900 (JST)
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        turutani@scphys.kyoto-u.ac.jp
Subject:   ports/160224: building x11-toolkits/gtk30 fails
Message-ID:  <201108262344.p7QNikHg085804@h116.65.226.10.32118.vlan.kuins.net>
Resent-Message-ID: <201108262350.p7QNo4o5029066@freefall.freebsd.org>

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

>Number:         160224
>Category:       ports
>Synopsis:       building x11-toolkits/gtk30 fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 26 23:50:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 8.2-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD h116.65.226.10.32118.vlan.kuins.net 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #26: Sun Jan 23 18:42:22 JST 2011 turutani@h116.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER13 amd64


	
>Description:
	building x11-toolkits/gtk30 fails.
	x11-toolkits/gtk30 is required by deskutils/notification-daemon.
	
>How-To-Repeat:
	% cd /usr/ports/x11-toolkits/gtk30
	% make
	...
	gmake[4]: Entering directory `/usr/ports/x11-toolkits/gtk30/work/gtk+-3.0.12/gtk'
	  CC     gtktestutils.lo
	In file included from gtktestutils.c:680:
	gtktypefuncs.c:63:26: warning: extra tokens at end of #ifdef directive
	gtktypefuncs.c:298:1: error: unterminated #ifdef
	gtktypefuncs.c:239:1: error: unterminated #ifdef
	gtktypefuncs.c:77:1: error: unterminated #ifdef
	gtktypefuncs.c:76:1: error: unterminated #ifdef
	gtktypefuncs.c:75:1: error: unterminated #ifdef
	gtktypefuncs.c:74:1: error: unterminated #ifdef
	gtktypefuncs.c:73:1: error: unterminated #ifdef
	gtktypefuncs.c:72:1: error: unterminated #ifdef
	gtktypefuncs.c:71:1: error: unterminated #ifdef
	gtktypefuncs.c:70:1: error: unterminated #ifdef
	gtktypefuncs.c:69:1: error: unterminated #ifdef
	gtktypefuncs.c:68:1: error: unterminated #ifdef
	gtktypefuncs.c:67:1: error: unterminated #ifdef
	gtktypefuncs.c:66:1: error: unterminated #ifdef
	gtktypefuncs.c:65:1: error: unterminated #ifdef
	gtktypefuncs.c:64:1: error: unterminated #ifdef
	gtktypefuncs.c:63:1: error: unterminated #ifdef
	gmake[4]: *** [gtktestutils.lo] Error 1
	gmake[4]: Leaving directory `/usr/ports/x11-toolkits/gtk30/work/gtk+-3.0.12/gtk'
	gmake[3]: *** [all-recursive] Error 1
	gmake[3]: Leaving directory `/usr/ports/x11-toolkits/gtk30/work/gtk+-3.0.12/gtk'
	gmake[2]: *** [all] Error 2
	gmake[2]: Leaving directory `/usr/ports/x11-toolkits/gtk30/work/gtk+-3.0.12/gtk'
	gmake[1]: *** [all-recursive] Error 1
	gmake[1]: Leaving directory `/usr/ports/x11-toolkits/gtk30/work/gtk+-3.0.12'
	gmake: *** [all] Error 2
	*** Error code 1

	Stop in /usr/ports/x11-toolkits/gtk30.
	*** Error code 1

	
>Fix:
	sed failed to replace a single line to multiple lines.
	here is a patch:

--- Makefile.orig	2011-08-19 08:52:37.000000000 +0900
+++ Makefile	2011-08-27 08:10:19.000000000 +0900
@@ -80,6 +80,8 @@
 	@${REINPLACE_CMD} -e 's|@LN_S@|${LN} -sf|' ${WRKSRC}/gtk/Makefile.in
 	@${REINPLACE_CMD} -e 's|file,cups|file,cups,lpr|' \
 		${WRKSRC}/gtk/Makefile.in
+	@${REINPLACE_CMD} -f ${FILESDIR}/replace-gtk_Makefile.in \
+		${WRKSRC}/gtk/Makefile.in
 
 pre-configure:
 .if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc)
--- /dev/null	2011-08-27 08:33:00.000000000 +0900
+++ files/replace-gtk_Makefile.in	2011-08-27 08:19:21.000000000 +0900
@@ -0,0 +1,3 @@
+s/#ifdef GDK_WINDOWING_X11\\n&\\n#endif\//#ifdef GDK_WINDOWING_X11\\\\\\\
+	\&\\\\\\\
+	#endif\/; s\/\\\\\/\/g/
	


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



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