all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gábor Boskovits" <boskovits@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: java: switch to icedtea-8 as default JDK
Date: Wed, 3 Jan 2018 14:06:31 +0100	[thread overview]
Message-ID: <CAE4v=phCghj0pSg3EN_oU1gx=tbKyros633tV5Gy+A0fzFx5vA@mail.gmail.com> (raw)
In-Reply-To: <CAE4v=pgCzuNuKg6fTTotYdNMiXXVVZjw-iwqFJ7bL1ctYnNKkw@mail.gmail.com>

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

2017-12-21 8:53 GMT+01:00 Gábor Boskovits <boskovits@gmail.com>:

> 2017-12-20 13:29 GMT+01:00 Gábor Boskovits <boskovits@gmail.com>:
>
>> 2017-12-20 11:34 GMT+01:00 Gábor Boskovits <boskovits@gmail.com>:
>>
>>> 2017-12-19 23:11 GMT+01:00 Ricardo Wurmus <rekado@elephly.net>:
>>>
>>>>
>>>> Gábor Boskovits <boskovits@gmail.com> writes:
>>>>
>>>> > Now I have another blocking issue:
>>>> > https://github.com/Boskovits/guix/issues/24
>>>>
>>>> > Error message:
>>>> >
>>>> > BUILD FAILED
>>>> > /tmp/guix-build-java-bsh-2.0b6.drv-0/beanshell-2.0b6/build.xml:654:
>>>> > Problem: failed to create task or type junit
>>>> > Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
>>>> was
>>>> > not found.
>>>>
>>>> Is it not just enough to add junit to the inputs of java-bsh?
>>>>
>>>> No, unfortunately it seems to affect all packages using junit.
>>> I guess it is because I use ant/java8, and maybe that is more fussy
>>> about this...
>>>
>>> It seems, that we should add the lib flag to the nat commend line, if we
>> have
>> junit as input. However junit has quite a big dependency graph with the
>> new
>> hamcrest-core fix, but that is needed for junit. I think we should
>> discuss our options here,
>> I don't feel comfortable to make such a decision without prior discussion.
>>
>> Regarding this issue, in my opinion we cloud do the following:
> Add two parameters to ant build system:
> junit?
> junit
> If junit? then force use of junit, if not, then force not to use it, if
> unspecified check if we have junit in build.inputs, and use it if it is.
> junit should default to java-junit, like we have for icedtea, and ant.
> Can something like this be done?
> It would be nice if the ant-build-system needed junit only if it is in
> build-inputs, or explicitly requested, so
> that we can still use it while we don't have junit.
> WDYT?
>

Ok, i've settled the issue with junit, it boils down to the following
things:

1. We need to add ant-junit as a native-input to the packages using junit.
2. We need to add ant-junit4.jar to ant-junit, so that junit4 can find the
tests.

Now I have the following problem, it is in java-asm:

If I understand well, then the check phase in ant-build-system
runs without make-flags.
In the definition of java-asm we configure the build with make-flags, so
the build system
does not complain about missing configuration.
This configuration is still needed for the test target, so building that
fails.

We could do two things:
1. Patch build.xml to not perform these checks. (Then we can also remove
the make-flags all togethet)
2. Do something, so that we can pass make-flags to check phase, maybe by
introducing test-make-flags, or something like that to ant-build-system.

For now I will just disable test, so that I can go on, but I would be glad
if you could recommend me an approch on this,
I this that #2 worth it only, if it affects multiple packages. I will have
a look at that.


