Update: lang/ocaml 4.09.0

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Update: lang/ocaml 4.09.0

Christopher Zimmermann-2
Hi,

this was a lot easier than 4.08. Sinse 4.09 doesn't ship the graphics
library anymore it is packaged separately. Tested on amd64 with and
without nativecode. OK?

Christopher

--
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
CB07 DA40 B0B6 571D 35E2  0DEF 87E2 92A7 13E5 DEE1

ocaml49.diff.gz (38K) Download Attachment
ocaml-graphics.tgz (1K) Download Attachment
attachment2 (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Update: lang/ocaml 4.09.0

Kenneth Westerback
Awesome. 4.09 installed via opam has been working fine at compiling all my opam packages so going to 4.09 is ok krw@.

Unrelated, but perhaps of interest to ocaml/opam powers that be, opam --version still says 2.04. And conf-libX11 always thinks there are upstream changes and wants to be recompiled. At least with 4.09 this no longer sucks in a large chunk of other lpackages.

Obviously minor nits. :-)

.... Ken

> On Sep 22, 2019, at 2:19 PM, Christopher Zimmermann <[hidden email]> wrote:
>
> Hi,
>
> this was a lot easier than 4.08. Sinse 4.09 doesn't ship the graphics
> library anymore it is packaged separately. Tested on amd64 with and
> without nativecode. OK?
>
> Christopher
>
> --
> http://gmerlin.de
> OpenPGP: http://gmerlin.de/christopher.pub
> CB07 DA40 B0B6 571D 35E2  0DEF 87E2 92A7 13E5 DEE1
> <ocaml49.diff.gz>
> <ocaml-graphics.tgz>

Reply | Threaded
Open this post in threaded view
|

Re: Update: lang/ocaml 4.09.0

Stuart Henderson-6
In reply to this post by Christopher Zimmermann-2
On 2019/09/22 20:19, Christopher Zimmermann wrote:
> Hi,
>
> this was a lot easier than 4.08. Sinse 4.09 doesn't ship the graphics
> library anymore it is packaged separately. Tested on amd64 with and
> without nativecode. OK?

I can't really comment on the ocaml side of things, but the ports side
of things + package update parts (@pkgpath etc) are ok with me.

Reply | Threaded
Open this post in threaded view
|

Re: Update: lang/ocaml 4.09.0

Jeremie Courreges-Anglas-2
In reply to this post by Christopher Zimmermann-2
On Sun, Sep 22 2019, Christopher Zimmermann <[hidden email]> wrote:
> Hi,
>
> this was a lot easier than 4.08. Sinse 4.09 doesn't ship the graphics
> library anymore it is packaged separately. Tested on amd64 with and
> without nativecode. OK?


Looks like there's a problem with the distfile.

(Also please switch MASTER_SITES to https.)

--8<--
russell /usr/ports/lang/ocaml$ make patch update-patches
===> ocaml-4.09.0 depends on: gdb-* -> gdb-7.12.1p7
===> ocaml-4.09.0 depends on: metaauto-* -> metaauto-1.0p3
===> ocaml-4.09.0 depends on: autoconf-2.69 -> autoconf-2.69p2
===> ocaml-4.09.0 depends on: gmake-* -> gmake-4.2.1p4
===>  Verifying specs:  c iberty m pthread z
===>  found c.95.1 iberty.12.0 m.10.1 pthread.26.1 z.5.0
===>  Checking files for ocaml-4.09.0
>> Fetch http://caml.inria.fr/pub/distrib/ocaml-4.09/ocaml-4.09.0.tar.gz
ocaml-4.09.0.tar.gz 100% |************************************************************************************************************************[...]**|  4716 KB    00:02
>> Size does not match for ocaml-4.09.0.tar.gz
>> Fetch https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles/ocaml-4.09.0.tar.gz
ftp: Error retrieving file: 404 Not Found
>> Fetch https://ftp.openbsd.org/pub/OpenBSD/distfiles/ocaml-4.09.0.tar.gz
ftp: Error retrieving file: 404 Not Found
>> Fetch https://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/ocaml-4.09.0.tar.gz
ftp: Error retrieving file: 404 Not Found
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2993 '/usr/ports/distfiles/ocaml-4.09.0.tar.gz': @lock=ocaml-4.09.0.tar.gz.dist; ...)
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2323 '_internal-fetch')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2526 '/usr/ports/pobj/ocaml-4.09.0/.extract_done')
*** Error 1 in /usr/ports/lang/ocaml (/usr/ports/infrastructure/mk/bsd.port.mk:2447 'patch')
russell /usr/ports/lang/ocaml$ cat distinfo
SHA256 (ocaml-4.09-refman-html.tar.gz) = nq+DKl0IrVLLIK+47NOKW+/uTlmKKSbnTkjsbjnjvQk=
SHA256 (ocaml-4.09.0.tar.gz) = p7wEQWfn0J+OPqhLiOydgTkpCOzayGHT1QFeXw/ElqM=
SIZE (ocaml-4.09-refman-html.tar.gz) = 1682948
SIZE (ocaml-4.09.0.tar.gz) = 4838748
-->8--

--8<--
russell /tmp$ cksum -b -a sha256 ocaml-4.09.0.tar.gz
SHA256 (ocaml-4.09.0.tar.gz) = K3KPig6Q2hTyL9wEZg8qszgZzbsSv/DOrj/bsBM896Y=
-->8--


