svn commit: r329761 - head/java/openjdk6
Baptiste Daroussin
bapt at FreeBSD.org
Tue Oct 8 18:30:38 UTC 2013
On Tue, Oct 08, 2013 at 02:08:46PM -0400, Jung-uk Kim wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2013-10-08 02:57:59 -0400, Baptiste Daroussin wrote:
> > On Tue, Oct 08, 2013 at 06:53:51AM +0000, Jung-uk Kim wrote:
> >> Author: jkim Date: Tue Oct 8 06:53:50 2013 New Revision: 329761
> >> URL: http://svnweb.freebsd.org/changeset/ports/329761
> >>
> >> Log: Fix test option.
> >>
> >> Modified: head/java/openjdk6/Makefile
> >>
> >> Modified: head/java/openjdk6/Makefile
> >> ==============================================================================
> >>
> >>
> - --- head/java/openjdk6/Makefile Tue Oct 8 06:28:41 2013 (r329760)
> >> +++ head/java/openjdk6/Makefile Tue Oct 8 06:53:50 2013
> >> (r329761) @@ -174,7 +174,7 @@ EXTRA_PATCHES+=
> >> ${FILESDIR}/alsa-disable DISTFILES+= ${JTREGFILE}:jtreg
> >> EXTRACT_ONLY+= ${JTREGFILE} BUILD_DEPENDS+=
> >> ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
> >> -USE_DISPLAY= yes +USES+= display .else EXTRA_PATCHES+=
> >> ${FILESDIR}/test_gamma-disable.patch .endif @@ -277,7 +277,8 @@
> >> test: build-depends build -fp ${LOCALBASE}/lib/X11/fonts/misc >
> >> /dev/null 2>&1 & \ ${ECHO_CMD} $$! > ${WRKDIR}/.Xvfb.pid .endif -
> >> @-(cd ${WRKSRC}/jdk/test; ${SETENV} ${MAKE_ENV} ${GMAKE} tests) +
> >> @-(cd ${WRKSRC}/jdk/test; ${SETENV} ${MAKE_ENV} \ +
> >> PLATFORM=bsd ARCH=${ARCH:S/i386/i586/} ${GMAKE} tests) .if
> >> !defined(DISPLAY) @-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
> >> @${RM} -f ${WRKDIR}/.Xvfb.pid
> >
> > USES= display actually does the running and killing of Xvfb, in the
> > case you probably want USES= display:test and remove the start and
> > kill of xvfb.
>
> Unfortunately, "test" is not a canonical target, i.e., it is not
> defined by bsd.port.mk. I can only define them locally, e.g.,
> something like this:
>
> .if defined(DISPLAY)
> _TEST_SEQ= do-test
> .else
> _TEST_SEQ= pre-test do-test post-test
> .ORDER: ${_TEST_SEQ}
> .endif
> test: ${_TEST_SEQ}
> ...
> do-test: build-depends build
> ...
>
I agree that is not very convenient...
regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20131008/f8193c0d/attachment.sig>
More information about the svn-ports-all
mailing list