>
>
>> In the meanwhile I will create an integration branch, and start to create
>> a list of patches that
>> can be merged to core-updates.
>>
>> Where should I send those?
>>
>>
>>>
>>>
>>>> --
>>>> Ricardo
>>>>
>>>> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
>>>> https://elephly.net
>>>>
>>>>
>>>>
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 6533 bytes --]

  reply	other threads:[~2018-01-03 13:06 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-17 22:02 java: switch to icedtea-8 as default JDK Ricardo Wurmus
2017-11-22  8:57 ` Chris Marusich
2017-11-22 12:09   ` Ricardo Wurmus
2017-11-22 17:03     ` Chris Marusich
2017-11-24  7:01       ` Gábor Boskovits
2017-11-24 10:15         ` Ricardo Wurmus
2017-11-24 11:46           ` Gábor Boskovits
2017-11-29  6:48     ` Chris Marusich
2017-11-29  7:12       ` Chris Marusich
2017-11-29 19:05         ` Gábor Boskovits
2017-11-29 19:58           ` Ricardo Wurmus
2017-11-30  6:58         ` Chris Marusich
2017-11-30 19:27           ` Efraim Flashner
2017-12-01 20:41             ` Gábor Boskovits
2017-12-02  7:06           ` Chris Marusich
2017-12-03  9:58             ` Gábor Boskovits
2017-12-03 11:30               ` Gábor Boskovits
2017-12-03 21:46               ` Chris Marusich
2017-12-03 22:04                 ` Gábor Boskovits
2017-12-03 22:08                   ` Gábor Boskovits
2017-12-03 22:20                     ` Gábor Boskovits
2017-12-03 22:25                       ` Gábor Boskovits
2017-12-04 12:03                         ` Gábor Boskovits
2017-12-04 12:18                           ` Gábor Boskovits
2017-12-04 12:21                             ` Gábor Boskovits
2017-12-04 12:33                               ` Gábor Boskovits
2017-12-04 12:59                                 ` Gábor Boskovits
2017-12-04 14:19                                   ` Gábor Boskovits
2017-12-04 15:44                                     ` Gábor Boskovits
2017-12-04 16:34                                       ` Gábor Boskovits
2017-12-04 16:35                                         ` Gábor Boskovits
2017-12-04 19:15                                       ` Leo Famulari
2017-12-05  7:07                                         ` Gábor Boskovits
2017-12-07 17:50                                           ` Gábor Boskovits
2017-12-08  6:13                                             ` Gábor Boskovits
2017-12-08  6:55                                               ` Chris Marusich
2017-12-08  7:01                                                 ` Gábor Boskovits
2017-12-10 15:56                                                   ` Gábor Boskovits
2017-12-12 11:30                                                     ` Gábor Boskovits
2017-12-12 12:27                                                       ` Gábor Boskovits
2017-12-13  2:06                                                   ` Chris Marusich
2017-12-13  8:53                                                     ` Gábor Boskovits
2017-12-13  9:54                                                       ` Gábor Boskovits
2017-12-13  9:59                                                         ` Gábor Boskovits
2017-12-13 10:03                                                           ` Gábor Boskovits
2017-12-13 10:32                                                     ` Efraim Flashner
2017-12-13 11:07                                                       ` Gábor Boskovits
2017-12-13 18:04                                                         ` Gábor Boskovits
2017-12-13 22:50                                                           ` Gábor Boskovits
2017-12-15 13:52                                                             ` Gábor Boskovits
2017-12-15 14:21                                                               ` Gábor Boskovits
2017-12-15 14:33                                                                 ` Gábor Boskovits
2017-12-17  7:39                                                                   ` Gábor Boskovits
2017-12-17 14:26                                                                     ` Ricardo Wurmus
2017-12-17 18:59                                                                       ` Gábor Boskovits
2017-12-18 10:02                                                                         ` Gábor Boskovits
2017-12-18 12:33                                                                           ` Ricardo Wurmus
2017-12-19  8:07                                                                           ` Chris Marusich
2017-12-19  9:11                                                                             ` Gábor Boskovits
2017-12-19 20:58                                                                               ` Gábor Boskovits
2017-12-19 22:11                                                                                 ` Ricardo Wurmus
2017-12-20 10:34                                                                                   ` Gábor Boskovits
2017-12-20 12:29                                                                                     ` Gábor Boskovits
2017-12-21  7:53                                                                                       ` Gábor Boskovits
2018-01-03 13:06                                                                                         ` Gábor Boskovits [this message]
2018-01-05 15:44                                                                                           ` Ricardo Wurmus
2018-01-05 16:01                                                                                             ` Gábor Boskovits
2018-01-06 19:29                                                                                               ` Chris Marusich
2018-01-06 20:16                                                                                                 ` Gábor Boskovits
2018-01-07 14:52                                                                                                   ` Gábor Boskovits
2018-01-07 17:25                                                                                                     ` Ricardo Wurmus
2018-01-07 18:19                                                                                                       ` Gábor Boskovits
2018-01-08  2:54                                                                                                     ` Chris Marusich
     [not found]                                                 ` <87d13jhoka.fsf@gmail.com>
2017-12-12 22:49                                                   ` Gábor Boskovits
2017-12-12 22:50                                                     ` Gábor Boskovits
2017-11-29 19:59       ` 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='CAE4v=phCghj0pSg3EN_oU1gx=tbKyros633tV5Gy+A0fzFx5vA@mail.gmail.com' \
    --to=boskovits@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /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.