Bug#805409: scala: FTBFS without network connexion

Martin Quinson martin.quinson at ens-rennes.fr
Tue Nov 17 21:11:15 UTC 2015


Package: scala
Version: 2.11.7
Severity: serious
Justification: FTBFS

Hello,

it seems that the patch to stop maven from downloading some stuff from the
internet is not effective because the package still fails to build from source
when I unplug the net.

The very bad news is that from what I understand from the logs, it tries to
download scala itself to build scala:

| [artifact:dependencies] Downloading: org/scala-lang/scala-compiler/2.11.x /scala-compiler-2.11.x.pom from repository central at file:///usr/share/maven-repo

I fear a bootstraping issue here, not sure.

Thanks for packaging scala, that's very pleasant to have it easily installed.
Mt



-- System Information:
Debian Release: stretch/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages scala depends on:
ii  default-jre-headless [java6-runtime-headless]    2:1.7-52
ii  openjdk-7-jre-headless [java6-runtime-headless]  7u75-2.5.4-2
ii  openjdk-8-jre-headless [java6-runtime-headless]  8u66-b01-1

scala recommends no packages.

scala suggests no packages.

-- no debconf information

-- 
La drogue était un milieu plutôt sain avant que le sport ne s'en mêle.
-------------- next part --------------
Script started on Tue Nov 17 13:37:43 2015
dpkg-buildpackage: source package scala
dpkg-buildpackage: source version 2.11.6-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Emmanuel Bourg <ebourg at apache.org>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build scala-2.11.6
 fakeroot debian/rules clean
