From fluffy@FreeBSD.org  Fri Apr 16 11:10:25 2010
Return-Path: <fluffy@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E23FD106566B
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 16 Apr 2010 11:10:25 +0000 (UTC)
	(envelope-from fluffy@FreeBSD.org)
Received: from ns.ael.RU (ns.ael.ru [62.76.207.226])
	by mx1.freebsd.org (Postfix) with ESMTP id 30AE68FC0C
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 16 Apr 2010 11:10:24 +0000 (UTC)
Received: from Fluffy.Khv.RU (85.9.168.188.retail.ttk.ru [188.168.9.85] (may be forged))
	by ns.ael.RU (8.14.3/8.14.3/Fluffy/5.3) with ESMTP id o3GBAKNN080490
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 16 Apr 2010 22:10:21 +1100 (VLAST)
	(envelope-from fluffy@FreeBSD.org)
Received: from Fluffy.Khv.RU (fluffy@localhost [IPv6:::1])
	by Fluffy.Khv.RU (8.14.4/8.14.4/Fluffy/5.4.1) with ESMTP id o3GBA80P035451
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 16 Apr 2010 22:10:08 +1100 (VLAST)
	(envelope-from fluffy@FreeBSD.org)
Message-Id: <1271416208.34952@Fluffy.Khv.RU>
Date: Fri, 16 Apr 2010 22:10:08 +1100
From: "Dima Panov" <fluffy@FreeBSD.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject: java/jdk15: allow to build againist modern xorg
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         145756
>Category:       ports
>Synopsis:       java/jdk15: allow to build againist modern xorg
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    glewis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 16 11:20:01 UTC 2010
>Closed-Date:    Tue Apr 20 02:55:48 UTC 2010
>Last-Modified:  Tue Apr 20 03:00:16 UTC 2010
>Originator:     Dima Panov
>Release:        FreeBSD 9.0-900010-CURRENT amd64
>Organization:
Fluffy.Khv.RU 
>Environment:


System: FreeBSD 9.0-900010-CURRENT #0 r206514M: Tue Apr 13 10:15:09 VLAST 2010
    fluffy@Fluffy.Khv.RU:/usr/obj/usr/src/sys/Spot



>Description:


java/jdk15: allow to build againist modern xorg



>How-To-Repeat:


Install xorg75 and try to build java/jdk15
Will get complains about missed MIT-SHM functions, they are moved to another proto includes


>Fix:


--- jdk15.diff begins here ---
Index: java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h
===================================================================
RCS file: java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h
diff -N java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h	16 Apr 2010 10:40:33 -0000
@@ -0,0 +1,15 @@
+$FreeBSD:$
+
+--- ../../j2se/src/solaris/native/sun/awt/awt_GraphicsEnv.h.orig	2010-04-16 21:28:02.000000000 +1100
++++ ../../j2se/src/solaris/native/sun/awt/awt_GraphicsEnv.h	2010-04-16 21:39:52.635333540 +1100
+@@ -24,6 +24,10 @@
+ #include <sys/ipc.h>
+ #include <sys/shm.h>
+ #include <X11/extensions/XShm.h>
++#ifndef X_ShmAttach
++#include <X11/Xmd.h>
++#include <X11/extensions/shmproto.h>
++#endif
+ 
+ extern int XShmQueryExtension();
+ 
--- jdk15.diff ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->glewis 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Apr 16 11:20:11 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145756 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Tue Apr 20 02:55:47 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/145756: commit references a PR
Date: Tue, 20 Apr 2010 02:55:30 +0000 (UTC)

 glewis      2010-04-20 02:55:16 UTC
 
   FreeBSD ports repository
 
   Added files:
     java/jdk15/files     patch-j2se::awt::awt_GraphicsEnv.h 
   Log:
   . Fix the build with recent xorg.
   
   PR:             145756
   Submitted by:   fluffy@
   
   Revision  Changes    Path
   1.1       +15 -0     ports/java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h (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:
