gnu: Remove sablevm and sablevm-classpath, update comments.

* gnu/packages/java.scm (sablevm, sablevm-classpath): Remove variables.
master
Ricardo Wurmus 2018-03-25 21:39:05 +02:00
parent b5a0d42708
commit 269fb7d310
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 18 additions and 115 deletions

View File

@ -79,24 +79,25 @@
;;; ;;;
;; The Java bootstrap begins with Jikes, a Java compiler written in C++. We ;; The Java bootstrap begins with Jikes, a Java compiler written in C++. We
;; use it to build the SableVM standard library and virtual machine, which are ;; use it to build a simple version of GNU Classpath, the Java standard
;; written in a simpler dialect of Java and C, respectively. This is ;; library. We chose version 0.93 because it is the last version that can be
;; sufficient to build an older version of Ant, which is needed to build an ;; built with Jikes. With Jikes and this version of GNU Classpath we can
;; older version of ECJ, an incremental Java compiler, both of which are ;; build JamVM, a Java Virtual Machine. We build version 1.5.1 because it is
;; written in Java. ;; the last version of JamVM that works with a version of GNU classpath that
;; does not require ECJ. These three packages make up the bootstrap JDK.
;; This is sufficient to build an older version of Ant, which is needed to
;; build an older version of ECJ, an incremental Java compiler, both of which
;; are written in Java.
;; ;;
;; ECJ is needed to build the latest release of GNU Classpath (0.99). ;; ECJ is needed to build the latest release (0.99) and the development
;; Classpath (> 0.98) is a requirement for JamVM, a more modern implementation ;; version of GNU Classpath. The development version of GNU Classpath has
;; of the Java virtual machine. ;; much more support for Java 1.6 than the latest release, but we need to
;; ;; build 0.99 first to get a working version of javah. ECJ, the development
;; With JamVM we can build the latest development version of GNU Classpath, ;; version of GNU Classpath, and the latest version of JamVM make up the
;; which has much more support for Java 1.6 than the latest release. Since ;; second stage JDK with which we can build the OpenJDK with the Icedtea 1.x
;; the previous build of JamVM is limited by the use of GNU Classpath 0.99 we ;; build framework. We then build the more recent JDKs Icedtea 2.x and
;; rebuild it with the latest development version of GNU Classpath. ;; Icedtea 3.x.
;;
;; Finally, we use the bootstrap toolchain to build the OpenJDK with the
;; Icedtea 1.x build framework. We then build the more recent JDKs Icedtea
;; 2.x and Icedtea 3.x.
(define jikes (define jikes
(package (package
@ -117,104 +118,6 @@ defined in The Java Language Specification into the bytecoded instruction set
and binary format defined in The Java Virtual Machine Specification.") and binary format defined in The Java Virtual Machine Specification.")
(license license:ibmpl1.0))) (license license:ibmpl1.0)))
(define sablevm-classpath
(package
(name "sablevm-classpath")
(version "1.13")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/sablevm/sablevm/"
version "/sablevm-classpath-" version ".tar.gz"))
(sha256
(base32
"1qyhyfz8idghxdam16hdgpa24r2x4xbg9z8c8asa3chnd79h3zw2"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags
(list "--with-jikes"
"--disable-Werror"
"--disable-gmp"
"--disable-gtk-peer"
"--disable-plugin"
"--disable-dssi"
"--disable-alsa"
"--disable-gjdoc")))
(native-inputs
`(("jikes" ,jikes)
("fastjar" ,fastjar)
("pkg-config" ,pkg-config)))
(home-page "http://sablevm.org/")
(synopsis "Java Virtual Machine")
(description "SableVM is a clean-room, highly portable and efficient Java
virtual machine. Its goals are to be reasonably small, fast, and compliant
with the various specifications (JVM specification, JNI, invocation interface,
etc.). SableVM is no longer maintained.
This package provides the classpath library.")
(license license:lgpl2.1+)))
(define sablevm
(package
(name "sablevm")
(version "1.13")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/sablevm/sablevm/"
version "/sablevm-" version ".tar.gz"))
(sha256
(base32
"1jyg4bsym6igz94wps5443c7wiwlzinqzkchcw972nz4kf1cql6g"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags
(list "--with-internal-libffi=no"
"--with-internal-libpopt=no")
#:strip-binaries? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-timestamp-for-reproducibility
(lambda _
(substitute* "src/sablevm/Makefile.in"
(("\\$\\(SVMCOMPILETIME\\)") "(unknown)"))
#t))
(add-after 'unpack 'link-with-popt
(lambda _
(substitute* "src/sablevm/Makefile.in"
(("\\$\\(SVMADD\\)" match)
(string-append match " -lpopt")))
#t))
(add-after 'unpack 'patch-path-to-classpath
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "Makefile.in"
(("@datadir@/sablevm-classpath")
(string-append (assoc-ref inputs "classpath")
"/share/sablevm-classpath")))
(substitute* "src/libsablevm/Makefile.in"
(("\\$\\(libdir\\)/sablevm-classpath")
(string-append (assoc-ref inputs "classpath")
"/lib/sablevm-classpath"))
(("\\$\\(datadir\\)/sablevm-classpath")
(string-append (assoc-ref inputs "classpath")
"/share/sablevm-classpath")))
#t)))))
(inputs
`(("classpath" ,sablevm-classpath)
("jikes" ,jikes)
("zlib" ,zlib)
("popt" ,popt)
("libffi" ,libffi)))
(native-inputs
`(("libltdl" ,libltdl)))
(home-page "http://sablevm.org/")
(synopsis "Java Virtual Machine")
(description "SableVM is a clean-room, highly portable and efficient Java
virtual machine. Its goals are to be reasonably small, fast, and compliant
with the various specifications (JVM specification, JNI, invocation interface,
etc.). SableVM is no longer maintained.
This package provides the virtual machine.")
(license license:lgpl2.1+)))
;; This is the last version of GNU Classpath that can be built without ECJ. ;; This is the last version of GNU Classpath that can be built without ECJ.
(define classpath-bootstrap (define classpath-bootstrap
(package (package