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

2014-07-15 Thread tony mancill
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



signature.asc
Description: OpenPGP digital signature
__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.

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

2014-07-15 Thread gregor herrmann
On Mon, 14 Jul 2014 23:07:34 -0700, tony mancill wrote:

 On 07/12/2014 08:21 PM, Miguel Landaeta wrote:

  I'm unable to run gradle in a clean cowbuilder chroot. It dies on me
  with a java.lang.RuntimeException error.

  FAILURE: Build failed with an exception.
  * What went wrong:
  Execution failed for task ':compileGroovy'.
  Could not determine the local IP addresses for this machine.

 Is it possible that it's trying to make a connection to your X server?

(Without having looked at the package:)
Maybe this is yet another instance of #753944
(pbuilder: USENETWORK=no breaks package builds). 

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
   `-   BOFH excuse #426:  internet is needed to catch the etherbunny 

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


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

2014-07-15 Thread Miguel Landaeta
On Tue, Jul 15, 2014 at 08:20:50AM +0200, gregor herrmann wrote:
  On 07/12/2014 08:21 PM, Miguel Landaeta wrote:
 
  Is it possible that it's trying to make a connection to your X server?
 
 (Without having looked at the package:)
 Maybe this is yet another instance of #753944
 (pbuilder: USENETWORK=no breaks package builds). 
 

Uhm, this is weird because I tried to build gradle during the last weekend
and I already had installed pbuilder 0.215+nmu3 with the fix for
#753944.

Today I updated my development box again and this bug is not present
anymore or so it seems.

I'll do a couple of extra check and I'll close this if I can't
reproduce it anymore.

Thanks for the pointers.

-- 
Miguel Landaeta, nomadium at debian.org
secure email with PGP 0x6E608B637D8967E9 available at http://miguel.cc/key.
Faith means not wanting to know what is true. -- Nietzsche


signature.asc
Description: Digital signature
__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.

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

2014-07-12 Thread Miguel Landaeta
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.

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
':compileGroovy'.
at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:72)
at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:49)
at 
org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)
at 
org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter$1.run(CacheLockHandlingTaskExecuter.java:34)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at 
org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:179)
at 
org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:232)
at 
org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142)
at 
org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)
at 
org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter.execute(CacheLockHandlingTaskExecuter.java:32)
at 
org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)
at 
org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
at 
org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
at 
org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
at 
org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
at 
org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
at 
org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:275)
at 
org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.executeTask(DefaultTaskPlanExecutor.java:52)
at 
org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.processTask(DefaultTaskPlanExecutor.java:38)
at 
org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:30)
at 
org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:84)
at 
org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
at 
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
at 
org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
at 
org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
at 
org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at 
org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)
at 
org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)
at 
org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)
at 
org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
at 
org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
at 
org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
at 
org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
at