unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] GCJ: run libjava tests.
@ 2015-10-22 11:07 Ricardo Wurmus
  2015-10-22 12:33 ` Andreas Enge
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Wurmus @ 2015-10-22 11:07 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

Hi Guix,

GCJ is likely broken on MIPS and ARM (as can be seen in the way Ant
fails to build on these platforms), but the package builds just fine.
That’s probably because we are not running the libjava tests, which
require dejagnu.

The attached patch adds dejagnu to the native-inputs and replaces the
check phase to build and run the libjava tests.

This patch will likely cause the GCJ package to fail on MIPS and ARM,
but that’s expected and helpful, as it should give us a hint how to make
it work on these platforms.

~~ Ricardo


[-- Attachment #2: 0001-gnu-gcj-Run-libjava-tests.patch --]
[-- Type: text/x-patch, Size: 2138 bytes --]

From b31be9b6abe66db1620214ad89b8d81342ac2ccd Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Thu, 22 Oct 2015 13:02:37 +0200
Subject: [PATCH] gnu: gcj: Run libjava tests.

* gnu/packages/gcc.scm (gcj)[native-inputs]: Add dejagnu.
  [arguments]: Replace check phase to run "check-target-libjava" target.
---
 gnu/packages/gcc.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 7e4f18b..b213be9 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -1,7 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
-;;; Copyright © 2014 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2014, 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -27,6 +27,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages texinfo)
+  #:use-module (gnu packages dejagnu)
   #:use-module (gnu packages doxygen)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages docbook)
@@ -460,6 +461,9 @@ using compilers other than GCC."
        ("javac.in" ,javac.in)
        ("ecj-bootstrap" ,ecj-bootstrap)
        ,@(package-inputs gcc)))
+    (native-inputs
+     `(("dejagnu" ,dejagnu)
+       ,@(package-native-inputs gcc)))
     ;; Suppress the separate "lib" output, because otherwise the
     ;; "lib" and "out" outputs would refer to each other, creating
     ;; a cyclic dependency.  <http://debbugs.gnu.org/18101>
@@ -482,6 +486,8 @@ using compilers other than GCC."
                        ,flags))))
        ((#:phases phases)
         `(modify-phases ,phases
+           (replace 'check
+            (lambda _ (zero? (system* "make" "check-target-libjava"))))
            (add-after
             'unpack 'add-lib-output-to-rpath
             (lambda _
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-27 14:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 11:07 [PATCH] GCJ: run libjava tests Ricardo Wurmus
2015-10-22 12:33 ` Andreas Enge
2015-10-22 13:41   ` Ricardo Wurmus
2015-10-22 14:58     ` Ricardo Wurmus
2015-10-23  8:30       ` Andreas Enge
2015-10-25 21:48       ` Ludovic Courtès
2015-10-27 10:59         ` Ricardo Wurmus
2015-10-27 12:28           ` Ludovic Courtès
2015-10-27 14:39             ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).