On Mon, 04 Jun 2012 12:37:45 +0200, Vincent Fourmond wrote: > > [java] No protocol specified > > [java] Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. > I had similar problems that I solved using xvfb, that provides a > dummy well-behaved X11 server. Just wrap the call to the build system > with xvfb. I had a short look: - Good news: I managed to get rid of the error - Bad news: the test never finished ... My attempts attached as a diff against svn. Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Dave Brubeck: It's A Raggy Waltz
Index: debian/control =================================================================== --- debian/control (revision 11201) +++ debian/control (working copy) @@ -5,7 +5,7 @@ DM-Upload-Allowed: yes Uploaders: Paolo Ariano <paolo.ariano@unito.it>, Andreas Tille <tille@debian.org> -Build-Depends: openjdk-6-jdk, debhelper (>=8), ant, javahelper +Build-Depends: openjdk-6-jdk, debhelper (>=8), ant, javahelper, xvfb, xauth Standards-Version: 3.9.3 Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/imagej/trunk/ Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/imagej/trunk/ Index: debian/rules =================================================================== --- debian/rules (revision 11201) +++ debian/rules (working copy) @@ -4,6 +4,21 @@ %: dh $@ --with javahelper +override_dh_auto_test: + # debhelper's ant support ony supports clean and build + # so this doesn't work + # xvfb-run -a dh_auto_test -- run + + # starts and never stops + # xvfb-run -a ant run + + # starts and never stops + # xvfb-run -a ant run2 + +override_dh_auto_build: + # same as `ant build' + dh_auto_build -- build + # install/imagej:: override_dh_auto_install: cp -a $(CURDIR)/debian/imagej.sh $(CURDIR)/debian/imagej/usr/bin/imagej
Attachment:
signature.asc
Description: Digital signature