ports/156319: [patch] java/openjdk6 does not compile with previous libXext and libXtst

Eugene Grosbein egrosbein at rdtc.ru
Sun Apr 10 19:50:11 UTC 2011


>Number:         156319
>Category:       ports
>Synopsis:       [patch] java/openjdk6 does not compile with previous libXext and libXtst
>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:   Sun Apr 10 19:50:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
RDTC JSC
>Environment:
System: FreeBSD grosbein.pp.ru 8.2-STABLE FreeBSD 8.2-STABLE #21: Sat Apr 9 16:26:00 NOVST 2011 root at grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386

>Description:
	The port openjdk6-b22_4 needs X11/extensions/shape.h and
	X11/extensions/XTest.h files and fails to build without them.

	shape.h is installed with libXext-1.1.1 and newer only,
	XTest.h is installed with libXtst-1.1.0 and newer only too.

	The port should check existance of files and try to depend
	on needed ports, not break with obscure compile errors.

>How-To-Repeat:

	Try to build openjdk6-b22_4 with libXext-1.0.3 or libXext-1.0.5

>Fix:

diff -urN openjdk6.orig/Makefile openjdk6/Makefile
--- openjdk6.orig/Makefile	2011-04-06 21:18:57.000000000 +0700
+++ openjdk6/Makefile	2011-04-11 02:32:06.000000000 +0700
@@ -33,7 +33,10 @@
 
 BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip \
 		unzip:${PORTSDIR}/archivers/unzip \
-		${LOCALBASE}/include/cups/cups.h:${PORTSDIR}/print/cups-client
+		${LOCALBASE}/include/cups/cups.h:${PORTSDIR}/print/cups-client \
+		${LOCALBASE}/include/X11/extensions/shape.h:${PORTSDIR}/x11/libXext \
+		${LOCALBASE}/include/X11/extensions/XTest.h:${PORTSDIR}/x11/libXtst
+
 LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
 RUN_DEPENDS=	javavm:${PORTSDIR}/java/javavmwrapper \
 		${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu


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



More information about the freebsd-ports-bugs mailing list