Bug 259667 - devel/ocaml-opam update to 2.1.2
Summary: devel/ocaml-opam update to 2.1.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Guangyuan Yang
URL: https://github.com/ocaml/opam/blob/2....
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-05 17:16 UTC by Hannes Mehnert
Modified: 2021-12-26 02:19 UTC (History)
1 user (show)

See Also:


Attachments
patch for devel/ocaml-opam (1.09 KB, patch)
2021-11-05 17:16 UTC, Hannes Mehnert
hannes: maintainer-approval+
Details | Diff
add as files/patch-bootstrap-ocaml.sh (309 bytes, patch)
2021-11-05 22:07 UTC, Hannes Mehnert
hannes: maintainer-approval+
Details | Diff
Patch for devel/ocaml-opam (1.53 KB, patch)
2021-11-06 14:21 UTC, Hannes Mehnert
hannes: maintainer-approval+
Details | Diff
add as files/patch-bootstrap-ocaml.sh (300 bytes, patch)
2021-11-06 14:26 UTC, Hannes Mehnert
hannes: maintainer-approval+
Details | Diff
Update devel/ocaml-opam to 2.1.2 (patch for Makefile and distinfo) (1.53 KB, patch)
2021-12-22 11:21 UTC, Hannes Mehnert
hannes: maintainer-approval+
Details | Diff
Update devel/ocaml-opam to 2.1.2 (patch for Makefile and distinfo and pkg-plist) (1.95 KB, patch)
2021-12-23 10:54 UTC, Hannes Mehnert
hannes: maintainer-approval+
Details | Diff
Update devel/ocaml-opam to 2.1.2 (complete patch) (4.30 KB, patch)
2021-12-25 16:44 UTC, Hannes Mehnert
hannes: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes Mehnert 2021-11-05 17:16:01 UTC
Created attachment 229300 [details]
patch for devel/ocaml-opam

Hello,

please find attached a patch for updating devel/ocaml-opam to 2.1.1 (the latest version). I'm the maintainer of that port.


Changes: https://github.com/ocaml/opam/blob/2.1.1/CHANGES

