Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2006 15:34:31 -0500 (CDT)
From:      Alexander Botero-Lowry <alex@foxybanana.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        alex@foxybanana.com
Subject:   ports/100933: [PATCH] audio/java-xmms2: Workaround a bug hindering x4x build
Message-ID:  <200607272034.k6RKYVnI078333@Laptop.mine.box>
Resent-Message-ID: <200607272040.k6RKeEhb075671@freefall.freebsd.org>

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

>Number:         100933
>Category:       ports
>Synopsis:       [PATCH] audio/java-xmms2: Workaround a bug hindering x4x build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 27 20:40:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Botero-Lowry
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD Laptop.mine.box 6.1-STABLE FreeBSD 6.1-STABLE #1: Mon Jul 10 22:43:23 CDT 2006
>Description:
- call scons twice in the do-build phase. This should resolve build issues
  with audio/x4x.

I'm working on figuring out the real problem, but this is a solution for now.

Port maintainer (alex@foxybanana.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- java-xmms2-0.2.d.6.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/java-xmms2/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	8 Jul 2006 22:33:29 -0000	1.5
+++ Makefile	27 Jul 2006 20:32:30 -0000
@@ -24,10 +24,22 @@
 PLIST=		${.CURDIR}/pkg-plist
 
 SCONS_BUILDENV=	JAVA_HOME=${JAVA_HOME}
-SCONS_TARGET=	src/clients/lib/java/libxmms2java.so src/clients/lib/java/xmms2java.jar
+SCONS_TARGET=	src/clients/lib/java
 
 XMMS2_SLAVE=	java
 
+# Crazy workaround for a bug introduced sometime after DrDoolittle that
+# causes the java bindings to not be built completely on the first
+# run of scons.
+
+do-build:
+	@cd ${WRKSRC} && \
+	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${SCONS_ARGS} \
+	${SCONS_TARGET}
+	@cd ${WRKSRC} && \
+	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${SCONS_ARGS} \
+	${SCONS_TARGET}
+
 do-install:
 	@cd ${WRKSRC} && ${INSTALL_DATA} src/clients/lib/java/xmms2java.jar \
 	${JAVAJARDIR}/xmms2java.jar
--- java-xmms2-0.2.d.6.patch ends here ---

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



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