all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Roel Janssen <roel@gnu.org>
Cc: 26966@debbugs.gnu.org
Subject: bug#26966: [PATCH 07/22] gnu: Add classpath.
Date: Mon, 22 May 2017 19:00:30 +0200	[thread overview]
Message-ID: <87lgpobzdd.fsf@elephly.net> (raw)
In-Reply-To: <rbud1b1s4pj.fsf@gnu.org>


Roel Janssen <roel@gnu.org> writes:

> Ricardo Wurmus writes:
>
>> * gnu/packages/java.scm (classpath): New variable.
>> ---
>>  gnu/packages/java.scm | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++
>>  1 file changed, 58 insertions(+)
>>
>> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
>> index 912825a92..e37fd7057 100644
>> --- a/gnu/packages/java.scm
>> +++ b/gnu/packages/java.scm
>> @@ -410,6 +410,64 @@ requirement for all GNU Classpath releases after version 0.93.")
>>  compiler for Java} (ecj) with a command line interface that is compatible with
>>  the standard javac executable.")))
>>
>> +;; Note: All the tool wrappers (e.g. for javah, javac, etc) fail with
>> +;; java.lang.UnsupportedClassVersionError.  They simply won't run on the old
>> +;; sablevm.  We use Classpath 0.99 to build JamVM, on which the Classpath
>> +;; tools do run.  Using these Classpath tools on JamVM we can then build the
>> +;; development version of GNU Classpath.
>> +(define classpath-on-sablevm
>> +  (package
>> +    (name "classpath")
>> +    (version "0.99")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (string-append "mirror://gnu/classpath/classpath-"
>> +                                  version ".tar.gz"))
>> +              (sha256
>> +               (base32
>> +                "1j7cby4k66f1nvckm48xcmh352b1d1b33qk7l6hi7dp9i9zjjagr"))))
>> +    (build-system gnu-build-system)
>> +    (arguments
>> +     `(#:configure-flags
>> +       (list (string-append "--with-ecj-jar="
>> +                            (assoc-ref %build-inputs "ecj-bootstrap")
>> +                            "/share/java/ecj-bootstrap.jar")
>> +             (string-append "JAVAC="
>> +                            (assoc-ref %build-inputs "ecj-javac-wrapper")
>> +                            "/bin/javac")
>> +             (string-append "JAVA="
>> +                            (assoc-ref %build-inputs "sablevm")
>> +                            "/bin/java-sablevm")
>> +             "GCJ_JAVAC_TRUE=no"
>> +             "ac_cv_prog_java_works=yes"  ; trust me
>> +             "--disable-Werror"
>> +             "--disable-gmp"
>> +             "--disable-gtk-peer"
>> +             "--disable-gconf-peer"
>> +             "--disable-plugin"
>> +             "--disable-dssi"
>> +             "--disable-alsa"
>> +             "--disable-gjdoc")
>> +       #:phases
>> +       (modify-phases %standard-phases
>> +         (add-after 'install 'install-data
>> +           (lambda _ (zero? (system* "make" "install-data")))))))
>> +    (native-inputs
>> +     `(("ecj-bootstrap" ,ecj-bootstrap)
>> +       ("ecj-javac-wrapper" ,ecj-javac-wrapper)
>> +       ("fastjar" ,fastjar)
>> +       ("sablevm" ,sablevm)
>> +       ("sablevm-classpath" ,sablevm-classpath)
>> +       ("libltdl" ,libltdl)
>> +       ("pkg-config" ,pkg-config)))
>> +    (home-page "https://www.gnu.org/software/classpath/")
>> +    (synopsis "Essential libraries for Java")
>> +    (description "GNU Classpath is a project to create core class libraries
>> +for use with runtimes, compilers and tools for the Java programming
>> +language.")
>> +    ;; GPLv2 or later, with special linking exception.
>> +    (license license:gpl2+)))
>> +
>>  (define-public java-swt
>>    (package
>>      (name "java-swt")
>
> So, this version is only used for allowing to build the development
> version later, which in turn provides a properly working version for
> reasonably new Java packages?
>
> I'm just trying to understand this properly.

GNU Classpath 0.98 or higher is needed to build JamVM.  0.99 is the
latest release.  We build this to get JamVM, but since 0.99 is very
limited in terms of Java 1.6 support our JamVM package will be rather
limited as well.  We use the jamvm-bootstrap package then to build a
more fully featured GNU Classpath and thus a fully featured JamVM.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2017-05-22 17:01 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17 17:06 bug#26966: New Java bootstrap Ricardo Wurmus
2017-05-17 17:18 ` bug#26966: [PATCH 01/22] gnu: Add jikes Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 02/22] gnu: Add sablevm-classpath Ricardo Wurmus
2017-05-18 10:35     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 03/22] gnu: Add sablevm Ricardo Wurmus
2017-05-18 10:34     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 04/22] gnu: Add ant-bootstrap Ricardo Wurmus
2017-05-18 10:38     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 05/22] gnu: Add ecj-bootstrap Ricardo Wurmus
2017-05-22  7:36     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 06/22] gnu: Add ecj-javac-wrapper Ricardo Wurmus
2017-05-22  7:38     ` Roel Janssen
2017-05-22  8:55       ` Ludovic Courtès
2017-05-22 16:28         ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 07/22] gnu: Add classpath Ricardo Wurmus
2017-05-22  7:58     ` Roel Janssen
2017-05-22 17:00       ` Ricardo Wurmus [this message]
2017-05-17 17:18   ` bug#26966: [PATCH 08/22] gnu: Add jamvm-bootstrap Ricardo Wurmus
2017-05-22  7:59     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 09/22] gnu: Add classpath-jamvm-wrappers Ricardo Wurmus
2017-05-22  8:05     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 10/22] gnu: Add ecj-javac-on-jamvm-wrapper Ricardo Wurmus
2017-05-22  9:38     ` Roel Janssen
2017-05-22 17:01       ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 11/22] gnu: Add classpath-devel Ricardo Wurmus
2017-05-22  9:38     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 12/22] gnu: Add jamvm Ricardo Wurmus
2017-05-22  9:39     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 13/22] gnu: Add ecj-javac-on-jamvm-wrapper-final Ricardo Wurmus
2017-05-22  9:39     ` Roel Janssen
2017-05-17 17:18   ` bug#26966: [PATCH 14/22] gnu: Add icedtea-6 Ricardo Wurmus
2017-05-22  9:43     ` Roel Janssen
2017-05-22 14:33       ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 15/22] gnu: icedtea-7: Use icedtea-6 for bootstrapping Ricardo Wurmus
2017-05-18 10:09     ` Ricardo Wurmus
2017-05-17 17:18   ` bug#26966: [PATCH 16/22] gnu: java-swt: Move below the bootstrap packages Ricardo Wurmus
2017-05-22 10:00     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 17/22] gnu: clojure: Move below " Ricardo Wurmus
2017-05-22 10:01     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 18/22] gnu: ant-bootstrap: Do not delete scripts Ricardo Wurmus
2017-05-18 10:54     ` Roel Janssen
2017-05-18 19:57       ` Ricardo Wurmus
2017-05-17 17:19   ` bug#26966: [PATCH 19/22] gnu: ant: Inherit from ant-bootstrap Ricardo Wurmus
2017-05-22 10:02     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 20/22] gnu: ant: Delete bundled jars Ricardo Wurmus
2017-05-18 10:31     ` Roel Janssen
2017-05-17 17:19   ` bug#26966: [PATCH 21/22] gnu: ant: Update to 1.10.1 Ricardo Wurmus
2017-05-18  9:31     ` Roel Janssen
2017-05-18 20:00       ` Ricardo Wurmus
2017-05-18 21:23         ` Ricardo Wurmus
2017-05-17 17:19   ` bug#26966: [PATCH 22/22] gnu: Remove GCJ Ricardo Wurmus
2017-05-18  9:29     ` Roel Janssen
2017-05-18 10:03       ` Ricardo Wurmus
2017-05-18 10:28         ` Roel Janssen
2017-05-18 11:49         ` Ludovic Courtès
2017-05-18  9:25   ` bug#26966: [PATCH 01/22] gnu: Add jikes Roel Janssen
2017-05-18 11:54   ` Ludovic Courtès
2017-05-18  9:24 ` bug#26966: New Java bootstrap Roel Janssen
2017-05-18 11:47 ` Ludovic Courtès
2017-05-22 10:22 ` Roel Janssen
2017-05-22 17:03   ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lgpobzdd.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=26966@debbugs.gnu.org \
    --cc=roel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.