Friends -

I tried to figure out where the sources are for the .jar files
required for scala-2.11.2.  I'll append my stupid shell script,
and its output.  Some, but not all, of those sources show up in
  
http://www.java.net/download/openjdk/jdk7u40/promoted/b43/openjdk-7u40-fcs-src-b43-26_aug_2013.zip
  f3070ee95d40b1fc9fc6d7d79c7c246f184c7a3e  
openjdk-7u40-fcs-src-b43-26_aug_2013.zip

If you can't tell, I'm not really much of a Java person.
But I do want to run chisel, which is written in scala.

I hope this helps, even if only a little.

  - Larry

---
# Based on hints in
#  http://newspaint.wordpress.com/2013/08/22/looking-inside-a-java-jar-file/
# and in the thread
#  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744278

# Run this in scala-2.11.2 (unpacked from
#  https://github.com/scala/scala/archive/v2.11.1.tar.gz
#  52654124565a1706e9e6d0ad7b0969d319628847  scala-sources-2.11.2.tar.gz
# ) after it's built (a step that has to be done online, so it can
# download .jar files)

# The following files are already part of Debian:
DEBIAN_ant_contrib="ant-contrib"
DEBIAN_ant="ant"
DEBIAN_maven_ant_tasks_2="libmaven-ant-tasks-java (2.1.3)"
DEBIAN_jsoup_1="libsoup-java (1.6.1)"
DEBIAN_annotations="proguard"

find -name "*desired.sha1" | sed -e 's/.desired.sha1$//' | while read f; do
  if test -r $f; then
    ls -l $f | awk '{print $5,$6,$7,$8,$9}'
    g=`basename "$f" | sed -e 's/\..*//' -e 's/-/_/g'`
    #echo "looking for $g"
    eval "dfile=\${DEBIAN_$g}"
    if test -n "$dfile"; then
      echo "file already in Debian package $dfile"
    else
      CLASSES=$(jar tf "$f" |grep class |sed 's/.class$//')
      javap -classpath "$f" -s $CLASSES | grep "^Compiled from" | sort -u
    fi
  fi
done
---
224277 Jul 21 00:50 ./lib/ant/ant-contrib.jar
file already in Debian as ant-contrib
1506140 Jul 21 00:50 ./lib/ant/ant.jar
file already in Debian as ant
15910 Jul 21 00:50 ./lib/ant/vizant.jar
57795 Jul 21 00:50 ./lib/ant/ant-dotnet-1.0.jar
Compiled from "AbstractBuildTask.java"
Compiled from "CSharp.java"
Compiled from "DotnetBaseMatchingTask.java"
Compiled from "DotnetCompile.java"
Compiled from "DotnetDefine.java"
Compiled from "DotNetExecTask.java"
Compiled from "DotnetResource.java"
Compiled from "Ilasm.java"
Compiled from "Ildasm.java"
Compiled from "ImportTypelib.java"
Compiled from "JSharp.java"
Compiled from "MSBuildTask.java"
Compiled from "NAntTask.java"
Compiled from "NetCommand.java"
Compiled from "NUnitTask.java"
Compiled from "VisualBasicCompile.java"
Compiled from "WixTask.java"
Compiled from "WsdlToDotnet.java"
1314262 Jul 21 00:50 ./lib/ant/maven-ant-tasks-2.1.1.jar
file already in Debian as libmaven-ant-tasks-java (2.1.3)
60850 Jul 21 00:50 ./lib/forkjoin.jar
Compiled from "ForkJoinPool.java"
Compiled from "ForkJoinTask.java"
Compiled from "ForkJoinWorkerThread.java"
Compiled from "LinkedTransferQueue.java"
Compiled from "package-info.java"
Compiled from "RecursiveAction.java"
Compiled from "RecursiveTask.java"
Compiled from "ThreadLocalRandom.java"
Compiled from "TransferQueue.java"
Compiled from "Unsafe.java"
8886289 Jul 21 00:50 ./tools/push.jar
Compiled from "Boot.java"
Compiled from "Handler.java"
Compiled from "IProperties.java"
Compiled from "JarClassLoader.java"
Compiled from "OneJarFile.java"
Compiled from "OneJar.java"
Compiled from "OneJarURLConnection.java"
31725 Jul 21 00:50 ./test/files/speclib/instrumented.jar
Compiled from "BoxesRunTime.java"
Compiled from "ScalaRunTime.scala"
133835 Jul 21 00:50 ./test/files/lib/jsoup-1.3.1.jar
file already in Debian as libsoup-java (1.6.1)
1136 Jul 21 00:50 ./test/files/lib/genericNest.jar
Compiled from "OuterTParams.java"
2242 Jul 21 00:50 ./test/files/lib/annotations.jar
file already in Debian as proguard
609 Jul 21 00:50 ./test/files/lib/methvsfield.jar
Compiled from "methvsfield.java"
1372 Jul 21 00:50 ./test/files/lib/enums.jar
Compiled from "OuterEnum.java"
2920 Jul 21 00:50 ./test/files/lib/nest.jar
Compiled from "nest.java"
2065 Jul 21 00:50 ./test/files/lib/macro210.jar
Compiled from "Macros.scala"
683 Jul 21 00:50 ./test/files/codelib/code.jar
Error:  no classes specified
---


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to