Subject: bug#29897: closed (gnu: java-aqute-libg: Fix compilation on java8.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 24 Jun 2018 16:14:02 +0000

Your bug report

#29897: [PATCH core-updates] gnu: java-aqute-libg: Fix compilation on java8.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
29897: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29897
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: gnu: java-aqute-libg: Fix compilation on java8.
From: Gábor Boskovits <[email-masked]>
To: [email-masked]
Date: Sun, 24 Jun 2018 18:13:03 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Pushed to master as:
aca7dcdd1eee3c879ef1cca2f417988fa0d12b03
2ab089b7ba531b0a28e9fe65a44a8a4af4b1d2bf
78754995e847115e5c9141521497b0b41319fc4b.

Subject: [PATCH core-updates] gnu: java-aqute-libg: Fix compilation on java8.
From: Gábor Boskovits <[email-masked]>
To: [email-masked]
Cc: Gábor Boskovits <[email-masked]>
Date: Fri, 29 Dec 2017 20:17:00 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/java.scm (java-aqute-libg)[arguments]: Add keyword make-flags to use
  source and target 1.7.

This is an issue know upstream:
https://github.com/bndtools/bnd/issues/1327

It is closed as won't fix. There is no way to change the source, so that is works
on java8, and it still works on java6, the upstream target. It works fine on
java7, however, so we use java7.
---
 gnu/packages/java.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8a244328f..584cbafa4 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5999,6 +5999,8 @@ it manages project dependencies, gives diffs jars, and much more.")
     (arguments
      `(#:jar-name "java-aqute-libg.jar"
        #:source-dir "aQute.libg/src"
+       #:make-flags (list (string-append "-Dant.build.javac.source=" "1.7")
+                          (string-append "-Dant.build.javac.target=" "1.7"))
        #:tests? #f)); FIXME: tests are in "aQute.libg/test", not in a java directory
     (inputs
      `(("slf4j" ,java-slf4j-api)
-- 
2.15.1