Best, Hannes
Comment 1 Guangyuan Yang freebsd_committer freebsd_triage 2021-11-05 19:19:14 UTC
(In reply to hannes from comment #0)

Hi! Please set your name at https://bugs.freebsd.org/bugzilla/userprefs.cgi?tab=account so we could give you proper credits in future commit logs. Thanks!
Comment 2 Hannes Mehnert 2021-11-05 19:28:53 UTC
(In reply to Guangyuan Yang from comment #1)

Done. :)
Comment 3 Guangyuan Yang freebsd_committer freebsd_triage 2021-11-05 21:15:32 UTC
Poudriere builds failed on my end - can you check?

http://jenkins.ygy.io/job/freebsd-ports-testing-13.0R-amd64/922/console
Comment 4 Hannes Mehnert 2021-11-05 22:07:10 UTC
Created attachment 229304 [details]
add as files/patch-bootstrap-ocaml.sh
Comment 5 Hannes Mehnert 2021-11-05 22:08:10 UTC
(In reply to Guangyuan Yang from comment #3)

Thanks for your poudriere output. I attached a patch to fix the build, and tested this on my poudriere successfully. The portlint is also happy with the port :)
Comment 6 Hannes Mehnert 2021-11-06 14:21:44 UTC
Created attachment 229318 [details]
Patch for devel/ocaml-opam

This updates the Makefile and distinfo for the latest opam release. It does no longer depend on lang/ocaml (which is at 4.05.0 and too old for compiling opam and its depedencies). Instead, opam-full (the tarball) includes the source of an OCaml compiler (4.12.0). This compiler is built before configure (pre-configure).
Comment 7 Hannes Mehnert 2021-11-06 14:26:00 UTC
Created attachment 229319 [details]
add as files/patch-bootstrap-ocaml.sh

patch generated with make makepatch
Comment 8 Hannes Mehnert 2021-11-06 14:28:51 UTC
I uploaded a new patch replacing the original one -- this passes portlint and a poudriere build (http://193.30.40.133:8080/data/builder-default/2021-11-06_14h08m04s/logs/ocaml-opam-2.1.1.log).

The patch for files/ is still needed, and has be regenerated using make makepatch.

Thanks for your patience.
Comment 9 Hannes Mehnert 2021-12-22 11:21:01 UTC
Created attachment 230310 [details]
Update devel/ocaml-opam to 2.1.2 (patch for Makefile and distinfo)
Comment 10 Hannes Mehnert 2021-12-22 11:27:03 UTC
Hi,

I added a patch to update directly to opam 2.1.2 (instead of 2.1.1). I followed the test procedure from the porters handbook sucessully:

    make stage

    make stage-qa

    make package

    make install

    make deinstall

    make package (as user)

I also ran portlint which reports "looks fine".

In my poudriere, this builds fine: http://193.30.40.133:8080/build.html?mastername=builder-default&build=2021-12-22_11h09m16s log http://193.30.40.133:8080/data/builder-default/2021-12-22_11h09m16s/logs/ocaml-opam-2.1.2.log

It would be great to have this included in this quarterly.
Comment 11 Guangyuan Yang freebsd_committer freebsd_triage 2021-12-23 01:00:23 UTC
There are some plist issues when I run the Poudriere build:

http://jenkins.ygy.io/job/freebsd-ports-testing-13.0R-amd64/1168/console
Comment 12 Guangyuan Yang freebsd_committer freebsd_triage 2021-12-23 01:01:45 UTC
===========================================================================
====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: man/man1/opam-lock.1.gz
Error: Orphaned: man/man1/opam-option.1.gz
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ocaml-opam
=>> Error: check-plist failures detected
Comment 13 Hannes Mehnert 2021-12-23 10:54:36 UTC
Created attachment 230343 [details]
Update devel/ocaml-opam to 2.1.2 (patch for Makefile and distinfo and pkg-plist)
Comment 14 Hannes Mehnert 2021-12-23 10:56:15 UTC
(In reply to Guangyuan Yang from comment #12)

Thanks for your comment, addressed with the updated https://bugs.freebsd.org/bugzilla/attachment.cgi?id=230343&action=diff -- for some reason my "make stage-qa" does not display these errors.
Comment 15 Guangyuan Yang freebsd_committer freebsd_triage 2021-12-24 22:36:01 UTC
(In reply to Hannes Mehnert from comment #14)

Build fails for i386 - is this expected?

http://jenkins.ygy.io/job/freebsd-ports-testing-12.2R-i386/1159/console
Comment 16 Hannes Mehnert 2021-12-25 16:44:35 UTC
Created attachment 230392 [details]
Update devel/ocaml-opam to 2.1.2 (complete patch)
Comment 17 Hannes Mehnert 2021-12-25 16:46:36 UTC
(In reply to Guangyuan Yang from comment #15)

Thanks for testing on 32bit. I setup a FreeBSD 32 bit x86 system, and reported the issue upstream (https://github.com/ocaml/ocaml/pull/10835), and included in this issue a patch (now as single patchfile for the entire devel/ocaml-opam port). This works successfully on my 32bit FreeBSD and poudriere on amd64.

Best,

Hannes
Comment 18 commit-hook freebsd_committer freebsd_triage 2021-12-25 20:46:31 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e1d740eccccdf0d3afe982c635c4a5e397881ebd

commit e1d740eccccdf0d3afe982c635c4a5e397881ebd
Author:     Hannes Mehnert <hannes@mehnert.org>
AuthorDate: 2021-12-25 20:45:09 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-12-25 20:45:09 +0000

    devel/ocaml-opam: Update to 2.1.2

    Changelog:      https://github.com/ocaml/opam/blob/2.1.2/CHANGES

    PR:             259667

 devel/ocaml-opam/Makefile                          | 10 +++--
 devel/ocaml-opam/distinfo                          |  6 +--
 .../files/patch-shell_bootstrap-ocaml.sh (new)     | 20 ++++++++++
 ...es_0001-Fix-relocation-ocaml-32-bit.patch (new) | 45 ++++++++++++++++++++++
 devel/ocaml-opam/pkg-plist                         |  2 +
 5 files changed, 76 insertions(+), 7 deletions(-)
Comment 19 Guangyuan Yang freebsd_committer freebsd_triage 2021-12-26 02:19:52 UTC
(In reply to Hannes Mehnert from comment #17)

Committed. Thanks for all the effort!