unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gábor Boskovits" <boskovits@gmail.com>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: java: switch to icedtea-8 as default JDK
Date: Wed, 29 Nov 2017 20:05:55 +0100	[thread overview]
Message-ID: <CAE4v=pjtFgBd-2kA2T9VEYSkuu1EHcOXK4G+9_zHy3i3jmsatg@mail.gmail.com> (raw)
In-Reply-To: <878tepmud6.fsf@gmail.com>

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

Hello!

I have a few idea, which could be done in parallel with this.

I don't know if they worth considering, but here they are anyways.

We could split the bootsrap part out of java.scm, to something like
java-bootstrap.scm.
We should stick here to specify versions used and not allow defaults.
We could name packages which will be used by the final consumer like
foo-bootstrap.
The have a file like java-checkpoint.scm only with definitions like (define
idectea8 icedtea8-bootstrap).
This would make the checkpoints we discussed on  the Reproducible Build
Summit more visible, and explicitly declare which packages are the real
base of java. We do not allow using java-bootstrap from anywhere else, but
from the checkpoint.

Another thing we could is have something like java-defaults.scm with
definitions like (define icedtea icedtea8). This would make default
settings more visible, and might server as the basis of an alternatives
like system.

Later these steps could be done on other languages, making the trust base
more explicit, showing where we need bootstrapping done, and which pacakges
should be bootstrapped.

For organizational purposes whe might create a directory for defaults,
checkpoints and bootstraps.

Also with java9 coming we should be prepared to do another iteration on
this, and a cleaner sturcture might make that easier.


2017-11-29 8:12 GMT+01:00 Chris Marusich <cmmarusich@gmail.com>:

> Chris Marusich <cmmarusich@gmail.com> writes:
>
> > Gábor Boskovits <boskovits@gmail.com> writes:
> >
> >> Hello!
> >>
> >> I just run a quick grep to see which files might be interesting.
> >>
> >> We use ant-build-system in:
> >> axoloti.scm *
> >> bioinformatics.scm *
> >> compression.scm *
> >> icu4c.scm
> >> java.scm *
> >> libusb.scm *
> >> music.scm *
> >> textutlis.scm
> >> uml.scm *
> >> version-control.scm *
> >> web.scm *
> >> xml.scm
> >>
> >> Only the ant-build system uses icedtea among build systems.
> >>
> >> Icedtea is explicitly metioned in the ones maked with *, and:
> >> kodi.scm
> >> math.scm
> >> ruby.scm
> >>
> >> We have a definition in place where currently icedtea is defined to be
> >> icedtea-7.
> >> I guess we could just flip that to icedtea-8, and check what still
> works.
> >> That would flip the version in the build system also, as it uses
> "icedtea".
> >>
> >> Should I check which packages are affected in advance, or just go with
> the
> >> build and see what does not work?
> >
> > Another way to check what packages we'll need to try to build is to use
> > "guix refresh", which uses some features of (guix graph) to display
> > information about dependent packages.  Here's what we get for icedtea-7:
> >
> > [0] marusich@garuda.local:~/guix
> > $ ./pre-inst-env guix refresh -l -e '(@ (gnu packages java) icedtea-7)'
> > Building the following 39 packages would ensure 202 dependent packages
> are rebuilt: sra-tools@2.8.2-1 minced@0.2.0 r-seurat@1.4.0.12-1.fccb77d
> ant@1.10.1 java-htsjdk@1.129 java-jdom@1.1.3 clojure@1.8.0
> java-osgi-service-jdbc@1.0.0 java-plexus-interpolation@1.23
> java-commons-daemon@1.0.15 java-commons-net@3.6 java-commons-cli@1.2
> java-commons-lang@2.6 java-jmh@1.17.5 tuxguitar@1.4
> java-commons-collections4@4.1 java-javax-mail@1.5.6 f-seq@1.1-1.6ccded3
> java-commons-beanutils@1.9.3 java-jgit@4.7.0.201704051617-r
> java-osgi-service-resolver@1.0.1 java-osgi-service-packageadmin@1.2.0
> java-osgi-service-cm@1.5.0 java-osgi-util-tracker@1.5.1 antlr3@3.5.2
> java-eclipse-team-core@3.8.0 java-httpcomponents-httpcore-ab@4.4.6
> java-httpcomponents-httpmime@4.5.3 java-httpcomponents-httpcore-nio@4.4.6
> java-plexus-container-default@1.7.1 kodi@18.0_alpha-6-f22d62d
> hdf-java@3.3.2 ruby-atoulme-antwrap@0.7.5 plantuml@8048
> java-guice-servlet@4.1 java-eclipse-jetty-servlet@9.4.6
> java-eclipse-jetty-servlet@9.2.22 icedtea-web@1.6.2 axoloti-patcher@1.0.12
> >
> >
> > So, I think we should probably do the following:
> >
> > 1) Confirm that these packages build before making changes.  If any
> > fail, fix them first if possible.
> >
> > 2) As you suggested, flip the icedtea variable to point to icedtea-8
> > instead of icedtea-7.
> >
> > 3) Repeat the builds, and see what fails.  Fix any new breakage.
> >
> > And of course, we should opportunistically clean up package definitions
> > as we go.
> >
> > I'm going to try step (1) tonight on my laptop.  Is there a way to check
> > their build status on Hydra, I wonder?  I'm planning to just do it in a
> > simple shell one-liner like the following:
> >
> > for pkg in $(</tmp/pkgs); do if guix build --keep-failed $pkg; then echo
> success: $pkg >> /tmp/log; else echo failure: $pkg >> /tmp/log; fi; done
> >
> > ...but I'm sure there is probably a more elegant way to accomplish the
> > same task.  Anyway, I'll let you know how it goes.
> >
> >> As first step it is not needed to remove #:jdk icedtea-8 references,
> >> because I think that simply becomes a noop. Am I right here?
> >> That can be done as the last step before merging, I guess.
> >
> > I think that's right, but I haven't looked closely yet, and Ricardo may
> > know more.
>
> Whoops!  I forgot to include Gábor on my last email, so I've included
> Gábor on this one.  Sorry about that.
>
> --
> Chris
>

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

  reply	other threads:[~2017-11-29 19: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 [this message]
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
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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='CAE4v=pjtFgBd-2kA2T9VEYSkuu1EHcOXK4G+9_zHy3i3jmsatg@mail.gmail.com' \
    --to=boskovits@gmail.com \
    --cc=cmmarusich@gmail.com \
    --cc=guix-devel@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 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).