From nobody@FreeBSD.org  Wed Nov 24 20:15:14 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 39F271065674
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 20:15:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id B9D128FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 20:15:13 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oAOKFDwu056087
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 20:15:13 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oAOKFDUB056086;
	Wed, 24 Nov 2010 20:15:13 GMT
	(envelope-from nobody)
Message-Id: <201011242015.oAOKFDUB056086@red.freebsd.org>
Date: Wed, 24 Nov 2010 20:15:13 GMT
From: Andreas Tobler <andreast@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] make devel/glib20 build on powerpc64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152555
>Category:       ports
>Synopsis:       [patch] make devel/glib20 build on powerpc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 24 20:20:09 UTC 2010
>Closed-Date:    Wed Nov 24 21:06:43 UTC 2010
>Last-Modified:  Wed Nov 24 21:10:10 UTC 2010
>Originator:     Andreas Tobler
>Release:        -CURRENT
>Organization:
none
>Environment:
[bohrium:~] andreast% uname -ra
FreeBSD bohrium.andreas.nets 9.0-CURRENT FreeBSD 9.0-CURRENT #10 r215793M: Wed Nov 24 18:48:55 CET 2010     andreast@bohrium.andreas.nets:/usr/obj/export/devel/fbsd/src/sys/GENERIC64_G5  powerpc
>Description:
Due to a flaw in binutils 2.15, function names can conflict with
ELF assembler directives on PPC64 systems. As a result, it is not possible
to have functions named things like 'text' and 'data'.
In glib-compile-schemas.c we have such a name.
See also ports/147699.
>How-To-Repeat:

>Fix:
Attached patch fixes the build.

Patch attached with submission follows:

--- gio/glib-compile-schemas.c.orig	2010-11-24 21:32:15.000000000 +0100
+++ gio/glib-compile-schemas.c	2010-11-24 21:33:42.000000000 +0100
@@ -1458,7 +1458,7 @@
 }
 /* Text {{{2 */
 static void
-text (GMarkupParseContext  *context,
+XXXtext (GMarkupParseContext  *context,
       const gchar          *text,
       gsize                 text_len,
       gpointer              user_data,
@@ -1590,7 +1590,7 @@
 parse_gschema_files (gchar    **files,
                      gboolean   strict)
 {
-  GMarkupParser parser = { start_element, end_element, text };
+  GMarkupParser parser = { start_element, end_element, XXXtext };
   ParseState state = { 0, };
   const gchar *filename;
   GError *error = NULL;


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Wed Nov 24 20:33:34 UTC 2010 
Responsible-Changed-Why:  
Make this a ports bug - it looks like a patch providing a suitable workaround 
that can be included into the ports tree has been provided.  Although binutils 
2.17 is planned to be imported into 9.0, this patch will still be needed for 7.x 
and 8.x. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152555 
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Nov 24 20:37:03 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152555 
State-Changed-From-To: open->closed 
State-Changed-By: kwm 
State-Changed-When: Wed Nov 24 21:06:27 UTC 2010 
State-Changed-Why:  
Committed, Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152555 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/152555: commit references a PR
Date: Wed, 24 Nov 2010 21:06:16 +0000 (UTC)

 kwm         2010-11-24 21:06:10 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/glib20         Makefile 
   Added files:
     devel/glib20/files   extra-arch-powerpc64 
   Log:
   Due to a flaw in binutils 2.15, function names can conflict with
   ELF assembler directives on PPC64 systems. As a result, it is not possible
   to have functions named things like 'text' and 'data'.
   In glib-compile-schemas.c we have such a name.
   
   PR:             ports/152555
   Submitted by:   andreast@
   
   Revision  Changes    Path
   1.173     +4 -0      ports/devel/glib20/Makefile
   1.1       +23 -0     ports/devel/glib20/files/extra-arch-powerpc64 (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
