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

update opam Portfile: add dependency on gpatch #24197

Merged
merged 2 commits into from
May 31, 2024
Merged

Conversation

mseri
Copy link
Contributor

@mseri mseri commented May 30, 2024

Description

Updating the opam package repository can silently fail when using macos patch whenever files are removed upstream. As of opam 2.1.6 there is a warning on install to
manually install gpatch to avoid any possible issue and the corruption of the local switches. See also ocaml/opam-repository#25961

This commit adds a dependency to gpatch to prevent any issue and avoid unnecessary manual intervention.

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 14.5 23F79 arm64
Command Line Tools 15.3.0.0.1.1708646388

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL in commit message?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

Updating the opam package repository can silently fail
when using macos patch whenever files are removed upstream.
As of opam 2.1.6 there is a warning on install to
manually install gpatch to avoid any possible issue
and the corruption of the local switches. See also
ocaml/opam-repository#25961

This commit adds a dependency to gpatch to prevent
any issue and avoid unnecessary manual intervention.

Signed-off-by: Marcello Seri <[email protected]>
@macportsbot
Copy link

Notifying maintainers:
@pmetzger for port opam.

Copy link
Contributor

@reneeotten reneeotten left a comment

Choose a reason for hiding this comment

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

Adding a library dependency requires to increase the "revision".

@mseri
Copy link
Contributor Author

mseri commented May 30, 2024

Thanks, I had missed that

@pmetzger pmetzger merged commit 4303eb5 into macports:master May 31, 2024
4 checks passed
@ryandesign
Copy link
Contributor

The two commits in this PR should have been squashed into one, for example by using the "Squash and merge" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

5 participants