dh clean --with javahelper --with maven_repo_helper
   dh_testdir
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/tmp/scala-2.11.6'
rm -rf build dists buildcharacter.properties debian/poms/*.pom.xml
make[1]: Leaving directory '/tmp/scala-2.11.6'
   jh_clean
   mh_clean
   dh_clean
 dpkg-source -b scala-2.11.6
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building scala using existing ./scala_2.11.6.orig.tar.xz
dpkg-source: info: building scala in scala_2.11.6-1.debian.tar.xz
dpkg-source: info: building scala in scala_2.11.6-1.dsc
 debian/rules build
dh build --with javahelper --with maven_repo_helper
   dh_testdir
   dh_auto_configure
   jh_linkjars
   debian/rules override_dh_auto_build
make[1]: Entering directory '/tmp/scala-2.11.6'
# Build Scala
ANT_OPTS="-Xmx1024M -Xss64M" \
ant -Dversion.number="2.11.6" \
    -Djunit.version=4.x \
    -Dextra.repo.url=file:///usr/share/maven-repo \
    -Djline.version=2.x \
    -Dstarr.version=2.11.x \
    fastdist-opt docs
Buildfile: /tmp/scala-2.11.6/build.xml

fastdist-opt:

init.git:

init:
     [copy] Copying 2 files to /tmp/scala-2.11.6/build/deps/junit
[artifact:dependencies] There were no dependencies specified
[artifact:dependencies] There were no dependencies specified
[artifact:dependencies] There were no dependencies specified
[artifact:dependencies] There were no dependencies specified
[artifact:dependencies] There were no dependencies specified
     [copy] Copying 4 files to /tmp/scala-2.11.6/build/deps/repl
[artifact:dependencies] Downloading: org/scala-lang/modules/scala-xml_2.11/1.0.3/scala-xml_2.11-1.0.3-sources.jar from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/modules/scala-xml_2.11/1.0.3/scala-xml_2.11-1.0.3-sources.jar does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang.modules:scala-xml_2.11:java-source:sources:1.0.3' in repository central (file:///usr/share/maven-repo)
[artifact:dependencies] Downloading: org/scala-lang/modules/scala-xml_2.11/1.0.3/scala-xml_2.11-1.0.3-javadoc.jar from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/modules/scala-xml_2.11/1.0.3/scala-xml_2.11-1.0.3-javadoc.jar does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang.modules:scala-xml_2.11:java-source:javadoc:1.0.3' in repository central (file:///usr/share/maven-repo)
[artifact:dependencies] Downloading: org/scala-lang/scala-library/2.11.x/scala-library-2.11.x-sources.jar from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/scala-library/2.11.x/scala-library-2.11.x-sources.jar does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang:scala-library:java-source:sources:2.11.x' in repository central (file:///usr/share/maven-repo)
[artifact:dependencies] Downloading: org/scala-lang/scala-library/2.11.x/scala-library-2.11.x-javadoc.jar from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/scala-library/2.11.x/scala-library-2.11.x-javadoc.jar does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang:scala-library:java-source:javadoc:2.11.x' in repository central (file:///usr/share/maven-repo)
[artifact:dependencies] Downloading: org/scala-lang/modules/scala-parser-combinators_2.11/1.0.3/scala-parser-combinators_2.11-1.0.3-sources.jar from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.3/scala-parser-combinators_2.11-1.0.3-sources.jar does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang.modules:scala-parser-combinators_2.11:java-source:sources:1.0.3' in repository central (file:///usr/share/maven-repo)
[artifact:dependencies] Downloading: org/scala-lang/modules/scala-parser-combinators_2.11/1.0.3/scala-parser-combinators_2.11-1.0.3-javadoc.jar from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.3/scala-parser-combinators_2.11-1.0.3-javadoc.jar does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang.modules:scala-parser-combinators_2.11:java-source:javadoc:1.0.3' in repository central (file:///usr/share/maven-repo)
     [copy] Copying 2 files to /tmp/scala-2.11.6/build/deps/scaladoc
     [echo] Using Scala 2.11.x for STARR.
[artifact:dependencies] Downloading: org/scala-lang/scala-compiler/2.11.x/scala-compiler-2.11.x.pom from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.x/scala-compiler-2.11.x.pom does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang:scala-compiler:pom:2.11.x' in repository central (file:///usr/share/maven-repo)
[artifact:dependencies] Downloading: org/scala-lang/scala-compiler/2.11.x/scala-compiler-2.11.x.jar from repository central at file:///usr/share/maven-repo
[artifact:dependencies] File: /usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.x/scala-compiler-2.11.x.jar does not exist
[artifact:dependencies] [INFO] Unable to find resource 'org.scala-lang:scala-compiler:jar:2.11.x' in repository central (file:///usr/share/maven-repo)
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies] 
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.scala-lang:scala-compiler:jar:2.11.x
[artifact:dependencies] 
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies] 
[artifact:dependencies]   Then, install it using the command: 
[artifact:dependencies]       mvn install:install-file -DgroupId=org.scala-lang -DartifactId=scala-compiler -Dversion=2.11.x -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] 
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.scala-lang -DartifactId=scala-compiler -Dversion=2.11.x -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies] 
[artifact:dependencies]   Path to dependency: 
[artifact:dependencies]   	1) org.apache.maven:super-pom:pom:2.0
[artifact:dependencies]   	2) org.scala-lang:scala-compiler:jar:2.11.x
[artifact:dependencies] 
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies] 
[artifact:dependencies] for artifact: 
[artifact:dependencies]   org.apache.maven:super-pom:pom:2.0
[artifact:dependencies] 
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   central (file:///usr/share/maven-repo)
[artifact:dependencies] 
[artifact:dependencies] 

BUILD FAILED
/tmp/scala-2.11.6/build.xml:117: The following error occurred while executing this line:
/tmp/scala-2.11.6/build-ant-macros.xml:8: The following error occurred while executing this line:
/tmp/scala-2.11.6/build.xml:361: Unable to resolve artifact: Missing:
----------
1) org.scala-lang:scala-compiler:jar:2.11.x

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.scala-lang -DartifactId=scala-compiler -Dversion=2.11.x -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.scala-lang -DartifactId=scala-compiler -Dversion=2.11.x -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.apache.maven:super-pom:pom:2.0
  	2) org.scala-lang:scala-compiler:jar:2.11.x

----------
1 required artifact is missing.

for artifact: 
  org.apache.maven:super-pom:pom:2.0

from the specified remote repositories:
  central (file:///usr/share/maven-repo)



Total time: 1 second
debian/rules:12: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/tmp/scala-2.11.6'
debian/rules:9: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Script done on Tue Nov 17 13:37:47 2015
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20151117/af45eeee/attachment-0001.sig>


More information about the pkg-java-maintainers mailing list