Skip to content

Commit

Permalink
opam: add dependency on gpatch
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mseri committed May 30, 2024
1 parent 65439eb commit f3ee994
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocaml/opam/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ checksums rmd160 734abf1551d55f29b34a97e2bf64e7cd9cc9fd8b \
size 11704198

depends_build port:ocaml
# Opam upgrade uses patch to update the package repository,
# this can silently fail with macos patch when files are
# deleted upstream.
depends_lib port:gpatch

# This prevents configure from trying to use a program to fetch dependencies.
# We don't need or want one.
Expand Down

0 comments on commit f3ee994

Please sign in to comment.