--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: Update: lang/ocaml 4.09.0

Christopher Zimmermann-2
In reply to this post by Christopher Zimmermann-2

Here is an updated diff fixing the reported problems:
- no more duplicate entries. They sneaked in while I updated the PLISTS
  for bytecode-only ocaml
- update the distfile (again ?!?), use https.

Christopher

--
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
CB07 DA40 B0B6 571D 35E2  0DEF 87E2 92A7 13E5 DEE1

ocaml49.diff.gz (38K) Download Attachment
attachment1 (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Update: lang/ocaml 4.09.0

Jeremie Courreges-Anglas-2
On Mon, Sep 23 2019, Christopher Zimmermann <[hidden email]> wrote:
> Here is an updated diff fixing the reported problems:
> - no more duplicate entries. They sneaked in while I updated the PLISTS
>   for bytecode-only ocaml
> - update the distfile (again ?!?), use https.

I guess you checked the tarball for changes, did you spot anything evil?

The ocaml-graphics port ought to use the proper .tbz tarballs published
at

  https://github.com/ocaml/graphics/releases

instead of GH_TAGNAME.

Was ocaml-4.08.1+ tested at all on a non-x86 arch?  The update to
ocaml-4.08.1 is broken since its import on at least arm64 and sparc64,
despite my request for a wip diff. :-/

  http://build-failures.rhaalovely.net//sparc64/2019-09-18/lang/ocaml.log

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: Update: lang/ocaml 4.09.0

Jeremie Courreges-Anglas-2
On Mon, Sep 23 2019, Jeremie Courreges-Anglas <[hidden email]> wrote:

> On Mon, Sep 23 2019, Christopher Zimmermann <[hidden email]> wrote:
>> Here is an updated diff fixing the reported problems:
>> - no more duplicate entries. They sneaked in while I updated the PLISTS
>>   for bytecode-only ocaml
>> - update the distfile (again ?!?), use https.
>
> I guess you checked the tarball for changes, did you spot anything evil?
>
> The ocaml-graphics port ought to use the proper .tbz tarballs published
> at
>
>   https://github.com/ocaml/graphics/releases
>
> instead of GH_TAGNAME.
Updated ocaml-graphics tarball, using the tarball from upstream.
lib/ocaml/graphics/META, lib/ocaml/graphics/dune-package and
lib/ocaml/graphics/opam now specify a version ("5.0.0").



> Was ocaml-4.08.1+ tested at all on a non-x86 arch?  The update to
> ocaml-4.08.1 is broken since its import on at least arm64 and sparc64,
> despite my request for a wip diff. :-/
>
>   http://build-failures.rhaalovely.net//sparc64/2019-09-18/lang/ocaml.log

It turns out that this update to 4.09.0 unbreaks ocaml on sparc64 (and
probably others): the .cmt* files are now installed.

I hit one problem with findlib though (not sparc64 specific).  The
graphics META file is now shipped by ocaml-graphics.  This updated diff
(attached) fixes this, removes the hardcoding of lang/ocaml=4.09.0, and
strips an outdated comment in graphics/ocaml-cairo.



I've built a bunch of ocaml ports on amd64 and sparc64, no fallout.
If you agree with this diff, ok jca@

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

ocaml-graphics.tgz (1K) Download Attachment
ocaml49.3.diff.gz (39K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Update: lang/ocaml 4.09.0

Kurt Miller-4
On Wed, 2019-09-25 at 23:08 +0200, Jeremie Courreges-Anglas wrote:

> On Mon, Sep 23 2019, Jeremie Courreges-Anglas <[hidden email]> wrote:
> >
> > On Mon, Sep 23 2019, Christopher Zimmermann <[hidden email]> wrote:
> > >
> > > Here is an updated diff fixing the reported problems:
> > > - no more duplicate entries. They sneaked in while I updated the PLISTS
> > >   for bytecode-only ocaml
> > > - update the distfile (again ?!?), use https.
> > I guess you checked the tarball for changes, did you spot anything evil?
> >
> > The ocaml-graphics port ought to use the proper .tbz tarballs published
> > at
> >
> >   https://github.com/ocaml/graphics/releases
> >
> > instead of GH_TAGNAME.
> Updated ocaml-graphics tarball, using the tarball from upstream.
> lib/ocaml/graphics/META, lib/ocaml/graphics/dune-package and
> lib/ocaml/graphics/opam now specify a version ("5.0.0").
>
> >
> > Was ocaml-4.08.1+ tested at all on a non-x86 arch?  The update to
> > ocaml-4.08.1 is broken since its import on at least arm64 and sparc64,
> > despite my request for a wip diff. :-/
> >
> >   http://build-failures.rhaalovely.net//sparc64/2019-09-18/lang/ocaml.log
> It turns out that this update to 4.09.0 unbreaks ocaml on sparc64 (and
> probably others): the .cmt* files are now installed.
>
> I hit one problem with findlib though (not sparc64 specific).  The
> graphics META file is now shipped by ocaml-graphics.  This updated diff
> (attached) fixes this, removes the hardcoding of lang/ocaml=4.09.0, and
> strips an outdated comment in graphics/ocaml-cairo.
>
> I've built a bunch of ocaml ports on amd64 and sparc64, no fallout.
> If you agree with this diff, ok jca@
>

I can report that ocaml, dune, findlib and ocaml-graphics build
and package ok on aarch64 with these diffs.

-Kurt