Bug#754643: gradle: FTBFS: Caused by: java.lang.RuntimeException: Could not determine the local IP addresses for this machine.

tony mancill tmancill at debian.org
Tue Jul 15 06:07:34 UTC 2014


On 07/12/2014 08:21 PM, Miguel Landaeta wrote:
> Package: src:gradle
> Version: 1.5-1
> Severity: serious
> Justification: fails to build from source (but built successfully in the past)
> 
> I'm unable to run gradle in a clean cowbuilder chroot. It dies on me
> with a java.lang.RuntimeException error.
> 
> Since gradle build-depends on itself this is a FTBFS bug.
> This doesn't happen when I run it outside a chroot.
> 
> Relevant error message:
> 
> [snip]
> 
>  fakeroot debian/rules clean
> dh clean --with javahelper
>    dh_testdir
>    debian/rules override_dh_auto_clean
> make[1]: Entering directory '/tmp/buildd/gradle-1.5'
> dh_auto_clean
> gradle --project-prop finalRelease=true --stacktrace --offline clean
> :buildSrc:clean UP-TO-DATE
> :buildSrc:compileJava UP-TO-DATE
> :buildSrc:compileGroovy FAILED
> 
> FAILURE: Build failed with an exception.
> 
> * What went wrong:
> Execution failed for task ':compileGroovy'.
>> Could not determine the local IP addresses for this machine.

Hi Miguel,

Is it possible that it's trying to make a connection to your X server?
When I try to build in a chroot from a shell where DISPLAY is set, the
build dies with an error that it cannot connect to :0.  But if I unset
DISPLAY before starting the build, it completes successfully (3x in a
row now).

I haven't looked into it in more depth, but maybe the build can just
unset DISPLAY?

Cheers,
tony

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 880 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20140714/68fce6cc/attachment.sig>


More information about the pkg-java-maintainers mailing list