Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.6 backport commits #5870

Merged
merged 15 commits into from
May 16, 2024
Merged

2.1.6 backport commits #5870

merged 15 commits into from
May 16, 2024

Conversation

kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Mar 4, 2024

Backports:

Fixes:

In its current form the PR is only a proposal. In particular given the amount of untested changes coming from the bump to lang dune 2.0, it might be worth instead detect the version of dune required for the --promote-install-files flag (>= 2.0) instead of bumping the lang version.

@kit-ty-kate
Copy link
Member Author

In particular given the amount of untested changes coming from the bump to lang dune 2.0, it might be worth instead detect the version of dune required for the --promote-install-files flag (>= 2.0) instead of bumping the lang version.

Actually this whole change is unwelcome for 2.1... :( as dune 2.0 drops support for OCaml < 4.06 and we need to support OCaml >= 4.02. I'll go back to the drawing board

@kit-ty-kate
Copy link
Member Author

Changing the grep pattern worked just fine, yay

@kit-ty-kate
Copy link
Member Author

As discussed during the dev meeting, this should wait for one week after the release of 2.2.0~beta2 to give a bit more time for the new usage of git apply to be more wildly tested

@kit-ty-kate kit-ty-kate marked this pull request as ready for review May 7, 2024 15:53
@kit-ty-kate kit-ty-kate requested review from rjbou and removed request for rjbou May 7, 2024 16:17
@kit-ty-kate
Copy link
Member Author

CI is all green (except for ocaml-benchmarks as usual which can't be turned off for this branch)

Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! (over to @rjbou in the morning)

kit-ty-kate and others added 13 commits May 15, 2024 23:06
Gentoo, NetBSD, and OpenBSD name packages in a /-separated
hierarchy.  For example, libgmp is available as "dev-libs/gmp"
(on Gentoo[1]) or "devel/gmp" (on NetBSD[2], or OpenBSD[3]).

The first fix in this commit (the change to the `short_name` function)
removes the leading "/" from the package's short name.  Prior to this
commit, if `pkg` were "dev-libs/gmp", then `short_name` would be
"/gmp". That doesn't match the depext name of "gmp" so opam thought
the package wasn't installed.

OpenBSD also uses flavors and subpackages[4] in some of its package
names.  For example, OpenBSD has two subpackages for the "devel/gmp"
package: main and cxx. That means that the full name for libgmp on
OpenBSD is likely to be "devel/gmp,-main".  Prior to this commit,
`short_name` for this package was "gmp,-main".  This commit introduces
`no_flavor` which removes the flavors and subpackages from package
names, if present.  That causes "devel/gmp,-main" on OpenBSD to have a
`no_flavor` name of "gmp".  This name matches the depext name, so that
opam recognizes that libgmp is installed.

1: https://packages.gentoo.org/packages/dev-libs/gmp
2: https://cdn.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/gmp/index.html
3: https://github.com/openbsd/ports/tree/b12d29201e832eb5a230d54449ff2a13502c9fbb/devel/gmp
4: https://man.openbsd.org/OpenBSD-7.0/pkgpath.7
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the PR with CHANGES and bum version

master_changes.md Outdated Show resolved Hide resolved
master_changes.md Outdated Show resolved Hide resolved
@kit-ty-kate
Copy link
Member Author

Thanks a lot!

As usual ocaml-benchmarks is the only CI job failing, ignoring.

@kit-ty-kate kit-ty-kate merged commit dfbe6a0 into ocaml:2.1 May 16, 2024
26 of 27 checks passed
@kit-ty-kate kit-ty-kate deleted the opam-2.1.6 branch May 16, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants